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

XF 1.5 Adding Links Question

Discussion in 'Styling and Customization Questions' started by Amaury, Mar 22, 2016.

  1. Amaury

    Amaury Well-Known Member

    We have a Staff Members link in our footer and Members dropdown/sub-navigation bar. However, it's done in a bit of an odd way:

    Code:
    <li><a href="http://www.kh-flare.net/members/?type=staff">{xen:phrase staff_members}</a></li>
    Is there a particular reason this won't work? (It gives me a syntax error when I try to save the template.)

    Code:
    <li><a href="{xen:link members/?type=staff}">{xen:phrase staff_members}</a></li>
    It works with other links and obviously the default links like help.
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Code:
    <li><a href="{xen:link members, '', 'type=staff'}">{xen:phrase staff_members}</a></li>
     
    Amaury likes this.
  3. Amaury

    Amaury Well-Known Member

    Ah! Must work differently because of the slash and question mark.

    Thanks, Brogan!

    Edit: Probably not the slash as pages/rules/, another one of our links, works.
     

Share This Page