[TYPO3-mvc] Displaying and modifying session data on same page

Chris Wolff - AERTiCKET AG cwolff at aer.de
Mon Jun 1 12:37:47 CEST 2015


Hallo Jan,
nein es gibt keine Möglichkeit zu sagen welches Plug-In zuerst dargestellt wird. (das hängt von der reihenfolge im template ab)

Die einzige möglichkeit die du hättest ist das "aktualisieren der des session daten. Vor den Rendering Prozess zu schieben.
In dem du einen hook verwendest. Dann würde dein Update/aktualisieren vor dem eigentlichen erzeugen der Seite passieren.

Gruss chris

-----Ursprüngliche Nachricht-----
Von: typo3-project-typo3v4mvc-bounces at lists.typo3.org [mailto:typo3-project-typo3v4mvc-bounces at lists.typo3.org] Im Auftrag von Jan Kornblum
Gesendet: Montag, 1. Juni 2015 11:51
An: typo3-project-typo3v4mvc at lists.typo3.org
Betreff: [TYPO3-mvc] Displaying and modifying session data on same page

Dear newsgroup,

a plugin is placed twice on the same page: Plugin (A) is located in the page header and *shows* any session data ("5 items in basket"). Plugin
(B) is located in the content area below and *modifies* the session data ("add to basket, remove from basket", "list items"). Both plugin are uncached.

When the page is submitted ("add to basket"), the requested page still shows the "old" basket amount. The reason seems to be that the modifying plugin (B) is called *after* the displaying plugin (A) has already been called.

Is there a possibility to tell TYPO3 which plugin should be executed first (without changing the location the plugin is embedded in the FLUID template)?

Or is there anything that is generally wrong with my approach?

Thanks for your help!

Kind regards, Jan


_______________________________________________
TYPO3-project-typo3v4mvc mailing list
TYPO3-project-typo3v4mvc at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc



More information about the TYPO3-project-typo3v4mvc mailing list