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
| Name | Type | Default |
|---|---|---|
| list of categories / stdWrap | ||
| string / stdWrap |
categories
|
|
| string / stdWrap | ||
asc or desc / stdWrap
|
asc
|
special.value
special.relation
special.sorting
special.order
Examples
Example: List pages in categories with UID 1 and 2
EXT:site_package/Configuration/Sets/Main/setup.typoscript
20 = HMENU
20 {
special = categories
special.value = 1,2
1 = TMENU
1.NO {
// ...
}
}
Copied!