TMENU 

For examples on how to use the TMENU please refer to old version of this document, for example TMENU-.

TMENU item states 

These properties are all the item states used by TMENU .

The following Item states are listed from the least to the highest priority:

NO
NO
Type
boolean / TMENUITEM
Default
1 (true)

The default "Normal" state rendering of Item. This is required for all menus.

IFSUB
IFSUB
Type
boolean / TMENUITEM
Default
0

Enable/Configuration for menu items which has subpages.

ACT
ACT
Type
boolean / TMENUITEM
Default
0

Enable/Configuration for menu items which are found in the rootLine.

ACTIFSUB
ACTIFSUB
Type
boolean / TMENUITEM
Default
0

Enable/Configuration for menu items which are found in the rootLine and have subpages.

CUR
CUR
Type
boolean / TMENUITEM
Default
0

Enable/Configuration for a menu item if the item is the current page.

CURIFSUB
CURIFSUB
Type
boolean / TMENUITEM
Default
0

Enable/Configuration for a menu item if the item is the current page and has subpages.

USR
USR
Type
boolean / TMENUITEM
Default
0

Enable/Configuration for menu items which are access restricted pages that a user has access to.

SPC
SPC
Type
boolean / TMENUITEM
Default
0

Enable/Configuration for 'Spacer' pages.

Spacers are pages of the doktype "Spacer". These are not viewable pages but "placeholders" which can be used to divide menu items.

USERDEF1
USERDEF1
Type
boolean / TMENUITEM

User-defined, see itemArrayProcFunc for details on how to use this.

You can set the ITEM_STATE values USERDEF1 and USERDEF2 (+...RO) from a script/user function processing the menu item array. See the property itemArrayProcFunc of the menu objects.

USERDEF2
USERDEF2
Type
boolean / TMENUITEM

Same like USERDEF1 but has a higher priority.