Adding sidebar

Spenser

Active member
As there is no global announcement system in xenForo that I was able to find I want to add an additional sidebar that contains a link to the announcement.
Is there an easy way to add a sidebar?
 

Spenser

Active member
Ah, ok.

Thank you for that. You are right, I want to add a new block.

And how do I set the new sidebar to a specific position? Say, between "User Information" and "Members Online"?
 

RobParker

Well-known member
How do I include a template?
<xen:include template="name_of_template" />

A notice system is coming in 1.1.
Is there a template that contains all of the sidebar blocks? I was expecting a "sidebar" template to exist but it doesn't seem to.
 

RobParker

Well-known member
Is it just this in pagecontainer?

Code:
                <aside>
                    <div class="sidebar">
                        <xen:hook name="page_container_sidebar">
                        <xen:include template="ad_sidebar_top" />
                        <xen:if is="!{$noVisitorPanel}"><xen:include template="sidebar_visitor_panel" /></xen:if>
                        {xen:raw $sidebar}
                        <xen:include template="ad_sidebar_bottom" />
                        </xen:hook>
                    </div>
                </aside>
 

Brogan

XenForo moderator
Staff member
If you want it on all pages, yes.

If just on the main forum home page then you can use the forum_list template.
 
Top