<xf:if></xf:if>
), variables can be accessed with {$variable}
, template functions with {{function($args)}}
and filters as {{function($args)|filter}}
.Where are these documented?xf-tags
Thanks. Searching didn't bring up that thread. Here's the list, since I didn't see it actually posted anywhere. Maybe others can help fill in what they mean (mustache?) and proper usage.
xf:ad
xf:avatar
xf:breadcrumb
xf:button
xf:callback
xf:captcha
xf:captcharow
xf:checkbox
xf:checkboxrow
xf:copyright
xf:codeeditor
xf:codeeditorrow
xf:corejs
xf:csrf
xf:css
include css template.
<xf:css src="template_name.css" />
xf:datalist
xf:datarow
xf:date
xf:dateinput
xf:dateinputrow
xf:description
xf:editor
xf:editorrow
xf:foreach
xf:form
xf:formrow
xf:h1
xf:head
xf:hiddenval
xf:if
xf:include
xf:inforow
xf:js
xf:likes
xf:macro
xf:mustache
xf:numberbox
xf:numberboxrow
xf:page
set the variable in the current content template and make it available in the container template.
xf:pageaction
xf:pagenav
xf:prefixinput
xf:prefixinputrow
xf:radio
xf:radiorow
xf:redirect
xf:select
xf:selectrow
xf:set
set the variable in the current content or container template and only be accessible in the content or container template it was set in.
<xf:set var="$someVariable" value="1" />
xf:showignored
xf:sidebar
xf:sidenav
xf:submitrow
xf:textarea
xf:textarearow
xf:textbox
xf:textboxrow
xf:title
xf:tokeninput
xf:tokeninputrow
xf:upload
xf:uploadrow
xf:useractivity
xf:userblurb
xf:userbanners
xf:username
xf:usertitle
xf:widget
call a widget
<xf:widget key="widget_name" position="position" />
xf:widgetpos
xf:wrap
Ah, well this is a coincidence!How about the parameters on each tag? This is really unfriendly for a forum priced as xenforo is; somewhat disappointing.
Thanks. Searching didn't bring up that thread. Here's the list, since I didn't see it actually posted anywhere. Maybe others can help fill in what they mean (mustache?) and proper usage.
Code:xf:ad
Code:xf:avatar
Code:xf:breadcrumb
Code:xf:button
Code:xf:callback
Code:xf:captcha
Code:xf:captcharow
Code:xf:checkbox
Code:xf:checkboxrow
Code:xf:copyright
Code:xf:codeeditor
Code:xf:codeeditorrow
Code:xf:corejs
Code:xf:csrf
Code:xf:css include css template. <xf:css src="template_name.css" />
Code:xf:datalist
Code:xf:datarow
Code:xf:date
Code:xf:dateinput
Code:xf:dateinputrow
Code:xf:description
Code:xf:editor
Code:xf:editorrow
Code:xf:foreach
Code:xf:form
Code:xf:formrow
Code:xf:h1
Code:xf:head
Code:xf:hiddenval
Code:xf:if
Code:xf:include
Code:xf:inforow
Code:xf:js
Code:xf:likes
Code:xf:macro
Code:xf:mustache
Code:xf:numberbox
Code:xf:numberboxrow
Code:xf:page set the variable in the current content template and make it available in the container template.
Code:xf:pageaction
Code:xf:pagenav
Code:xf:prefixinput
Code:xf:prefixinputrow
Code:xf:radio
Code:xf:radiorow
Code:xf:redirect
Code:xf:select
Code:xf:selectrow
Code:xf:set set the variable in the current content or container template and only be accessible in the content or container template it was set in. <xf:set var="$someVariable" value="1" />
Code:xf:showignored
Code:xf:sidebar
Code:xf:sidenav
Code:xf:submitrow
Code:xf:textarea
Code:xf:textarearow
Code:xf:textbox
Code:xf:textboxrow
Code:xf:title
Code:xf:tokeninput
Code:xf:tokeninputrow
Code:xf:upload
Code:xf:uploadrow
Code:xf:useractivity
Code:xf:userblurb
Code:xf:userbanners
Code:xf:username
Code:xf:usertitle
Code:xf:widget call a widget <xf:widget key="widget_name" position="position" />
Code:xf:widgetpos
Code:xf:wrap
We use essential cookies to make this site work, and optional cookies to enhance your experience.