Common item states

These properties are all the item states used by TMENU.

Property

NO

Data type

boolean / (config)

Default

1 (true)

Description

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

If you specify properties for the “NO” property you do not have to set it “1”. Otherwise with no properties setting “NO=1” will render the menu anyways (for TMENU this may make sense).

The simplest menu TYPO3 can generate is then:

page.20 = HMENU
page.20.1 = TMENU
page.20.1.NO = 1

That will be pure <a> tags wrapped around page titles.

Property

IFSUB

Data type

boolean / (config)

Default

0

Description

Enable/Configuration for menu items which has subpages.

Property

ACT

Data type

boolean / (config)

Default

0

Description

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

Property

ACTIFSUB

Data type

boolean / (config)

Default

0

Description

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

Property

CUR

Data type

boolean / (config)

Default

0

Description

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

Property

CURIFSUB

Data type

boolean / (config)

Default

0

Description

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

Property

USR

Data type

boolean / (config)

Default

0

Description

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

Property

SPC

Data type

boolean / (config)

Default

0

Description

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.

Property

USERDEF1

Data type

boolean / (config)

Description

Userdefined, 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.

Property

USERDEF2

Data type

boolean / (config)

Description

(See above)

[tsref:(cObject).HMENU.(mObj_itemStates)]

Order of priority: USERDEF2, USERDEF1, SPC, USR, CURIFSUB, CUR, ACTIFSUB, ACT, IFSUB.

All *RO states require the default “RO” configuration to be set up.