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

Add sidebar to Pages

Morgain

Well-known member
#1
Where do I insert my sidebar code on PAGES_CONTAINER
so as to get my sidebar on Pages?

Code:
<xen:sidebar>
<xen:include template="nodemenu" />
</xen:sidebar>
 

Jake Bunce

XenForo moderator
Staff member
#3
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
 

Morgain

Well-known member
#4
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.