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

Add sidebar to Pages

Discussion in 'Styling and Customization Questions' started by Morgain, Jan 22, 2012.

  1. Morgain

    Morgain Well-Known Member

    Where do I insert my sidebar code on PAGES_CONTAINER
    so as to get my sidebar on Pages?

    <xen:include template="nodemenu" />
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Do you want that on all pages?

    If so, add it to the pagenode_container template.
    Morgain likes this.
  3. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    For page nodes you can add the xen:sidebar code to the template html:

    Admin CP -> Applications -> Display Node Tree -> [click the page node] -> Page Options: Template HTML

    And page nodes actually use this container template:

    Admin CP -> Appearance -> Templates -> pagenode_container

    You can edit that template to affect all page nodes. The xen:sidebar code can be added to the bottom of that template if you want all page nodes to have the same sidebar.

    edit - ninjaaa
    abdfahim and Morgain like this.
  4. Morgain

    Morgain Well-Known Member

    Thank you gentlemen. As always PERFECT.

    Actually I think it would be usefullest [?] to use the pagenode_container option
    as I like adding it to all the templates -( am keeping a list Brogan)

    and create a Page template that has a snippet to suppress the sidebar as there will be very few of those.

Share This Page