Package org.craftercms.engine.navigation
Interface NavTreeBuilder
-
- All Known Implementing Classes:
NavTreeBuilderImpl
public interface NavTreeBuilder
Creates navigation trees that facilitate the rendering of navigation.- Author:
- avasquez
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description NavItem
getNavTree(String url, int depth, String currentPageUrl)
Returns the navigation tree with the specified depth for the specified store URL.NavItem
getNavTree(String url, int depth, String currentPageUrl, org.craftercms.commons.converters.Converter<SiteItem,NavItem> itemConverter)
Returns the navigation tree with the specified depth for the specified store URL.
-
-
-
Method Detail
-
getNavTree
NavItem getNavTree(String url, int depth, String currentPageUrl)
Returns the navigation tree with the specified depth for the specified store URL.- Parameters:
url
- the root folder of the treedepth
- the depth of the treecurrentPageUrl
- the URL of the current page (used to determine the active URLs).- Returns:
- the navigation tree
-
-