IconForResource ViewHelper <core:iconForResource>
Note
This ViewHelper is not available by default.
Import its namespace
{namespace core=TYPO3\ in the Fluid file or
xmlns: in the opening HTML tag.
ViewHelper to displays an icon for a FAL resource (file or folder means a TYPO3\).
Go to the source code of this ViewHelper: IconForResourceViewHelper.php (GitHub).
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
- 1
Resource
size
-
- Type
- string
- Default
- 'small'
The icon size