Home Page Detection

I'm trying to only display items on the home page and the forum index.

What would be the if check to attempt this. I know from Vbulletin it "THIS_SCRIPT == (piece)", but I do not know the xenforo equivalent.

Any help would be appreciated on this subject.
 

James

Well-known member
You should use $contentTemplate.

Code:
<xen:if is="{$contentTemplate} == 'forum_list'">
//code
</xen:if>
 
Top