XF 2.0 Template syntax documentation

It's plain HTML, with some additional xf-tags, variables, template functions and filters for functions. HTML is HTML, xf-tags (unless self-closing) have an opening and closing tag (like <xf:if></xf:if>), variables can be accessed with {$variable}, template functions with {{function($args)}} and filters as {{function($args)|filter}}.
 
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
 
Last edited:
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

There's a few on your list that aren't in the Template -> Compiler -> Tag folder, how did you find them?

For example uploadrow.php is there, but not upload. However xf:upload does seem to work as a tag.

Also is there any documentation on the usage of the attributes of these yet?
 
Top Bottom