I added this to monobook.php for creating additional sidebar-blocks: http://www.mediawiki.org/wiki/Manual:Navigation_bar#Customizing_monobook.php
+ <div class="portlet" id="p-navn"> + <h5><?php $this->msg('navigation') ?></h5> + <div class="pBody"> + <?php $this->msgWiki( 'AnotherMenu' ) ?> + </div> + </div>
Are there any CONs against this? Imho the solution above is able to use more complicated sidebar-construction than MediaWiki:Sidebar doas
HeinzJ
HeinzJ wrote:
I added this to monobook.php for creating additional sidebar-blocks: http://www.mediawiki.org/wiki/Manual:Navigation_bar#Customizing_monobook.php
<div class="portlet" id="p-navn">
<h5><?php $this->msg('navigation') ?></h5>
<div class="pBody">
<?php $this->msgWiki( 'AnotherMenu' ) ?>
</div>
</div>
Are there any CONs against this?
Slow, slow, slow, slow, slow, slow, slow, slow, not properly internationalized, and missing the ability to specify keyboard shortcuts.
-- brion vibber (brion @ pobox.com)
On 04/09/06, Brion Vibber brion@pobox.com wrote:
Slow, slow, slow, slow, slow, slow, slow, slow, not properly internationalized, and missing the ability to specify keyboard shortcuts.
I removed the snippet from the main documentation page on the grounds that hacks like this need to be collected elsewhere and marked as such.
Rob Church
Brion Vibber schrieb:
HeinzJ wrote:
I added this to monobook.php for creating additional sidebar-blocks: http://www.mediawiki.org/wiki/Manual:Navigation_bar#Customizing_monobook.php
<div class="portlet" id="p-navn">
<h5><?php $this->msg('navigation') ?></h5>
<div class="pBody">
<?php $this->msgWiki( 'AnotherMenu' ) ?>
</div>
</div>
Are there any CONs against this?
Slow, slow, slow, slow, slow, slow, slow, slow, not properly internationalized, and missing the ability to specify keyboard shortcuts.
-- brion vibber (brion @ pobox.com)
Wikitech-l mailing list Wikitech-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/wikitech-l
thx, Brion.
I supposed that.
What would be best way to add additional menu-blocks? Just a copy of the "sidebar"-code and renaming "sidebar" to something else e.g 'AnotherMenu'?
HeinzJ
HeinzJ wrote:
What would be best way to add additional menu-blocks? Just a copy of the "sidebar"-code and renaming "sidebar" to something else e.g 'AnotherMenu'?
You can already add as many blocks as you like, as for instance at:
http://www.mediawiki.org/wiki/MediaWiki:Sidebar http://wikimania2006.wikimedia.org/wiki/MediaWiki:Sidebar
-- brion vibber (brion @ pobox.com)
Brion Vibber wrote:
HeinzJ wrote:
What would be best way to add additional menu-blocks? Just a copy of the "sidebar"-code and renaming "sidebar" to something else e.g 'AnotherMenu'?
You can already add as many blocks as you like, as for instance at:
http://www.mediawiki.org/wiki/MediaWiki:Sidebar http://wikimania2006.wikimedia.org/wiki/MediaWiki:Sidebar
How would one specify keyboard shortcuts for those?
On 9/5/06, Timwi timwi@gmx.net wrote:
How would one specify keyboard shortcuts for those?
JavaScript, the way we specify most of our shortcuts. They're automatically assigned id's.
HeinzJ schrieb:
I added this to monobook.php for creating additional sidebar-blocks: http://www.mediawiki.org/wiki/Manual:Navigation_bar#Customizing_monobook.php
<div class="portlet" id="p-navn">
<h5><?php $this->msg('navigation') ?></h5>
<div class="pBody">
<?php $this->msgWiki( 'AnotherMenu' ) ?>
</div>
</div>
Are there any CONs against this? Imho the solution above is able to use more complicated sidebar-construction than MediaWiki:Sidebar doas
HeinzJ
Ok it works with Sidebar. Do'nt know what happened here ....
Thx to all
wikitech-l@lists.wikimedia.org