JCR taglib
Basic usage
-
SessionTag.
jrc:session sets the boundaries of a JCR session.
It creates a Session and stores it in a page scope variable.
-
CdTag.
jrc:cd sets the current working directory.
- NodesTag
jrc:nodes iterates over all the traversed nodes from the given node.
- PropertiesTag
jcr:properties iterates over the properties of the given node.
- OutTag
jcr:out displays Node and property values through
the given template engine and template.
- SetTag
jcr:set stores the given node or property in a
page context scoped variable.
- CountTag
jcr:counts counts the nodes returned by the given
Traverser and writes the value.
- SizeTag
jcr:size Estimates the cumulative size of the nodes returned by the given
Traverser and writes the value.
- QueryTag
jcr:query Iterates over the query result nodes.
- IfPresentTag
jcr:ifPresent Conditional tag which evaluates a node existence.
- versionsTag
jcr:versions Iterates over the versions of the given node
Advanced usage
- Test traversers
- Test filters
- Test comparators