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

XF 1.3 Is it possible to make a "xen:link" through the ACP?

Discussion in 'XenForo Questions and Support' started by Krave, Mar 30, 2014.

  1. Krave

    Krave New Member

    Title says it all, if this is not possible; could someone please show me how I would go about creating one of these?


    Thanks.
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    What are you trying to do?
     
  3. Krave

    Krave New Member

    I'm adding a staff listing to my website through the help page. I've successfully done this but instead of adding the full URL, I'd prefer to add the xen:link so it blends in with the rest of the coding. It's mainly a OCD thing but that's the way I like it.
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    The syntax is used like this:
    Code:
    <a href="{xen:link 'account/upgrades'}">Account Upgrades</a>
    Rather than being OCD, it's actually good practice to use xen:link.
    If the domain URL ever changes in the future, the links will continue to work without needing to be updated.
     
    Mirovinger likes this.
  5. Krave

    Krave New Member

    I know, but what I'm asking is there a way to create xen:links like the phrases?
     
  6. Brogan

    Brogan XenForo Moderator Staff Member

    It's HTML.
    You need to add it to a template.

    I still don't really understand what you are asking.
     
  7. Krave

    Krave New Member

  8. Brogan

    Brogan XenForo Moderator Staff Member

    Edit the navigation template and add the code.
     
  9. Krave

    Krave New Member

    You still don't get what I mean. I'm not very good at describing things in great detail so sorry, but let me try once more.

    I want to change this link: http://gamebait.info/index.php?members/&type=staff

    Into a xen:link, so it'd look something like: {xen:link members/staff}
     
  10. Chris D

    Chris D XenForo Developer Staff Member

    Code:
    {xen:link 'members/staff', '', 'type=staff'}
     
    Valhalla likes this.
  11. Krave

    Krave New Member

    Yeah, something like this but this doesn't work :/
     
  12. Chris D

    Chris D XenForo Developer Staff Member

    I made a mistake, sorry.
     
  13. Krave

    Krave New Member

    Thank you man!
     

Share This Page