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

XF 1.5 Template Syntax


Well-known member
What is the syntax for trying to get a particular category by title loaded then do a callback?

In PHP it would look something like this:

if ( $category.title == 'Business & Finance' ) {
   echo "Yay";
What would it be for the template syntax? I tried this but fails to save.

<xen:if is="{$category.title == 'Business & Finance'}">
    <xen:callback class="TRN_XenWord_Model_WPPostsWide" method="getHtml"></xen:callback>
Update: Oh Geez. It's the closing curly bracket in the wrong place. It belongs after the $category.title.