Page 1 of 1

Re: Editor-directed dynamic template behavior?

Posted: Thu Nov 26, 2009 5:59 pm
by calguy1000
The content stuff doesn't currently allow checkboxes... this functionality will be provided by an addon module in 2.0

However, you can create three extra content blocks, then in your template, just test if they are non empty

i.e:

Code: Select all

{content block='condition_a' assign='condition_a' oneline=true}
{content block='condition_b' assign='condition_b' oneline=true}
{content block='condition_c' assign='condition_c' oneline=true}
Then in your page template just do:

Code: Select all

{if $condition_a != '' and $condition_b != ''}
....
{else}
....;
{/if}
all your editor would have to do is to put some text (even one character) into the fields.