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

XF 1.3 XenForo Link

Discussion in 'Styling and Customization Questions' started by wickedstangs, Mar 24, 2014.

  1. wickedstangs

    wickedstangs Well-Known Member

    Is the below code correct?

    Code:
    <a href="{xen:link 'login/'}">
    
    <a href="{xen:link 'register/'}">
    
    
     
  2. Jeremy

    Jeremy XenForo Moderator Staff Member

    Remove the slashes, but either way should work.

    With slashes it basically looks for route + action, and if it doesn't find it, just makes it an exact replicate. Without, it'll use the route.
     
  3. wickedstangs

    wickedstangs Well-Known Member

    Using the above I get this.
    Code:
    %7Bxen:'login/'%7D

    I tried the below and seems to work fine now.. This is in my Notices..
    Code:
     To gain full access you must <a href="register">Register.</a> Registration is free and it takes only a few moments to complete.<br />
                                                    Already a member? <a href="login">Login here</a> then!</p>
     
  4. Jeremy

    Jeremy XenForo Moderator Staff Member

    Notices don't support the full suite of xen:tags and helpers. You'll need to hard code the link.
     
    wickedstangs likes this.

Share This Page