So I'm just trying to do a basic admin option with a if statement in the template.
So I setup admin options for check box, boolean, with a default parameter of false.
In the template I have
So here is the issue. If the check box for option 1 is checked. Option 1, 2 and 3 are displaying. If no options are checked, option 2 is displaying.
I tried xen:if is="{$xenOptions.optionOne} == true"> but this didn't seem to make a difference. I'm sure it's a silly syntax error im making but can't figure it out. Any help?
So I setup admin options for check box, boolean, with a default parameter of false.
In the template I have
PHP:
<xen:if is="{$xenOptions.optionOne}">Option 1</xen:if>
<xen:if is="{$xenOptions.optionTwo}">Option 2</xen:if>
<xen:if is="{$xenOptions.optionThree}">Option 3</xen:if>
So here is the issue. If the check box for option 1 is checked. Option 1, 2 and 3 are displaying. If no options are checked, option 2 is displaying.
I tried xen:if is="{$xenOptions.optionOne} == true"> but this didn't seem to make a difference. I'm sure it's a silly syntax error im making but can't figure it out. Any help?