[SOLVED] Editor-directed dynamic template behavior?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Editor-directed dynamic template behavior?

Post 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.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Post Reply

Return to “CMSMS Core”