Class BreadcrumbsDirective
java.lang.Object
ch.tocco.nice2.dms.impl.freemarker.ContentTreeDirective
ch.tocco.nice2.dms.impl.freemarker.BreadcrumbsDirective
- All Implemented Interfaces:
Nice2TemplateDirective, freemarker.template.TemplateDirectiveModel, freemarker.template.TemplateModel
Parameters:
* ignoreVisibleInNavigation (Boolean, optional, defaults to false):
set to true, to ignore the flag "isVisibleInNavigation"
* hideInvisibleRecursively (Boolean, optional, defaults to false):
set to true, to take the flag "isVisibleInNavigation" into account recursively
* showLast (Boolean, optional, defaults to false): set to true, to show the active page
* showHome (Boolean, optional, defaults to true): set to false, to hide the home page
Available variables:
* href (String): url
* label (String): label (name)
* title (String): title, fallback to label
* baseData (Entity): underlying entity of node (e.g. Page)
* first (Boolean): first node of level
* last (Boolean): last node of level
* active (Boolean): true for the currently requested node
* activePath (Boolean): true for any parent node of the currently requested node (i.e. its path is active)
-
Field Summary
Fields inherited from class ContentTreeDirective
requestServiceFields inherited from interface freemarker.template.TemplateModel
NOTHING -
Constructor Summary
ConstructorsConstructorDescriptionBreadcrumbsDirective(ContentTreeService contentTreeService, RequestService requestService, org.slf4j.Logger log) -
Method Summary
Modifier and TypeMethodDescriptionprotected ArrayList<ContentTreeNode> getChildren(ContentTreeNode node, Iterable<String> nodeTypes, boolean ignoreVisibleInNavigation) protected ch.tocco.nice2.dms.impl.freemarker.BreadcrumbsDirective.DirectiveContextgetDirectiveContext(freemarker.core.Environment env, Map params, freemarker.template.TemplateDirectiveBody body) Methods inherited from class ContentTreeDirective
execute, getTitleMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface freemarker.template.TemplateDirectiveModel
execute
-
Constructor Details
-
BreadcrumbsDirective
public BreadcrumbsDirective(ContentTreeService contentTreeService, RequestService requestService, org.slf4j.Logger log)
-
-
Method Details
-
getDirectiveContext
protected ch.tocco.nice2.dms.impl.freemarker.BreadcrumbsDirective.DirectiveContext getDirectiveContext(freemarker.core.Environment env, Map params, freemarker.template.TemplateDirectiveBody body) throws ParameterException, freemarker.template.TemplateException - Overrides:
getDirectiveContextin classContentTreeDirective- Throws:
ParameterExceptionfreemarker.template.TemplateException
-
getChildren
protected ArrayList<ContentTreeNode> getChildren(ContentTreeNode node, Iterable<String> nodeTypes, boolean ignoreVisibleInNavigation) - Overrides:
getChildrenin classContentTreeDirective
-