Be.infobox ViewHelper <f:be.infobox>
ViewHelper for rendering a styled content infobox markup.
States
The Infobox provides different context sensitive states that can be used to provide an additional visual feedback to the to the user to underline the meaning of the information.
Possible values are in range from -2
to 2
. Please choose a
meaningful value from the following list.
-2
- Notices (Default)
-1
- Information
0
- Positive feedback
1
- Warnings
2
- Error
Examples
Simple:
<f:be.infobox title="Message title">your box content</f:be.infobox>
Copied!
All options:
<f:be.infobox title="Message title" message="your box content" state="{f:constant(name: 'TYPO3\CMS\Fluid\ViewHelpers\Be\InfoboxViewHelper::STATE_NOTICE')}" iconName="check" disableIcon="true" />
Copied!
Source code
Go to the source code of this ViewHelper: Be\InfoboxViewHelper.php (GitHub).
Arguments
The following arguments are available for the be.infobox ViewHelper:
disableIcon
-
- Type
- bool
- Default
- false
If set to TRUE, the icon is not rendered.
iconName
-
- Type
- string
The icon name from font awesome, NULL sets default icon
message
-
- Type
- string
The message of the info box, if NULL tag content is used
state
-
- Type
- int
- Default
- -2
The state of the box, InfoboxViewHelper::STATE_*
title
-
- Type
- string
The title of the info box