Feature #10821

add possibility to output FlashMessageQueue

Added by Tolleiv Nietsch over 11 years ago. Updated over 11 years ago.

Status:
Resolved
Priority:
Should have
Category:
ViewHelpers
Target version:
-
Start date:
2010-11-15
Due date:
% Done:

0%

Estimated time:
Has patch:

Description

It seems that there's no way to output the FlashMessageQueue in a extbase driven be-module.

The attached patch adds a simple ViewHelper which outputs the queue.

It would be good if this could be included into 4.5 beta1 because I'd like to make use of it within the new workspace module.


Files

v1.patch (3.74 KB) v1.patch Tolleiv Nietsch, 2010-11-15 22:55
10821_extbase_v2.patch (6.94 KB) 10821_extbase_v2.patch Bastian Waidelich, 2010-11-25 16:46
10821_fluid_v2.patch (2.97 KB) 10821_fluid_v2.patch Bastian Waidelich, 2010-11-25 16:46
#1

Updated by Steffen Ritter over 11 years ago

+1 reading and testing,
but If sb. would have the time, I would prefer to use the already in place FlashMessage ViewHelper and behave different in case of TYPO3_MODE== BE or FE.

regards

Steffen

#2

Updated by Bastian Waidelich over 11 years ago

  • Tracker changed from Bug to Feature
  • Project changed from 534 to TYPO3.Fluid
  • Status changed from New to Accepted
  • Assignee set to Bastian Waidelich
#3

Updated by Bastian Waidelich over 11 years ago

  • Category set to ViewHelpers
  • Branch set to v4
#4

Updated by Bastian Waidelich over 11 years ago

Attached patches extend Extbase and the FlashMessage ViewHelper of Fluid in order to use the t3lib_FlashMessageQueue.
To stay backwards compatible, the FlashMessage will render an unordered list with the messages as simple string by default. If you want it to output them in the TYPO3 core format, use the optional argument "renderMode":

<f:renderFlashMessages renderMode="div" />

#5

Updated by Tolleiv Nietsch over 11 years ago

+1 by reading and testing the v2 patches :)

#6

Updated by Bastian Waidelich over 11 years ago

Thanks Tolleiv, it's already committed ;)

#7

Updated by Bastian Waidelich over 11 years ago

  • Status changed from Accepted to Resolved

Applied in changeset r3063

Also available in: Atom PDF