Format.replace ViewHelper <liaform:format.replace> 

This ViewHelper replace a substring of a give content by given string. This ViewHelper is used in the DataProtection form field to set the link to the configured privacy page.

Example 

{f:link.typolink(parameter: element.renderingOptions.pageUid) -> f:variable(name: 'link')} {formvh:translateElementProperty(element: element, property: 'label') -> f:variable(name: 'translation')}
<f:format.raw>
  <liaform:format.replace substring="%s" content="{translation}" replacement="{link}" />
</f:format.raw>
Copied!

Arguments

The following arguments are available for the format.replace ViewHelper:

caseSensitive

caseSensitive
Type
boolean
Default
true
If true, perform case-sensitive replacement

content

content
Type
string
Content in which to perform replacement

count

count
Type
integer
Maximum number of times to perform replacement

replacement

replacement
Type
string
Default
''
Replacement to insert

substring

substring
Type
string
Required
1
Substring to replace