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

XF 1.3 Conditionnal in EXTRA.css

Discussion in 'XenForo Questions and Support' started by LordsKing, Apr 27, 2014.

  1. LordsKing

    LordsKing Active Member

    HEllo

    I would to add a conditionnal in the template EXTRA.css with a custom field !
    Here is my code :
    Code:
    <xen:if is="{$visitor.customFields.membercard}">
    // code
    </xen:if>
    
    The custom field is a checkbox :)

    Thanks
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    That isn't possible.
    You will need to do it in the template.
     
  3. LordsKing

    LordsKing Active Member

    Yes it's for an add-on but I would to create a route prefix but I don't how to do that :(
     
  4. LordsKing

    LordsKing Active Member

    Any way to do a route, prefix ?
     
  5. Brogan

    Brogan XenForo Moderator Staff Member

    I'm not sure what you're asking.

    The conditional statement you posted has nothing to do with route prefixes.
     
  6. LordsKing

    LordsKing Active Member

    I want to create an add-on and for create the add-on I need a route prefix but I don't know how to do that :(
     
  7. Brogan

    Brogan XenForo Moderator Staff Member

  8. LordsKing

    LordsKing Active Member

  9. Chris D

    Chris D XenForo Developer Staff Member

    Still not quite sure what a route prefix has to do with having a conditional in a CSS template.
     
  10. LordsKing

    LordsKing Active Member

    It's for an add-on :)
     

Share This Page