Feature #29535
closedSeparate FlashMessage by Plugin
0%
Description
We've an intranet with several Extbase extensions. On the front page, there are many plugins from different extensions shown together.
It would be very cool, if the behaviour of the "dumb" FlashMessage stack could be enhanced, so that one can limit a certain FlashMessage to only be shown within a certain extension or even only in a certain plugin of that extension. This would allow us to have show the appropriate success message within the area of a certain plugin on the front page instead of $somewhere else where it has not direct connection to the plugin where the action was fired.
To be backwards compatible, I suggest to have the method that adds a message to the stack to be enriched by one more parameter - if not set, the behaviour is like the current behaviour -> message is shown as soon as the stack is fetched and the messages shown. But as soon as the message is "targeted", it will only be shown if the flash message stack is fetched from that target plugin.