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 ch.tocco.nice2.dms.impl.freemarker.ContentTreeDirective
requestService
Fields inherited from interface freemarker.template.TemplateModel
NOTHING
-
Constructor Summary
ConstructorDescriptionBreadcrumbsDirective
(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.DirectiveContext
getDirectiveContext
(freemarker.core.Environment env, Map params, freemarker.template.TemplateDirectiveBody body) Methods inherited from class ch.tocco.nice2.dms.impl.freemarker.ContentTreeDirective
execute, getTitle
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
getDirectiveContext
in classContentTreeDirective
- Throws:
ParameterException
freemarker.template.TemplateException
-
getChildren
protected ArrayList<ContentTreeNode> getChildren(ContentTreeNode node, Iterable<String> nodeTypes, boolean ignoreVisibleInNavigation) - Overrides:
getChildren
in classContentTreeDirective
-