Page 1 of 1

More than 2 sidebar

Posted: Tue May 17, 2011 6:09 pm
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)?

Re: More than 2 sidebar

Posted: Tue May 17, 2011 6:44 pm
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