1. 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

Discussion in 'XenForo Questions and Support' started by BamaStangGuy, Jul 8, 2012.

  1. BamaStangGuy

    BamaStangGuy Well-Known Member

    Need a conditional that checks to see if a user is on /search/ page and /help/ pages.
  2. Chris D

    Chris D XenForo Developer Staff Member

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

    Should do it, but not tested!
    Jake Bunce and BamaStangGuy like this.
  3. BamaStangGuy

    BamaStangGuy Well-Known Member

  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Small syntax correction:

    <xen:if is="{$controllerName} == 'XenForo_ControllerPublic_Search' OR {$controllerName} == 'XenForo_ControllerPublic_Help'">
    Yorick and BamaStangGuy like this.
  5. Chris D

    Chris D XenForo Developer Staff Member

    Thanks Jake.


Share This Page