ViewHelpers
The extension provides two Fluid ViewHelpers for use in custom templates.
Namespace: http://
Namespace prefix: env
<html xmlns:env="http://typo3.org/ns/KonradMichalik/Typo3EnvironmentIndicator/ViewHelpers"
data-namespace-typo3-fluid="true">
Table of Contents
FaviconViewHelper
Processes a favicon path through the configured environment indicator modifiers. If no Favicon indicator is active for the current context, the original path is returned unchanged. The same happens if the feature is switched off in the extension configuration or if the image processing fails.
The favicon path is the content of the ViewHelper. The registered favicon argument is not evaluated, pass the
path as tag content or through the inline pipe.
Usage:
<!-- As tag content -->
<env:favicon>{f:uri.resource(path:'EXT:your_extension/Resources/Public/Favicon/favicon.png')}</env:favicon>
<!-- As inline pipe -->
{f:uri.resource(path:'EXT:your_extension/Resources/Public/Favicon/favicon.png') -> env:favicon()}
ImageViewHelper
Processes a frontend image path through the configured environment indicator modifiers. If no Frontend Image indicator is active for the current context, the original path is returned unchanged. The same happens if the feature is switched off in the extension configuration or if the image processing fails.
The image path is the content of the ViewHelper. The registered _path argument is not evaluated, pass the path
as tag content or through the inline pipe.
Usage:
<!-- As tag content -->
<env:image>{f:uri.resource(path:'EXT:your_extension/Resources/Public/Images/logo.png')}</env:image>
<!-- As inline pipe -->
{f:uri.resource(path:'EXT:your_extension/Resources/Public/Images/logo.png') -> env:image()}