Tree Action

NOT Included in any Wikka version yet
Last edited by OnegWR:
Modified links pointing to docs server
Mon, 28 Jan 2008 00:11 UTC [diff]

What

Use
{{tree}}

Installation

Code
<?php
// Display a 'tree' of parent-pages by OnegWR
// e.g. OnegWR > OnegWRactions > OnegWRactionsTree
$treelink=$this->Link($this->config["root_page"]);
$treepage="";
$max = strlen($this->tag);
for($i=0;$i<$max;$i++){
        $treepage .= $this->tag{$i};
        if( $this->ExistsPage($treepage) ){
                $treelink .= " &gt; ";
                $treelink .= $this->Link($treepage);
        }
}
print $treelink;
?>

History

To Do


CategoryUserContributions
There are no comments on this page.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki