Project

General

Profile

Actions

Feature #29535

closed

Separate FlashMessage by Plugin

Added by Mario Rimann about 13 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Frontend
Target version:
-
Start date:
2011-09-07
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

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.

Actions #1

Updated by Mario Rimann about 11 years ago

Is this a stupid proposal and there are better solutions to solve this? Or should this still be implemented?

Actions #2

Updated by Wouter Wolters about 11 years ago

  • Status changed from New to Needs Feedback

This is AFAICS already possible since 6.1. See the new \TYPO3\CMS\Core\Messaging\FlashMessageService for the internal working

Actions #3

Updated by Mario Rimann about 11 years ago

Thanks Wouter, saw it now. I think we'll play with that new Queues-Feature. This issue can be closed.

Actions #4

Updated by Alexander Opitz about 11 years ago

  • Status changed from Needs Feedback to Closed
Actions

Also available in: Atom PDF