angelasugliano
Hi everybody,
I'm struggling in order to create a new box (like “navigation”, “search”, “toolbox”), in the left sidebar of the Monobook Template.
Is someone of you able to do it?
Thanks in advance!!
angela
angelasugliano
Here, the answer Martin gave to me. Thanks Martin!!
**************************************************
Hi angela,
simply open the main.php of your monobook template and search for this code:
-----------------------------------
<?php if (tpl_getConf('mb_use_toolbox')) { ?>
<?php if (tpl_getConf('mb_use_defaulttoolbox')) { ?>
<?php writeMBPortlet($monobook['defaulttoolbox'], 'p-tb', $lang['monobook_bar_toolbox'], 'tb'); ?>
<?php } else { ?>
<div id="p-tb" class="portlet"> <h5><?php echo $lang['monobook_bar_toolbox']; ?></h5><div class="pBody">
<?php if (function_exists('dwp_display_wiki_page')) dwp_display_wiki_page(tpl_getConf('mb_toolbox_location')); ?>
</div></div>
<?php } ?>
----------------------
after that code add the following lines:
----------------------
<!-- start own box -->
<div id="p-x-navigation" class="portlet"> <h5>NAME OF THE BOX</h5>
<div class="pBody">
<?php if (function_exists('dwp_display_wiki_page')) dwp_display_wiki_page('NAME OF THE WIKI PAGE'); ?>
</div></div>
<!-- end own box -->
----------------------
The only thing you must do is replace "NAME OF THE BOX" and "NAMEOF THE WIKI PAGE".
Thats all
Martin