Revision [15941]
This is an old revision of DanWest made by DanWest on 2007-01-19 03:30:03.
Dan West
FormattingRulesJust wanted a userid to look at stuff you need a userid to look at.... Huh?
antelopesoccer.com home page Uses wikka
Some "Extensions" I did.
Custom Navigation Links
I know this has been done, the it's another twist. You define a page 'NavigationLinks'. In that page you list each target page tag on a line delimited by : (colons) followed by the custom links.:SomePage: [[HomePage Home]] [[PersonalPage My Page]] [[UserSettings User Settings]] :AnotherPage: [[HomePage Home]] [[PersonalPage My Page]] [[SomePage Some Other Page]] [[UserSettings User Settings]]
This requires a small change to the header.php action.
File header.php
- $NavPage = $this->LoadPage("NavigationLinks");
- echo $this->Format($match[1] . (($this->GetUser())? " [[AdminPage Admin]]" : " "));
- } else if ($this->GetUser()) {
- echo $this->config["logged_in_navigation_links"] ? $this->Format($this->config["logged_in_navigation_links"])."" : "";
- } else {
- echo $this->config["navigation_links"] ? $this->Format($this->config["navigation_links"]) : "";
- }