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

Documentation for the xen:link (and others)

Discussion in 'Styling and Customization Questions' started by Dion Sune Jensen, Oct 25, 2012.

  1. Dion Sune Jensen

    Dion Sune Jensen Active Member

    I was wondering if there is documentations somewhere on what arguments are available to be passed to them, not just xen:link but many other xen:
    I haven't found any documentation at all, and I'm not good enough at coding to wade through the entire sourcecode just to find some answers :/

    Is there any documentation for it anywhere? the info over at http://xenforo.com/help/ is lackluster to say the least
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

  3. Dion Sune Jensen

    Dion Sune Jensen Active Member

    Thanks, but that sadly didn't help me, as I'm trying to get the full url (including domain and everything) for a node, looking into my Core.php I was able to find something called "fullurl", so I tried {xen:helper fullurl, $news} yet it still only prints the relative path, not the full url (note: $news is the node item for recent news block from XenPorta)
     
  4. Chris D

    Chris D XenForo Developer Staff Member

    Assuming the $news parameter is available in the template that you're putting the code in, you would use this code:

    {xen:link full:forums, $news}

    Should format as http://yourdomain.com/forums/news-forum.1/ or http://yourdomain.com/index.php?forums/news-forum.1/ depending on whether friendly URLs are enabled or not.
     
    Jake Bunce likes this.
  5. Dion Sune Jensen

    Dion Sune Jensen Active Member

    Thanks, that did it :)
     
    Chris D likes this.

Share This Page