---
title: "IconForRecord ViewHelper <core:iconForRecord>"
manual: "Fluid ViewHelper Reference"
version: "14.3"
permalink: "https://docs.typo3.org/permalink/t3viewhelper:typo3-core-iconforrecord@14.3"
source: "Core/IconForRecord.rst"
rendered: "2026-10-01T16:43:06+00:00"
---

# IconForRecord ViewHelper `<core:iconForRecord>` {#typo3-core-iconforrecord}

> [!NOTE]
> This ViewHelper is not available by default.
>
> [Import its namespace](https://docs.typo3.org/m/typo3/reference-coreapi/14.3/en-us/ApiOverview/Fluid/UsingFluidInTypo3.html#fluid-syntax-viewhelpers-import-namespaces)
> `{namespace core=TYPO3\CMS\Core\ViewHelpers\}` in the Fluid file or
> `xmlns:core="http://typo3.org/ns/TYPO3/CMS/Core/ViewHelpers/"` in the opening HTML tag.

ViewHelper to display an icon for a record.

The record can be given as a plain database row, which requires the table to be set as well, or as a record object, which already carries its table. The arguments "row" and "record" are interchangeable, exactly one of them must be given.

Go to the source code of this ViewHelper: [IconForRecordViewHelper.php (GitHub)](https://github.com/TYPO3/typo3/blob/main/typo3/sysext/core/Classes/ViewHelpers/IconForRecordViewHelper.php).

## Arguments of the `<core:iconForRecord>` ViewHelper {#typo3-core-iconforrecord-arguments}

-   **alternativeMarkupIdentifier**

    -   *Type:* string

    alternative markup identifier

-   **record**

    -   *Type:* array|TYPO3\\CMS\\Core\\Domain\\RecordInterface

    the record object or record row, interchangeable with "row"

-   **row**

    -   *Type:* array|TYPO3\\CMS\\Core\\Domain\\RecordInterface

    the record row or record object

-   **size**

    -   *Type:* string
    -   *Default:* 'small'

    the icon size

-   **table**

    -   *Type:* string

    the table for the record icon, not evaluated for record objects
