Hi,
in my old "cms" - AWF 1.0
- Im often using resource hierarchy as navigation column (sidebar). Now I started to use Revo and missed this feature. After some research I found solution by a little addition in Wayfinder's wayfinder.class.php
Maybe it can help others too, so here is the code
- added new item to $this->_config:
- in function run() added after
$this->parentTree[] = $this->_config['hereId'];
the following
if ( $this->_config['level'] < 0 ) {
$this->_config['level'] = (count($this->parentTree) -1) - $this->_config['level'];
$this->_config['navigation'] = true;
}
- in function buildMenu() added
if ( $this->_config['navigation'] && !$this->isHere($parentId) )
continue;
before
if ( (!$this->_config['hideSubMenus'] || $this->isHere($parentId) || $parentId == 0) )
Thats the all. Now you can use negative value in "level" parameter, resulting a navigation tree from root to actual document + abs "level" (practically level=-1).
Perhaps not the most elegant solution, but pardon me, im n00b a bit
My english weak also