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

PAGE_CONTAINER

Jake Bunce

XenForo moderator
Staff member
#2
You can use this code in the PAGE_CONTAINER template:

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

GALLERY CODE HERE

</xen:if>
This code will only display the gallery on the forum_list page. This is the name of the content template for the page. See this thread:

http://xenforo.com/community/threads/1-0-0-b1-how-to-identify-the-root-template-of-a-page.5591/

You can specify multiple pages like this:

Code:
<xen:if is="{$contentTemplate} == 'forum_list' OR {$contentTemplate} == 'forum_view' OR {$contentTemplate} == 'thread_view'">

GALLERY CODE HERE

</xen:if>