Hi all,
I have am Evo 1.0.8 site that I am working on, and I have a list of chunks to render within a page, for example {{chunk1}} , {{chunk2}}, {{chunk3}} and {{chunk4}}. Now, the contents of these chunks are template variables, and not all of the template variables are completed in some instances - in these instances I need to be able to evaluate to see if the TVs are complete and if so render the corresponding chunk, if they are empty then I do not want the chunk rendered. I have a checkbox TV to state whether the {{chunk}} should be rendered - but not sure on how to get it to render logically...
So..
If Chunk1Checkbox = "ON" > then render {{chunk1}} on screen
If Chunk2Checkbox = "ON" > then render {{chunk2}} on screen
If Chunk3Checkbox = "" > then do not render {{chunk3}} on screen
If Chunk4Checkbox = "" > then do not render {{chunk4}} on screen
Is this possible? If so how? I can't get my head around it...
Appreciate any insight / tips!
Thanks!
you can try to use one checkbox-group with input-options:
Chunk1=={{chunk1}}||Chunk2=={{chunk2}}||Chunk3=={{chunk3}}||Chunk4=={{chunk4}}
then you need to put just this one TV into your template
-
☆ A M B ☆
- 427 Posts
[[+Chunk1Small:empty=``:notempty=`[[+Chumnk1Small]]`]]
There are a bunch of ways to do it.
-
☆ A M B ☆
- 427 Posts
I totally missed your using Evo.