|
Cookbook /
TrackingMenuSummary: A sidebar menu tracking the current page
Version:
Prerequisites:
Status:
Maintainer:
Categories: Layout, Administration
GoalA sidebar menu tracking the current page Features
SolutionDrop tmenu.phpΔ somewhere in the PmWiki cookbook/ directory (you may have to create it). Add the following line to local/config.php: include_once("cookbook/tmenu.php");
UseDecorate your existing sidebar menu with From the technical point of view, It does not affect any other lists outside Example (copy and paste to your page, it won't work here)
DiscussionPmwiki adds to all links in the Sidebar either class='wikilink' or class='urllink', exept the link to the currant page, which gets a class='selflink'. with these classes one can easily style the sidebar links and emphasise the current page, using in pub/css/local.css, or the skin's css file, or via a Basically you're right, I could say my intention was to provide more or less complete solution, but actually I just didn't know about that 'selflink' feature :-) We really need some good documentation. mikei June 13, 2005 Mateusz: A solution based also on HansB's response to my similar question, but tweaked a bit (so that self-link is marked, and no longer a link) is to put the following line in $LinkPageSelfFmt = "<span class='selflink'>\$LinkText</span>"; Author
|