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

Adding sidebar

Discussion in 'XenForo Questions and Support' started by Spenser, Jun 22, 2011.

  1. Spenser

    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?
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

  3. Spenser

    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"?
     
  4. ragtek

    ragtek Guest

  5. RobParker

    RobParker Well-Known Member

    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.
     
  6. RobParker

    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>
    
     
  7. Brogan

    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.
     

Share This Page