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

PAGE_CONTAINER

Discussion in 'XenForo Questions and Support' started by masterchief, Jan 10, 2011.

  1. masterchief

    masterchief Well-Known Member

    I have already started a thread is Addon Requests:

    http://xenforo.com/community/threads/thumbnail-gallery.10238/

    I am trying to figure out how to designate what specific pages to allow display of my thumbnail gallery using the PAGE_CONTAINER template. It is currently being displayed on all pages and I do not want that. Please advise.
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    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>
    
     
  3. masterchief

    masterchief Well-Known Member

    THANK YOU!!!
     

Share This Page