1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Why isn't this admin template syntax working?

Discussion in 'XenForo Development Discussions' started by Liam W, Jul 31, 2013.

  1. Liam W

    Liam W Well-Known Member

    <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...
  2. Brogan

    Brogan XenForo Moderator Staff Member

    <xen:else />
  3. Liam W

    Liam W Well-Known Member

    Still get an error, on that line. Remove the line, and it saves :(
  4. Lawrence

    Lawrence Well-Known Member

                <xen:checkboxunit label="{xen:phrase your_auto_responsive_phrase}:">
                    <xen:option name="auto_responsive" value="1" selected="{$group.auto_responsive}">
                    <xen:explain>{xen:phrase auto_responsive_explain}</xen:explain>
    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.
    Liam W likes this.

Share This Page