Login / Status
developer.Resource
Home . Documentation . Document Library . References
Sponsors
hosted by punkt.deTYPO3 and Open Source MagazineAOE Media

10.2. Common item states for TMENU, GMENU and IMGMENU series:

These properties are in common for TMENU, GMENU and IMGMENU series. That means they are not used by for instance the JSMENU.

Property:

Data type:

Description:

Default:

NO

Boolean / (config)

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.

1

IFSUB

IFSUBRO

Boolean / (config)

Enable/Configuration for menu items which has subpages

0

ACT

ACTRO

Boolean / (config)

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

0

ACTIFSUB

ACTIFSUBRO

Boolean / (config)

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

0

CUR

CURRO

Boolean / (config)

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

0

CURIFSUB

CURIFSUBRO

Boolean / (config)

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

0

USR

USRRO

Boolean / (config)

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

0

SPC

Boolean / (config)

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 menuitems.

Note: Rollovers doesn't work with spacers, if you use GMENU!

0

USERDEF1

USERDEF1RO

Boolean / (config)

Userdefined, see .itemArrayProcFunc for details on how to use this.

You can set the ITEM_STATE values USERDEF1 and USERDEF2 (+...RO) from a script/userfunction processing the menu item array. See HMENU/special=userdefined or the property .itemArrayProcFunc of the menu objects.

USERDEF2

USERDEF2RO

Boolean / (config)

(See above)

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

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

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



TYPO3 Core API

TSRef