---
title: "TMENUITEM"
manual: "TypoScript Explained"
version: "main"
permalink: "https://docs.typo3.org/permalink/t3tsref:tmenuitem@main"
source: "ContentObjects/Hmenu/Tmenu/Tmenuitem.rst"
rendered: "2026-09-19T06:55:14+00:00"
---

# TMENUITEM {#tmenuitem}

> [!WARNING]
> This TypoScript object is still available to provide backward compatibility
> for old sites. When creating a new menu or refactoring an existing one
> always use the [menu data processor](https://docs.typo3.org/permalink/t3tsref:menuprocessor@main)
> and a Fluid template.

For examples on how to use the TMENUITEM please refer to old version of this
document, for example [TMENUITEM](https://docs.typo3.org/m/typo3/reference-typoscript/11.5/en-us/ContentObjects/Hmenu/Tmenu/Tmenuitem.html#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 {#tmenuitem-properties}

### allWrap {#tmenuitem-allwrap}

-   **allWrap**

    -   *Type:* [Wrap](https://docs.typo3.org/permalink/t3tsref:data-type-wrap@main) / [stdWrap](https://docs.typo3.org/permalink/t3tsref:stdwrap@main)

    Wraps the whole item.

### wrapItemAndSub {#tmenuitem-wrapitemandsub}

-   **wrapItemAndSub**

    -   *Type:* [Wrap](https://docs.typo3.org/permalink/t3tsref:data-type-wrap@main) / [stdWrap](https://docs.typo3.org/permalink/t3tsref:stdwrap@main)

    Wraps the whole item and any submenu concatenated to it.

### subst_elementUid {#tmenuitem-subst-elementuid}

-   **subst_elementUid**

    -   *Type:* [boolean](https://docs.typo3.org/permalink/t3tsref:data-type-boolean@main)
    -   *Default:* 0 (false)

    If set, all appearances of the string '{elementUid}' in the HTML code of the
    element (after wrapped in [.allWrap](https://docs.typo3.org/permalink/t3tsref:tmenuitem-allwrap@main)) 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 {#tmenuitem-before}

-   **before**

    -   *Type:* HTML / [stdWrap](https://docs.typo3.org/permalink/t3tsref:stdwrap@main)

### beforeWrap {#tmenuitem-beforewrap}

-   **beforeWrap**

    -   *Type:* [Wrap](https://docs.typo3.org/permalink/t3tsref:data-type-wrap@main)

    Wrap around the [.before](https://docs.typo3.org/permalink/t3tsref:tmenuitem-before@main) code.

### after {#tmenuitem-after}

-   **after**

    -   *Type:* HTML / [stdWrap](https://docs.typo3.org/permalink/t3tsref:stdwrap@main)

### afterWrap {#tmenuitem-afterwrap}

-   **afterWrap**

    -   *Type:* [Wrap](https://docs.typo3.org/permalink/t3tsref:data-type-wrap@main)

    Wrap around the [.after](https://docs.typo3.org/permalink/t3tsref:tmenuitem-after@main) code.

### linkWrap {#tmenuitem-linkwrap}

-   **linkWrap**

    -   *Type:* [Wrap](https://docs.typo3.org/permalink/t3tsref:data-type-wrap@main)

### stdWrap {#tmenuitem-stdwrap}

-   **stdWrap**

    -   *Type:* [stdWrap](https://docs.typo3.org/permalink/t3tsref:stdwrap@main)

    stdWrap to the link text.

### ATagBeforeWrap {#tmenuitem-atagbeforewrap}

-   **ATagBeforeWrap**

    -   *Type:* [boolean](https://docs.typo3.org/permalink/t3tsref:data-type-boolean@main)
    -   *Default:* 0 (false)

    If set, the link is first wrapped with [\*.linkWrap\*](https://docs.typo3.org/permalink/t3tsref:tmenuitem-linkwrap@main)
    and then the `<a>` tag.

### ATagParams {#tmenuitem-atagparams}

-   **ATagParams**

    -   *Type:* *\<A>-params* / [stdWrap](https://docs.typo3.org/permalink/t3tsref:stdwrap@main)

    Additional parameters

### ATagTitle {#tmenuitem-atagtitle}

-   **ATagTitle**

    -   *Type:* [string](https://docs.typo3.org/permalink/t3tsref:data-type-string@main) / [stdWrap](https://docs.typo3.org/permalink/t3tsref:stdwrap@main)

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

### additionalParams {#tmenuitem-additionalparams}

-   **additionalParams**

    -   *Type:* [string](https://docs.typo3.org/permalink/t3tsref:data-type-string@main) / [stdWrap](https://docs.typo3.org/permalink/t3tsref:stdwrap@main)

    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](https://docs.typo3.org/permalink/t3tsref:typolink-additionalparams@main).

### doNotLinkIt {#tmenuitem-donotlinkit}

-   **doNotLinkIt**

    -   *Type:* [boolean](https://docs.typo3.org/permalink/t3tsref:data-type-boolean@main) / [stdWrap](https://docs.typo3.org/permalink/t3tsref:stdwrap@main)
    -   *Default:* 0

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

### doNotShowLink {#tmenuitem-donotshowlink}

-   **doNotShowLink**

    -   *Type:* [boolean](https://docs.typo3.org/permalink/t3tsref:data-type-boolean@main) / [stdWrap](https://docs.typo3.org/permalink/t3tsref:stdwrap@main)
    -   *Default:* 0

    If set, the text will not be shown at all (smart with spacers).

### stdWrap2 {#tmenuitem-stdwrap2}

-   **stdWrap2**

    -   *Type:* [Wrap](https://docs.typo3.org/permalink/t3tsref:data-type-wrap@main) / [stdWrap](https://docs.typo3.org/permalink/t3tsref:stdwrap@main)
    -   *Default:* |

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

### altTarget {#tmenuitem-alttarget}

-   **altTarget**

    -   *Type:* string

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

### allStdWrap {#tmenuitem-allstdwrap}

-   **allStdWrap**

    -   *Type:* [stdWrap](https://docs.typo3.org/permalink/t3tsref:stdwrap@main)

    stdWrap of the whole item.
