XF 1.5 Template Syntax

LPH

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:

PHP:
if ( $category.title == 'Business & Finance' ) {
   echo "Yay";
}

What would it be for the template syntax? I tried this but fails to save.

Code:
<xen:if is="{$category.title == 'Business & Finance'}">
    <xen:callback class="TRN_XenWord_Model_WPPostsWide" method="getHtml"></xen:callback>
</xen:if>

Update: Oh Geez. It's the closing curly bracket in the wrong place. It belongs after the $category.title.
 
Top Bottom