Supported by: Community
Adds template functions for nested SiteTree menus
A SilverStripe module which adds template functions for a nested SiteTree menu.
The module will add the methods NestedMenu and HasNestedMenu to the SiteTree class via extension and and makes those methods available in the templates. This decorator also adds a checkbox field (ShowChildrenInMenus) to the CMS admin interface to allow CMS users to hide all of the sub-pages of a page from the nested menu.
You can start at a sub level (good for when you have a horizontal top-level nav) by calling NestedMenu with a parameter indicating the level to start at, or limit the maximum depth of the nesting by specifying a second parameter. You can also use HasNestedMenu to include additional markup if a menu is available.
Compatible with: SilverStripe 2.4
Download: No Download Available
To get a preview of our next release, download the latest build of unstable git master branch here. Please
be careful: this is more likely to contain bugs, especially on modules undergoing a lot of development.
SHA hash: 2e1a7665b61f543edd25def0b02d19753ec219bd
Build Date: 2012-02-14
Unstable Git access: