TMENUITEM

The current record is the page record of the menu item. If you would like to get data from the current menu item's page record, use stdWrap.data = field : [field name].

Properties

allWrap

allWrap
Data type

wrap / stdWrap

Wraps the whole item.

wrapItemAndSub

wrapItemAndSub
Data type

wrap / stdWrap

Wraps the whole item and any submenu concatenated to it.

subst_elementUid

subst_elementUid
Data type

boolean

Default

0 (false)

If set, all appearances of the string '{elementUid}' in the HTML code of the element (after wrapped in .allWrap) are substituted with the UID number of the menu item.

This is useful, if you want to insert an identification code in the HTML in order to manipulate properties with JavaScript.

before

before
Data type

HTML / stdWrap

beforeWrap

beforeWrap
Data type

wrap

Wrap around the .before code.

after

after
Data type

HTML / stdWrap

afterWrap

afterWrap
Data type

wrap

Wrap around the .after code.

linkWrap

linkWrap
Data type

wrap

stdWrap

stdWrap
Data type

stdWrap

stdWrap to the link text.

ATagBeforeWrap

ATagBeforeWrap
Data type

boolean

Default

0 (false)

If set, the link is first wrapped with *.linkWrap* and then the <a> tag.

ATagParams

ATagParams
Data type

<A>-params / stdWrap

Additional parameters

Example: :

EXT:site_package/Configuration/TypoScript/setup.typoscript
ATagParams = class="board"

ATagTitle

ATagTitle
Data type

string / stdWrap

Allows you to specify the "title" attribute of the <a> tag around the menu item.

Example: :

EXT:site_package/Configuration/TypoScript/setup.typoscript
ATagTitle.field = abstract // description

This would use the abstract or description field for the <a title=""> attribute.

additionalParams

additionalParams
Data type

string / stdWrap

Define parameters that are added to the end of the URL. This must be code ready to insert after the last parameter.

For details, see typolink->additionalParams.

doNotLinkIt

doNotLinkIt
Data type

boolean / stdWrap

Default

0

If set, the link texts are not linked at all.

stdWrap2

stdWrap2
Data type

wrap / stdWrap

Default

|

stdWrap to the total link text and <a> tag. (Notice that the plain default value passed to the stdWrap function is "|".)

altTarget

altTarget
Data type

target

Alternative target overriding the target property of the ref:TMENU <tmenu>, if set.

allStdWrap

allStdWrap
Data type

stdWrap

stdWrap of the whole item.