[Mediawiki-l] top menu bar link to side bar

Patricia Marin pmarin at ucsd.edu
Fri Jan 25 20:32:07 UTC 2008


Hi Kilian,

Thank you for the information. You are doing what I want to do everything is
very useful.  I am new working with a wiki, I just have one question when
you said that your menu is a wiki page, that’s mean that you create the menu
bar using your wiki? And that’s why you don't have to set like a complete
path when you called?  Could you please explain me a little more how this
work.

I appreciate your time and knowledge, thank you,

Patty

-----Original Message-----
From: mediawiki-l-bounces at lists.wikimedia.org
[mailto:mediawiki-l-bounces at lists.wikimedia.org] On Behalf Of Kilian
Sent: Friday, January 25, 2008 12:06 PM
To: MediaWiki announcements and site admin list
Subject: Re: [Mediawiki-l] top menu bar link to side bar


Am Freitag, den 25.01.2008, 09:50 -0800 schrieb Patricia Marin:
> Hi I need to add in my wki a top main menu bar  linked to the side bar,
like
> the one on this site.
> 
> http://www.aidklinik.de/index.php

Hi Patty,

my wiki [1] has a sidebar menu that changes with top category.

The menu is a Wiki page. I included it as a sidebar by hacking the skin,
saying (in skins/GSV.php (GSV is my skin)):

# Prepare a Title and ParserOptions:
$title_for_parser = Title::newFromDBkey("GSV:Menü");
$options_for_parser = ParserOptions::newFromUser($wgUser);

# Include GSV:Menü as a menu:
echo $wgParser->parse("{{GSV:Menü}}", $title_for_parser,
$options_for_parser)->getText();

To create a top main menu bar, I would similarly hack the skin.

In the sidebar menu,  I use the ConditionalMenus Extension [2] to
selectively show or hide links to pages in the top categories. You might
want to use ConditionalTemplates [3] instead, as I suppose you want all
of the sidebar menu to change with top category.

Hope this gives you the relevant ideas.

Kilian

[1] http://verben.texttheater.de
[2] http://www.mediawiki.org/wiki/Extension:ConditionalMenus
[3] http://www.mediawiki.org/wiki/Extension:ConditionalTemplate



_______________________________________________
MediaWiki-l mailing list
MediaWiki-l at lists.wikimedia.org
http://lists.wikimedia.org/mailman/listinfo/mediawiki-l




More information about the MediaWiki-l mailing list