Attention
TYPO3 v11 has reached end-of-life as of October 31th 2024 and is no longer being maintained. Use the version switcher on the top left of this page to select documentation for a supported version of TYPO3.
Need more time before upgrading? You can purchase Extended Long Term Support (ELTS) for TYPO3 v10 here: TYPO3 ELTS.
TMENUITEM
The current record is the page-record of the menu item. Now, if you would like to get data from the current menu item's page record, use stdWrap.data = field : [field name].
Properties
allWrap
allWrap
-
- Type
- wrap /stdWrap
Wraps the whole item.
wrapItemAndSub
wrapItemAndSub
-
- Type
- wrap /stdWrap
Wraps the whole item and any submenu concatenated to it.
subst_elementUid
subst_elementUid
-
- Type
- boolean
- Default
- 0 (false)
If set, all appearances of the string '{elementUid}' in the total element HTML code (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
-
- Type
- HTML /stdWrap
beforeWrap
beforeWrap
-
- Type
- wrap
wrap around the ".before"-code
after
after
-
- Type
- HTML /stdWrap
afterWrap
afterWrap
-
- Type
- wrap
wrap around the ".after"-code
linkWrap
linkWrap
-
- Type
- wrap
stdWrap
stdWrap
-
- Type
- stdWrap
stdWrap to the link-text
ATagBeforeWrap
ATagBeforeWrap
-
- Type
- boolean
- Default
- 0 (false)
If set, the link is first wrapped with ".linkWrap" and then the <A>-tag.
ATagParams
ATagParams
-
- Type
- <A>-params /stdWrap
Additional parameters
Example: :
EXT:site_package/Configuration/TypoScript/setup.typoscriptATagParams = class="board"
Copied!
ATagTitle
ATagTitle
-
- 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.typoscriptATagTitle.field = abstract // description
Copied!This would use the abstract or description field for the <a title=""> attribute.
additionalParams
additionalParams
-
- 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
-
- Type
- boolean /stdWrap
- Default
- 0
If set, the link texts are not linked at all
doNotShowLink
doNotShowLink
-
- Type
- boolean /stdWrap
- Default
- 0
If set, the text will not be shown at all (smart with spacers).
stdWrap2
stdWrap2
-
- Type
- wrap /stdWrap
- Default
- |
stdWrap to the total link-text and ATag. (Notice that the plain default value passed to the stdWrap function is "|".)
altTarget
altTarget
-
- Type
- target
Alternative target overriding the target property of the TMENU if set.
allStdWrap
allStdWrap
-
- Type
- ->stdWrap
stdWrap of the whole item