A hierarchical navigation bar can be implemented by changing code in monobook.php ( http://meta.wikimedia.org/wiki/Customization#How_do_I_add_an_editable_Left_M...). Unfortunately this only works in case $wgUseDatabaseMessages in defaultsettings.php is set to "true".
In my case, this variable is set to false, in order to be able to use another language (Dutch instead of English) in our wiki. BUT by setting $wgUseDatabaseMessages=false, the mediawiki-namespace (into which the navigation bar has to be changed) is not read anymore.
To change the content of the navigation bar, I had to adapt the language.phpfile:
'sidebar' => ' * navigation ** mainpage|mainpage ** portal-url|portal ** currentevents-url|currentevents ** recentchanges-url|recentchanges ** randompage-url|randompage ** helppage|help * Cases ** Businesscase|Business ** Technicalcase|Technical ',
but i cannot implement a hierarchical menu by changing e.g. ** Technicalcase|Technical into *** Technicalcase|Technical. Does anyone know how to solve this problem so that I can implement a hierarchical menu while $wgUseDatabaseMessages=false? Do I have to change code in the language.php file or in the monobook.phpfile?
Thanks in advance! Birger
2006/3/24, Jama Poulsen jama@debianlinux.net:
On Thu, Mar 23, 2006 at 10:05:57AM +0100, Birger wrote:
Does anyone know whether it is possible to implement a hierarchical navigation bar in Mediawiki like e.g.:
- CASES
** BUSINESSCASES-URL | BUSINESSCASES *** BCASE1-URL | CASE1 *** BCASE2-URL | CASE2 ** TECHNICALCASES-URL | TECHNICALCASES *** TCASE1-URL | CASE1 *** TCASE2-URL | CASE2
I think it would be easiest to just edit the skin files (eg. /wiki/skins/MonoBook.php) with some extra CSS and/or JS that implements such a structure.
Doing this dynamically (from the Wiki text) isn't so easy in the MW interface.
Jama Poulsen _______________________________________________ Wikitech-l mailing list Wikitech-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/wikitech-l
wikitech-l@lists.wikimedia.org