ViewHelpers
PreviewLinksViewHelper
Usage:
<f:variable name="previewLinks" value="{mail:previewLinks(uid:uid,pageId:pageId)}"/>
Parameters:
uid:
Uid of the mail page
pageId:
Page id of the mail-sys-folder containing the mail configuration mod..
Returns:
Preview-links, title, languageUid and flag-icon-identifiers for every language and type (plain/html), grouped by types.
The types (plain and/or html) will be taken from the Page TSconfig parameter mod.
from the given page, defined with e.g. the mail configuration module under "Mail format (default)".
GetBodyContentViewHelper
Extract the body tag content of the mail html content. Used to embed the mail html content.
Usage:
{mail.htmlContent -> mail:getBodyContent()}
RemoveMailBoundariesViewHelper
Remove the mail boundaries from the mail plain content. Used to embed the mail plain text content.
Usage:
{mail.plainContent -> mail:removeMailBoundaries()}
EmogrifyViewHelper
Writes the rules of a CSS as inline styles into the given HTML and can remove the class attributes afterwards. It does the same as the content object EMOGRIFIER, but inside of a Fluid template.
Usage:
<html xmlns:mail="http://typo3.org/ns/MEDIAESSENZ/Mail/ViewHelpers" data-namespace-typo3-fluid="true">
<mail:emogrify css="{css}" removeClassAttributes="1" smartClassRemoval="1">
<div class="body"><a href="https://example.org/">Link</a></div>
</mail:emogrify>
Parameters:
css:
The CSS as string. Style blocks which are part of the HTML are inlined as well. Default: empty string
Changed in version 4.3.0
The argument has the default value ''. Before, it was null if it was omitted.
extractContent:
Return only the content between the body tags. The head and with it the style block with the rules which could not be
inlined are dropped then. Default: false
options:
Options of the CSS inliner as array, see options of the content object.
removeClassAttributes:
Remove the class attributes after the CSS has been inlined. Default: false
New in version 4.3.0
keepOnTags:
Comma separated list of tag names (e.g. table, td), whose class attribute is kept. Only used together with
remove. Default: empty string
New in version 4.3.0
keepClasses:
Comma separated list of class names (e.g. body, btn), which are kept on all other elements. Only used together
with remove. Default: empty string
New in version 4.3.0
smartClassRemoval:
Keep the classes which are still needed by CSS rules that could not be inlined, e.g. body for the rule
.body a:. Only used together with remove. Do not combine it with
extract, because the style block with these rules is dropped then. Default: false
New in version 4.3.0
Returns:
The HTML with inline styles. The output is not escaped.
See Removing class attributes for details and an example.
ConstantViewHelper
Usage:
<f:variable name="contentSelectionBoundary" value="{mail:constant(name:'CONTENT_SECTION_BOUNDARY')}"/>
<!--{contentSelectionBoundary}_-->Content for all<!--{contentSelectionBoundary}_END-->
<!--{contentSelectionBoundary}_1-->content for category 1<!--{contentSelectionBoundary}_END-->
<!--{contentSelectionBoundary}_1,2,3-->content for category 1, 2 and 3<!--{contentSelectionBoundary}_END-->
Parameters:
name:
Name of the constant
classFQN:
Full qualified name of the class containing the constants. Default: MEDIAESSENZ\
Returns:
The value of the constant if exists, otherwise null.