[TYPO3-mvc] viewHelper called twice
Georg Schönweger
georg.schoenweger at gmail.com
Wed May 11 09:39:20 CEST 2011
sry for the noises, it was my mistake! As Franz mentioned i had an
"error" in my TS-Setup. Maybe this will help someone else too;
I used for the first time backend layouts introduced with t3 4.5 ... in
TS Template i used it like this;
page.10 = COA
page.10.if = BACKEND_LAYOUT_1
page.10.subparts.CONTENT < styles.content.get
page.20 = COA
page.20 < page.10
page.20.if = BACKEND_LAYOUT_2
page.20.subparts.OTHER_CONTENT ...
As far as i understood, due to the copy of TS (page.20 < page.10) the
styles.content.get gets internally rendered twice. This will cause
extbase controller to get called twice too.
I changed now my TS-Setup .. in order to distinguish which backend
layout was choosen i use some CASE statements ..
- Georg
Am 10.05.2011 18:10, schrieb Georg Schönweger:
> Hi Franz,
>
> you are right, the controller is called twice. How is this possible? Do
> you mean i have something wrong in my TS-Setup? .. didn't change there
> anything. As i said earlier i tried also with the blog example
> extension, same thing. Then i created a new clean extension with the
> extbase kickstarter, same thing here, controller gets called twice.
>
> Tomorrow i will try with a clean Typo3 Installation, very strange...
>
> - Georg
>
> Am 10.05.2011 11:14, schrieb Franz Koch:
>> Hey,
>>
>>> could this be a bug in extbase / fluid or am i doing something wrong? I
>>> tested now also with the blog example extension, same here ... the
>>> render Method of every viewHelper gets called 2 times.
>> could you please check if also your content is rendered twice by
>> adding a debug message to the controller? In general things get
>> rendered only once, so I suppose it's some issue in your setup.
>>
> _______________________________________________
> 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