Commit b27044e6 authored by Jonas Eberle's avatar Jonas Eberle Committed by Andreas Fernandez
Browse files

[BUGFIX] Restore FlashMessages in EXT:belog and EXT:beuser

With #94209 the ViewHelper be:moduleLayout was deprecated. That
ViewHelper injected the used FlashMessageQueue into the created
ModuleTemplate which took care of rendering messages.

This is now just replaced by a very explicit
<f:flashMessages /> in the templates.

Resolves: #95334
Releases: master
Change-Id: Ia45effdb7abfcbf491b98a28d91d332400ca28d2
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/71222

Reviewed-by: Wouter Wolters's avatarWouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: Torben Hansen's avatarTorben Hansen <derhansen@gmail.com>
Reviewed-by: Andreas Fernandez's avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
Tested-by: Torben Hansen's avatarTorben Hansen <derhansen@gmail.com>
Tested-by: Andreas Fernandez's avatarAndreas Fernandez <a.fernandez@scripting-base.de>
parent 757f82d1
......@@ -2,6 +2,7 @@
xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
data-namespace-typo3-fluid="true">
<f:flashMessages />
<f:render section="Content" />
</html>
......@@ -2,7 +2,8 @@
xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
data-namespace-typo3-fluid="true">
<f:variable name="isSubmoduleLayout" value="true"/>
<f:render section="Content"/>
<f:flashMessages />
<f:variable name="isSubmoduleLayout" value="true" />
<f:render section="Content" />
</html>
......@@ -56,6 +56,12 @@ All Core extensions that render backend
modules provide usage examples and the fluent API is quite straight
forward.
Using the :html:`be:moduleLayout` ViewHelper always rendered FlashMessages
from the queue :php:`'extbase.flashmessages.' . $pluginNamespace` on top of the
content area. You can either use the :html:`f:flashMessages` ViewHelper
or :php:`\TYPO3\CMS\Backend\Template\ModuleTemplate::setFlashMessageQueue()`
as replacements.
For Extbase base backend modules, the 'doc header' should be handled within
controller actions, while the module body is rendered
by the Fluid view component.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment