Using icons
Rendering via Fluid
The
<core: ViewHelper, provided by EXT:core system
extension, can be used to render icons in Fluid.
Just make sure that the corresponding namespace is loaded in the template and pass the icon identifier (e.g. retrieved from a database field).
<html
xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
xmlns:core="http://typo3.org/ns/TYPO3/CMS/Core/ViewHelpers"
data-namespace-typo3-fluid="true"
>
<core:icon identifier="{data.icon}" />
</html>
Copied!