Page 1 of 1

Custom Navigation bar 3.2.1

Posted: November 2nd, 2007, 10:41 am
by Lee
I've been wanting to construct a portion of the sidebar that can be controlled from mediawiki.

For example, I would create a page called Sidebar that would be just like any other page in mediawiki.

In gumax.php in the Navigation section after the menus I would create a pointer that would retrieve this page and place it in the sidebar for every page.

I've gotten half way there by placing <?php $this->html('bodytext') ?> in the Navigation Section of gumax.php. Of course this just puts in identical text from the page you are on in the sidebar.

Does anybody have an idea how to change the php call to go to pull the bodytext of a specific page?

Re: Custom Navigation bar 3.2.1

Posted: November 2nd, 2007, 7:40 pm
by Paul
Did you try search "MediaWiki:Sidebar" in your wiki? It this that you want?

Re: Custom Navigation bar 3.2.1

Posted: November 5th, 2007, 4:18 pm
by Lee
No I've looked at Mediawiki:Sidebar but it seems like it really limits what you can put in there. For example you can't display images. I was looking for a page that you could display using normal markup including images on the sidebar. Inserting the "bodytext" does this but I can't figure out how to make it insert the text from a page other than the one that you are currently viewing. Any ideas?

Re: Custom Navigation bar 3.2.1

Posted: November 6th, 2007, 12:23 am
by Paul
I'm not really sure what you are trying to do, giving me some example or mock up would help me understand.