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?
 

Mike

XenForo developer
Staff member
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
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>
 

Brogan

XenForo moderator
Staff member
You will have to ask in the add-on thread - we aren't familiar with the widget framework code.
 
Top