[TASK] Cleanup InfoBoxViewHelper
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Documentation / Changelog / 7.2 / Feature-66077-IntroduceCalloutsToReplaceContentAlerts.rst
1 ==============================================================
2 Feature: #66077 - Introduce callouts to replace content alerts
3 ==============================================================
4
5 Description
6 ===========
7
8 In several places alerts (flash messages) were used to display context information.
9 We introduce content info boxes and replace all occurrences where flash messages were used.
10
11
12 Impact
13 ======
14
15 We introduced a new layout for context information and added a ViewHelper to render the markup.
16
17
18 Examples
19 ========
20
21 Simple info box with a title. Please note that the title will always be HTML encoded by the ViewHelper
22
23 .. code-block:: html
24
25 <f:be.infobox title="Message title">your box content</f:be.infobox>
26
27 All options of the ViewHelper. If you pass your message as ViewHelper argument, it will also be HTML encoded.
28
29 .. code-block:: html
30
31 <f:be.infobox title="Message title" message="your box content" state="-2" iconName="check" disableIcon="TRUE" />
32
33 If you really need to output HTML in your message, use the closing variant. All children of the ViewHelper will be used as message.
34
35 .. code-block:: html
36
37 <f:be.infobox title="Message title" state="-2" iconName="check" disableIcon="TRUE">
38 <h1>{AlertMessage}</h1>
39 </f:be.infobox>