Why isn't this admin template syntax working?

Liam W

in memoriam 1998-2020
Code:
<xen:if is="{$group.auto_responsive}"><xen:option name="auto_responsive" checked /><xen:else><xen:option name="auto_responsive" /></xen:if>

That line gives me an error, and I'm now starting to pull my hair out over it...
 
Code:
            <xen:checkboxunit label="{xen:phrase your_auto_responsive_phrase}:">
                <xen:option name="auto_responsive" value="1" selected="{$group.auto_responsive}">
                <xen:label>{xen:your_label_phrase}</xen:label>
                </xen:option>
                <xen:explain>{xen:phrase auto_responsive_explain}</xen:explain>
            </xen:checkboxunit>

Leave checkboxunit label as "" if you do not want the label showing to the left of the checkbox. You can remove the explain line too if you do not need it. The checkbox will be automatically checked or unchecked depending on the value of your variable.
 
Back
Top Bottom