I have created a navigation bar plugin for my current project. I don't
think it's that good but if you have a need for it I will make it available.
Basically it is a modification of ewiki_format to alter the list behavior
along with some css tricks to support the creation of buttons based on a
wiki page and entirely without graphics.
This is what it looks like on the "specs" page of my site:
It sounds very interesting, and well it looks so quite more!
As this feature seems to work again, you could upload your plugin here - or
we could put up some sort of ExtensionRepository to collect newly
created plugins. milky
The way I'm doing this is sort of not ready for prime time. What I'm doing is:
- using ewiki_page normally to parse the URL and get the name.
- within ewiki_page storing the parsed out name in $GLOBALS*'pageName' -- but only if it is parsed and not passed to ewiki_page
<ul class=*NavBarDepth1>
<p>
<li><a href="/wiki/index.php/Home+Page">*HomePage</a></li>
<li class='activebutton'><a href="/wiki/index.php/Solutions">Solutions</a></li>
<div class='subbar'><ul class=*NavBarDepth4>
<li><a href="/wiki/index.php/
*SubSpecs">
*SubSpecs</a></li>
</ul></div>
<div class='subbar'><ul class=
*NavBarDepth3>
<li><a href="/wiki/index.php/
*PrivateIOverview">Overview</a></li>
<li class='activebutton'><a href="/wiki/index.php/
*PrivateISpecifications">Specs</a></li>
</ul></div>
<div class='subbar'><ul class=
*NavBarDepth2>
<li class='activebutton'><a href="/wiki/index.php/
*LiveSolutionsPrivateiPage">Private i</a></li>
<li><a href="/wiki/index.php/
*LiveSolutionsPrivateInformantPage">Private Informant</a></li>
</ul></div>
<li><a href="/wiki/index.php/News">News</a></li>
<li><a href="/wiki/index.php/Support">Support</a></li>
</p>
</ul>
To me this whole process looks ugly so I'm hoping someone will look at the pseudo code above and add some suggestions before I release the even uglier real code.
I also have a bunch of CSS code to do the formating and make Mozilla and IE equally happy with it. You may notice above that I'm using a hack in ewiki_page to get the page's title into $GLOBALS['pageName'], is there a better way?
See also:
*2'nd NavigationBarFragment