Skip to content

Commit

Permalink
[splittingred#1] Add &folderOnly parameter to show only container
Browse files Browse the repository at this point in the history
  • Loading branch information
dvio committed Dec 2, 2011
1 parent 37aac1b commit 770551b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions core/components/wayfinder/wayfinder.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ function __construct(modX &$modx,array $config = array()) {
'ph' => false,
'debug' => false,
'ignoreHidden' =>false,
'folderOnly' => false,
'hideSubMenus' => false,
'useWeblinkUrl' => true,
'fullLink' => false,
Expand Down Expand Up @@ -535,6 +536,11 @@ public function getData() {
if (!$this->_config['ignoreHidden']) {
$c->where(array('hidemenu:=' => 0));
}

/* added folder only option */
if ($this->_config['folderOnly']) {
$c->where(array('isfolder:=' => 1));
}

/* if set, limit results to specific resources */
if (!empty($this->_config['includeDocs'])) {
Expand Down

0 comments on commit 770551b

Please sign in to comment.