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

Home Page Detection

Discussion in 'XenForo Development Discussions' started by Tim Aldridge, Aug 4, 2011.

  1. Tim Aldridge

    Tim Aldridge Member

    I'm trying to only display items on the home page and the forum index.

    What would be the if check to attempt this. I know from Vbulletin it "THIS_SCRIPT == (piece)", but I do not know the xenforo equivalent.

    Any help would be appreciated on this subject.
  2. James

    James Well-Known Member

    You should use $contentTemplate.

    <xen:if is="{$contentTemplate} == 'forum_list'">

Share This Page