Feature #64723
closedBe able to create flash-messages from TypoScript
Added by Stefan Neufeind almost 10 years ago. Updated about 6 years ago.
0%
Description
Maybe just as content-objects that write a flash-message as they are being "rendered"?
Updated by Riccardo De Contardi over 9 years ago
- Status changed from New to Needs Feedback
- Assignee set to Stefan Neufeind
Stefan, I am not sure I've understood what you mean with "flash-message". Can you give me an example?
Thank you
Updated by Stefan Neufeind over 9 years ago
Well, FlashMessages :-) See typo3/sysext/core/Classes/Messaging/FlashMessageService.php
Those messages where some plugin can send "XYZ completed successfully" and some other component pick those up and show them at an appropriate place.
Updated by Riccardo De Contardi over 9 years ago
You mean that every Content Element should be able to send out these messages when certain conditions are satisfied?
so these messages are properties or attributes of the content element, right?
Updated by Stefan Neufeind over 9 years ago
Or maybe some cObject that, when "rendered", will send a message to a queue? So the rendering wouldn't output anything - but trigger an action. When used with conditions or used with stdWrap-functionality you could use several places to trigger such a cObject to write a message and further down in the rendering fetch those messages again for display (or even fetch them from a Fluid-template).
Updated by Riccardo De Contardi over 9 years ago
- Status changed from Needs Feedback to New
It seems a bit strange to me a CE without output...but I'll set this as "new" again; thank you for your feedback and explanation.
Updated by Elmar Hinz over 9 years ago
Messaging is a toplevel part of the core. There is a FlashMessage and an ErrorpageMessage.
That gives this feature request some importance.
One could rephrase the request, to implement the Messaging feature of the core into TypoScript.
Maybe just as content-objects that write a flash-message as they are being "rendered"?
Usually TypoScript is only rendered once. Thinking of an object it would need to work similar to COA_INT or USER_INT.
I would think of a MESSAGE object to set the messages and a MESSANGER object to output the Messages in any form. The MESSAGE object would offer the types flash and errorpage for now.
Question: Could you place the MESSANGER object on top of the page to output messages from below?
That would require that the _INT processing is done at least twice. Isn't it done repeatedly anyway until all nested _INT are processed?
Updated by Benni Mack over 8 years ago
- Status changed from New to Needs Feedback
Seriously? Flash Messages in TypoScript? In Frontend Output? what is a real use case here?
Also, styling / html output is a big question mark.
I don't see a real benefit here.
Updated by Mathias Brodala over 8 years ago
Benni Mack wrote:
Seriously? Flash Messages in TypoScript? In Frontend Output? what is a real use case here?
Also, styling / html output is a big question mark.
I don't see a real benefit here.
I think comment #4 shows how it could be done, thus basically just push a message into a message queue. Output is then done as usual and could cover e.g. global site/page messages. I could imagine this being quite useful.
Updated by Alexander Opitz about 8 years ago
- Status changed from Needs Feedback to New
Updated by Stefan Neufeind about 6 years ago
- Status changed from New to Rejected
Closed since nobody really missed that feature for a long time. In case you disagree please speak up and provide some code :-)