Re: Editor-directed dynamic template behavior?
Posted: Thu Nov 26, 2009 5:59 pm
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:
Then in your page template just do:
all your editor would have to do is to put some text (even one character) into the fields.
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}
Code: Select all
{if $condition_a != '' and $condition_b != ''}
....
{else}
....;
{/if}