• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.1 Conditional For Search & Help Pages

Chris D

XenForo developer
Staff member
#2
<xen:if is="{$controllerName} == 'XenForo_ControllerPublic_Search'" OR "{$controllerName} == 'XenForo_ControllerPublic_Help'">
Whatever.
</xen:if>

Should do it, but not tested!
 

Jake Bunce

XenForo moderator
Staff member
#4
Small syntax correction:

Code:
<xen:if is="{$controllerName} == 'XenForo_ControllerPublic_Search' OR {$controllerName} == 'XenForo_ControllerPublic_Help'">
Whatever.
</xen:if>