Flattens a page directed acyclic graph (DAG) into a list in depth-first traversal order. Each page is only added once when first visited.
The page DAG starts as a single page with any number of children. Each of the child pages may, in turn, have children. The result of this transformation is a list of pages in depth-first traversal order.
A page may actually be linked into multiple places in the DAG, so strictly speaking this is a single root Directed Acyclic Graph (DAG).
Only the first occurance of each page will be in the resulting list.
Parameter "level": Controls the level of detail to capture. May be one of:
page
- Fastest: captures page meta data only (including parent and child pages).meta
- Captures page and content meta data, but no body content.body
- Captures page and content meta data as well as all body content.
Example
${core:convertPageDagToList(rootPage, level)}
Function Information
Function Class: | com.semanticcms.core.taglib.Functions |
---|---|
Function Signature: | java.util.List<com.semanticcms.core.model.Page> convertPageDagToList(com.semanticcms.core.model.Page, java.lang.String) |
Display Name: | None |