Package

ViewHelpers

ViewHelper Documentation

flashMessages

View helper which renders the flash messages (if there are any) as an unsorted list.

In case you need custom Flash Message HTML output, please write your own ViewHelper for the moment.

= Examples =

<f:flashMessages /> An ul-list of flash messages.

<f:flashMessages class="specialClass" />

<f:flashMessages />

<f:flashMessages as="flashMessages">

    <dl class="messages">
    <f:for each="{flashMessages}" as="flashMessage">
            <dt>{flashMessage.code}</dt>
            <dd>{flashMessage.message}</dd>
    </f:for>
    </dl>

</f:flashMessages>

    <dt>1013</dt>
    <dd>Some Warning Message.</dd>

Arguments

additionalAttributes anySimpleType, required

Additional tag attributes. They will be added directly to the resulting HTML tag.

data anySimpleType, required

Additional data-* attributes. They will each be added with a "data-" prefix.

renderMode string, required

@deprecated since TYPO3 CMS 7.3. If you need custom output, use <f:flashMessages as="messages"><f:for each="messages" as="message">...</f:for></f:flashMessages>

as string, required

The name of the current flashMessage variable for rendering inside

class string, required

CSS class(es) for this element

dir string, required

Text direction for this HTML element. Allowed strings: "ltr" (left to right), "rtl" (right to left)

id string, required

Unique (in this file) identifier for this HTML element.

lang string, required

Language for this element. Use short names specified in RFC 1766

style string, required

Individual CSS styles for this element

title string, required

Tooltip text of element

accesskey string, required

Keyboard shortcut to access this element

tabindex integer, required

Specifies the tab order of this element

onclick string, required

JavaScript evaluated for the onclick event

ViewHelper Resources

Schema Resources