Bug #93422
closedFlash messages used for callouts in page module
0%
Description
Some errors / warnings are handled in PageLayoutController
These use a " callout " message type with the InfoBox template:
<f:be.infobox title="{title}" state="{state}">
<f:format.raw>{message}</f:format.raw>
</f:be.infobox>
which results for example in:
<div class="callout callout-danger"><div class="media"><div class="media-left"><span class="fa-stack fa-lg callout-icon"><i class="fa fa-circle fa-stack-2x"></i><i class="fa fa-times fa-stack-1x"></i></span></div><div class="media-body"><h4 class="callout-title">shortcut with missing target</h4><div class="callout-body">
Page is configured to be a link but there is actually no valid target defined.
</div></div></div></div>
Other messages (for example "Unused elements detected on this page") use a flashmessage styling:
<div class="typo3-messages"><div class="alert alert-warning"> <div class="media"> <div class="media-left"> <span class="fa-stack fa-lg"> <i class="fa fa-circle fa-stack-2x"></i> <i class="fa fa-exclamation fa-stack-1x"></i> </span> </div> <div class="media-body"> <h4 class="alert-title">Unused elements detected on this page</h4> <p class="alert-message">These elements don't belong to any of the available columns of this page. You should either delete them or move them to existing columns. We highlighted the problematic records for you.</p> </div> </div></div></div>
IMHO, the same styling (for callouts) should be used in these cases as well.
Files
Updated by Sybille Peters almost 4 years ago
- Related to Feature #93192: Add event to add additional callouts in page module added
Updated by Georg Ringer almost 4 years ago
- Status changed from New to Needs Feedback
please don't mix flash messages with callouts! those are different on purpose!
- flash messages: those are normally shown after an action, e.g saving something was succesful
- callouts: give the user permanent feedback
So in the given example the flash mssage could be changed to a callout but please discuss that with the ux group
Updated by Sybille Peters almost 4 years ago
- Subject changed from Different styles used for Flash messages in page module to Flash messages used for callouts in page module
- Description updated (diff)
Updated by Sybille Peters almost 4 years ago
Thanks for clearing that up. Wasn't aware of the "callouts".
I updated title and description.
Not sure which "ux group" I should discuss this with.
Updated by Sybille Peters almost 4 years ago
- Related to Task #93428: Rename function getHeaderFlashMessagesForCurrentPid() in PageLayoutController to reflect that callouts are used and not flashmesseages added
Updated by Sybille Peters about 3 years ago
- Status changed from Needs Feedback to Closed