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

Sebastian Schreiber me at schreibersebastian.de
Mon Jun 1 12:59:44 CEST 2015


I would recommend you to use a dedicated action to update the session
data and then redirect to a given page or the referrer.

Am 01.06.2015 um 12:37 schrieb Chris Wolff - AERTiCKET AG:
> 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
> 
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
> 


-- 
Sebastian Schreiber
(Medieninformatiker B.Sc.)
(TYPO3 Certified Integrator)

Paul Nießen Straße 58
D-50969 Köln

T  0221 677 88 541
M  0176 431 05 790

Skype schreibersebastian.de

me at schreibersebastian.de
www.schreibersebastian.de

Steuernummer: 219 / 5302 / 3123


More information about the TYPO3-project-typo3v4mvc mailing list