I’m trying to get a Chunk to display based upon the data that has been entered in a TV.
The TV is called activityType and is a text input. The user can enter either "land" "air" or "water" (without the double quotes).
In my template I want to display a chunk that is named after the TV data. So I have three Chunks called "land" "air" and "water" (again without the double quotes).
In my template I tried to display a chunk as follows {{[*activityType*]}} but that didn’t work.
So then I tried creating a new TV called leftAd and in the default value I put @Chunk [*activityType*] but that didn’t work either.
Is there a simple way to do this? I’m not a coder so I wouldn’t know where to start if any PHP was involved.
create a tv with a "dropdown list menu" instead of a "text" and us this as options:
land=={{land}}||air=={{air}}||water=={{water}}
set a default to {{land}} or any thing you like to be default
now you get a nice pulldown with 3 options that wil insert a chunk into the template.
Excellent, thanks! Worked a treat!