<v:nested_collection>
Iterates over a Vae Nested Collection and renders the text and tags inside once for every entry, including child entries.
You may nest a <v:divider>
tag inside this tag to
specify a divider that is shown after each entry or after a certain
number of entries. Dividers can also wrap the entry content.
You may nest a <v:nested_divider>
tag inside this
tag to specify a divider that is shown after each nesting level or after
a certain number of nesting levels. Nested dividers can also wrap the
nested entry content.
Required Attributes
path
- path to the collection you would like to render. Uses VaeQL syntax.
Optional Attributes
-
filter
- specify text representing a search query. Only entries matching the search query will be returned. -
filter_input
- specify the name of a GET or POST parameter containing a search query. Only entries matching the search query will be returned. -
order
- If set to the the name of a structure in this collection, the collection will be sorted by that structure. You may also sort by multiple structures by separating them with a comma. You may sort by a structure in descending order by wrapping the structure name withDESC()
, such asDESC(name)
. You may sort by the number of entries in a child collection by wrapping the child collection name withCOUNT()
, such asCOUNT(comments)
. You can reverse the order stored in Vae by setting this attribute toDESC()
. You can display elements in a random order by setting this attribute toRAND()
.
See Also
<v:divider>
, <v:nested_divider>
.
Sample Usage
List all categories (including children) without hierarchy:
List all categories in a hierarchical list: