Project

General

Profile

Actions

Feature #64723

closed

Be able to create flash-messages from TypoScript

Added by Stefan Neufeind about 9 years ago. Updated over 5 years ago.

Status:
Rejected
Priority:
Should have
Category:
TypoScript
Target version:
-
Start date:
2015-02-01
Due date:
% Done:

0%

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

Description

Maybe just as content-objects that write a flash-message as they are being "rendered"?


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #68420: Introduce data-processor for flash-messagesRejectedMathias Schreiber2015-07-21

Actions
Actions #1

Updated by Riccardo De Contardi almost 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

Actions #2

Updated by Stefan Neufeind almost 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.

Actions #3

Updated by Riccardo De Contardi almost 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?

Actions #4

Updated by Stefan Neufeind almost 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).

Actions #5

Updated by Riccardo De Contardi almost 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.

Actions #6

Updated by Elmar Hinz over 8 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?

Actions #7

Updated by Benni Mack about 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.

Actions #8

Updated by Mathias Brodala about 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.

Actions #9

Updated by Alexander Opitz over 7 years ago

  • Status changed from Needs Feedback to New
Actions #10

Updated by Stefan Neufeind over 5 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 :-)

Actions

Also available in: Atom PDF