Categories
Makes a menu of pages belonging to one or more categories. If a page belongs to several of the selected categories, it will appear only once. By default pages are unsorted.
Each in the resulting array of pages gets an additional entry with key
_categories
containing the list of categories the page belongs to,
as a comma-separated list of uid's. It can be accessed with
or .
like any other field.
Properties
special.value
-
- Type
- list of categories / stdWrap
- Example
- Example: List pages in categories with UID 1 and 2
Comma-separated list of categories UID's.
special.relation
special.sorting
special.order
-
- Type
asc
ordesc
/ stdWrap- Default
asc
Order in which the pages should be ordered, ascending or descending. Should be
asc
ordesc
, case-insensitive. Will default toasc
in case of invalid value.
Examples
Example: List pages in categories with UID 1 and 2
20 = HMENU
20 {
special = categories
special.value = 1,2
1 = TMENU
1.NO {
// ...
}
}
Copied!