---
title: "IconForResource ViewHelper <core:iconForResource>"
manual: "Fluid ViewHelper Reference"
version: "main"
permalink: "https://docs.typo3.org/permalink/t3viewhelper:typo3-core-iconforresource@main"
source: "Core/IconForResource.rst"
modified: "2026-09-17T05:12:06+00:00"
---

# IconForResource ViewHelper `<core:iconForResource>`

> [!NOTE]
> This ViewHelper is not available by default.
>
> [Import its namespace](https://docs.typo3.org/m/typo3/reference-coreapi/main/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 displays an icon for a FAL resource (file or folder means a `TYPO3\CMS\Core\Resource\ResourceInterface`).

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

## Arguments of the `<core:iconForResource>` ViewHelper

-   **alternativeMarkupIdentifier**

    -   *Type:* string

    Alternative markup identifier

-   **options**

    -   *Type:* array
    -   *Default:* array (
    )

    An associative array with additional options

-   **overlay**

    -   *Type:* string

    Overlay identifier

-   **resource**

    -   *Type:* TYPO3\\CMS\\Core\\Resource\\ResourceInterface
    -   *Required:* true

    Resource

-   **size**

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

    The icon size
