[TYPO3-community] community - flashmessage displayer, function?

Tymoteusz Motylewski t.motylewski at gmail.com
Mon Oct 31 19:20:50 CET 2011


Hello Stefan
Manual describes installation of a community in the introduction
package, so it can differ in other installations. For templavoila
setup should be different.

> Is it to display any messages after submitting e.g. a message?
Yes exactly. It is possible that there are no flashmessages after some
actions (please fill feature request then).
Flashmessage displayer should be included in page only once. It
doesn't make difference where exacly you will put it, as it uses Java
Script for showing message in a proper place.

setting "plugin.tx_community.settings.flashMessagesDisplayer.where =
#contentbox"
means that element with id = contentbox will be prepended with flash
messages - see  Resources / Private /Templates / Utils /
FlashMessagesDisplay.html template.
of course  jQuery is required for this to work.

Cheers
Tymek

On 30 October 2011 11:18, Stefan Kaufmann <kaufmann at dwwd.ch> wrote:
>
> Hello all,
>
> Can anyone explain me the function of the flashmessage displayer in community? Is it to display any messages after submitting e.g. a message? In what instance is this function triggered?
>
> I've tried to set it up according the manual with the following code in TSsetup:
>
> # testing community
> lib.content = COA
> lib.content.10 < plugin.tx_community.flashMessagesDisplayer
> lib.content.20 < styles.content.get
>
> lib.contentbox < lib.content
>
> # And configure in which part of a page this plugin should be displayed (done by js).
> plugin.tx_community.settings.flashMessagesDisplayer.where = #contentbox
>
>
>
> The content in the template (templavoila) is referenced like this:
> <div id="content">
>  <div id="contentbox">
>  </div>
> </div>
>
> Is this the correct code when using TemplaVoila?
> Thanks in advance
> -Stefan
>
>
>
>
> _______________________________________________
> TYPO3-project-community mailing list
> TYPO3-project-community at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-community


More information about the TYPO3-project-community mailing list