Revision [16113]

This is an old revision of DanWestLink made by DanWest on 2007-02-14 04:23:18.

 


What
Use
  • {{pagelink page="WikiName" title="Display Title}}
  • Remember, it only shows up if user can read WikiName page

Installation
  • Copy code into pagelink.php action.

Code

<?php
if(is_array($vars) AND $vars <> array() ){
    if(isset($vars['title'])){
    $title = $vars['title'];
    }

    if(isset($vars['page'])) {
    $page = $vars['page'];
    }

}

if($this->HasAccess("read", $page)) {
    if(!isset($title)) $title = $page;
    $link = '[[' . $page . ' ' . $title . ']]';
    print $this->Format($link);
}


To Do
  • Put some comments in it (I wrote it too fast)
There are no comments on this page.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki