[TYPO3-dev] Class for flashmessages
Martin Kutschker
masi-no at spam-typo3.org
Sun May 9 20:46:11 CEST 2010
Søren Malling schrieb:
> Hi,
>
> This thread might be related to all instances of flashMessage (FLOW3,
> TYPO3, ExtBase etc.)
>
> A find it a problem that i can't seem to be able to set a CSS class
> along with adding a flashmessage.
>
> I might have a form where i wan't to show a flashmessage. From my
> knowledge as of today, I'm able to use
> $this->flashMessages->add('Flash message content'); but not able to
> set any class, so i can show in for example green (OK - all went well)
> or red (ERROR - something went wrong) box.
I don't think that you should be able to set a class here. The styling should be done by the
renderer. What would make sense is to have an (extensible?) set of message types.
Masi
More information about the TYPO3-dev
mailing list