ExtendedLinkClasses
<< Wiki CVS Storage | Cookbook-V1 | Black List >>
Note: The recipes here are for PmWiki versions 0.6 and 1.0 only. For PmWiki 2.0 recipes, see Cookbook.
Goal
Visual change of wikilinks so the visitor can see in the navigationbar which group or page he is currently watching.
Solution
I have changed the $FmtWikiLink
variable to call another function which extends the original function by marking links depending on their name/groupname.
Discussion
just include it in your config.php
file with
include "wikilinkextension.php"
Now, you can change your CSS file to make the links looking different - example:
.currentpagelink {border-bottom:2px solid blue} .currentgrouplink {border-left:2px solid blue}
This will simply mark the links differently depending on their location.
This is quite usefull for navigationbars.
History
- 7.9.04
- Fixed a bug - I used an external variable that was not part of the pmwiki which means that this script wouldn't work elsewhere :P
- 3.9.04
- Set up this page - zet
Comments & Bugs
Contributors
- zet
pmwiki-2.3.38 -- Last modified by {{zet}}