${core:findTopLevelElements()}

Looks for the nearest nested elements of the given class.

These elements may be direct descendents or descendents further down the tree, but only the top-most descendents are returned.

If the node is a page, its elements are checked, but the elements of its child pages are not.

Example

${core:findTopLevelElements(node, elementType)}

Function Information

Function Class: com.semanticcms.core.taglib.Functions
Function Signature: java.util.List<?> findTopLevelElements(com.semanticcms.core.model.Node, java.lang.String)
Display Name: None