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

xenForo $var list

Discussion in 'XenForo Questions and Support' started by Radi, Feb 9, 2015.

  1. Radi

    Radi Member

    Is there a list of the available variables in xenForo?

    To be more specific, I am looking for something like this:

    <p>Copyright &copy; {$currentYear} SiteName</p>

    Where, {$currentYear} will output the current year.
  2. Jeremy

    Jeremy Well-Known Member

    Variaes are defined per template.
  3. Radi

    Radi Member

    After a second look I found this: {xen:date $serverTime, Y}

    I am looking for the variables/functions that come with xenForo
  4. NixFifty

    NixFifty Well-Known Member

    On every template, you can access {$visitor} for information about the currently viewing user. You can also use {xenOptions} to get ACP options.

    Anything else is passed to templates from controllers on a per-template basis.
  5. Brogan

    Brogan XenForo Moderator Staff Member

Share This Page