More than 2 sidebar

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
LazyBadger
Regular
Posts: 176
Joined: Mon Aug 25, 2008 12:25 pm
Location: Russia
Contact:

More than 2 sidebar

Post by LazyBadger »

Can I get more sidebars in theme, even without d&d blocks placements (I'll agree to edit smth. by hand to add block in additional sidebar)?
Quis custodiet ipsos custodes?
Don Chambers
Regular
Posts: 3657
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Re: More than 2 sidebar

Post by Don Chambers »

Yes, you can have more than two sidebars. Your template will need a file config.inc.php. In that file, you will need, at minimum, this:

Code: Select all

<?php
$template_config = array(
    array(
         'var'          => 'sidebars',
         'name'         => 'Sidebars',
         'type'         => 'hidden',
         'value'        => 'my_unique_sidebar,left,right,hide',
    )
);
Then as I mentioned here, you can call your unique sidebar like this:

Code: Select all

{serendipity_printSidebar side="my_unique_sidebar" template="my_unique_sidebar.tpl.tpl"}
You only need to specify a unique template if you do not want to use sidebar.tpl
=Don=
Post Reply