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

Conditional to restrict template from certain pages?

Discussion in 'Styling and Customization Questions' started by Staxed, May 28, 2011.

  1. Staxed

    Staxed Active Member

    I'm trying to remove the functionality of this mod from XenPorta. I'm not sure what to add to
    <xen:if is="{$sidebar}">
    to prevent it from running this template on the XenPorta page.

    I was just going to try <xen:if is="{$sidebar} AND !{EWRporta_Portal}"> but I don't know what the correct format for a template is in the xen:if statement.
  2. James

    James Well-Known Member

    <xen:if is="{$sidebar} AND {$contentTemplate} != EWRporta_Portal">
  3. Staxed

    Staxed Active Member

    says invalid syntax
  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Needs single quotes:

    <xen:if is="{$sidebar} AND {$contentTemplate} != 'EWRporta_Portal'">
    Staxed and James like this.

Share This Page