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

sajal

Active member
Is there any quick way to check/put conditional in the template to make sure it's front-page of the forum?
 
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.
 
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 Bottom