IconForRecord ViewHelper <core:iconForRecord>
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 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.
<core:iconForRecord table="tt_content" row="{row}" />
<core:iconForRecord record="{record}" />
<core:iconForRecord row="{record}" />
Go to the source code of this ViewHelper: IconForRecordViewHelper.php (GitHub).
Arguments
The following arguments are available for the iconForRecord ViewHelper:
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