\SiteTreeNavigation
class SiteTreeNavigation This is an unofficial second version of the Nested Menu module by Mark James, which provides the same functionality for SilverStripe 2
- Author: Mark James <mail@mark.james.name>
Synopsis
class SiteTreeNavigation
extends DataExtension
{
- // members
- protected static string $list_item_format = '<li class="%3$s"><a href="%2$s">%1$s</a>%4$s</li>';
- // methods
- public string SiteTreeNav()
- private string generateSiteTreeList()
- private mixed childrenForSiteTreeList()
Hierarchy
Extends
- DataExtension
Members
protected
- $list_item_format
—
string
The format for a single item within the menu.
Methods
private
- childrenForSiteTreeList() — Find all the children for the given page that are set to display in menus.
- generateSiteTreeList() — Generate an <code><ul></code> containing each item in the given list of pages, and recurse down the structure for the current section.