Transform.html ViewHelper <f:transform.html>
ViewHelper to transform HTML and substitute internal link scheme aspects.
Go to the source code of this ViewHelper: Transform\HtmlViewHelper.php (GitHub).
Table of contents
Examples
Default parameters
packages/my_extension/Resources/Private/Templates/Content/Text.fluid.html
<f:transform.html selector="a.href" onFailure="removeEnclosure">
<a href="t3://page?uid=1" class="home">Home</a>
</f:transform.html>
Copied!
Output
<a href="https://example.com/home" class="home">Home</a>
Copied!
Inline notation
packages/my_extension/Resources/Private/Templates/Content/Text.fluid.html
{content -> f:transform.html(selector:'a.href', onFailure:'removeEnclosure')}
Copied!
Arguments of the <f:transform.html> ViewHelper
onFailure
-
- Type
- string
- Default
- 'removeEnclosure'
behavior on failure, either `removeTag`, `removeAttr`, `removeEnclosure` or `null`
selector
-
- Type
- string
- Default
- 'a.href'
comma separated list of node attributes to be considered