Radi Member Feb 9, 2015 #1 Is there a list of the available variables in xenForo? To be more specific, I am looking for something like this: <p>Copyright © {$currentYear} SiteName</p> Where, {$currentYear} will output the current year.
Is there a list of the available variables in xenForo? To be more specific, I am looking for something like this: <p>Copyright © {$currentYear} SiteName</p> Where, {$currentYear} will output the current year.
Radi Member Feb 9, 2015 #3 After a second look I found this: {xen:date $serverTime, Y} Jeremy said: Variaes are defined per template. Click to expand... I am looking for the variables/functions that come with xenForo Upvote 0 Downvote
After a second look I found this: {xen:date $serverTime, Y} Jeremy said: Variaes are defined per template. Click to expand... I am looking for the variables/functions that come with xenForo
Naz XenForo developer Staff member Feb 9, 2015 #4 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. Upvote 0 Downvote
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.
P Paul B XenForo moderator Staff member Feb 9, 2015 #5 This may help: https://xenforo.com/community/threa...at-variables-are-available-in-templates.6960/ Upvote 0 Downvote