Source of file BoltSiteMap.php
Size: 0,714 Bytes - Last Modified: 2021-12-24T06:39:34+00:00
/var/www/docs.ssmods.com/process/src/code/controllers/BoltSiteMap.php
1234567891011121314151617181920212223242526272829 | <?php class BoltSiteMap extends Page_Controller { function init() { // This hack prevents the ContentController from restricting access when in draft site $this->URLSegment = 'Security'; parent::init(); } function index() { $data = array( 'Title' => 'Site Map', 'MenuTitle' => 'Site Map', 'MetaTitle' => 'Site Map', ); return $this->customise($data)->renderWith(array('SiteMap', 'Page')); } static function getSiteMapChildrenOf($parent=0, $excludeClasses=array('ErrorPage','PopupPage','SiteMap')) { $level = Page::get()->filter(array( 'ParentID' => $parent, 'ShowInSiteMap' => 1, ))->exclude(array( 'ClassName' => $excludeClasses, )); return $level; } } |