Revision [15943]

This is an old revision of DanWest made by DanWest on 2007-01-19 03:35:06.

 

Dan West

FormattingRules

This has some extensions I did. I'm new at hacking this code so you may find someone has already done it better or it's not done the cleanest way. I did try to keep them simple (i.e.: The least amount of core code changes)
Enjoy.

Pages I did that use wikka
antelopesoccer.com home page Uses wikka
www.posr.com Some hacking on the CSS as well as header and footer to "hide" the Wikka as the real engine


My Extensions


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.

Example NavigationLinks page
: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
  1. $NavPage = $this->LoadPage("NavigationLinks");
  2. if(ereg(":" . $this->page["tag"] . ": ([^\n]*)\n", $NavPage['body'], $match)) {
  3.     echo $this->Format($match[1] . (($this->GetUser())? " [[AdminPage Admin]]" : " "));
  4. } else if ($this->GetUser()) {
  5.     echo $this->config["logged_in_navigation_links"] ? $this->Format($this->config["logged_in_navigation_links"])."" : "";
  6. } else {
  7.     echo $this->config["navigation_links"] ? $this->Format($this->config["navigation_links"]) : "";
  8. }


There are 2 comments on this page. [Show comments]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki