XF 1.5 How to check if forum home page in template?

Mike

XenForo developer
Staff member
#2
Can you expand on the context and what template you're referring to specifically? The front page of the forum would generally be the forum_list template so if you're adding things there, that would be sufficient.
 

xenfans

Well-known member
#3
I use this in (any) template if I want to check *against* being loaded on the frontpage (or not) :
Code:
<xen:if is="{$viewName} == 'XenForo_ViewPublic_Forum_List'">..</xen:if>
 
Top