[TYPO3-mvc] addAdditionalHeaderData

Rens Admiraal renst3 at rensnel.nl
Tue Jun 8 23:55:20 CEST 2010


>>
>>> Hi
>>> addAdditionalHeaderData works fine if i use one Plugin on a Page. If
>>> two diffrent Plugins on a Page that using addAdditionalHeaderData
>>> only the latest one add the Header Data. Is there a Trick to add the
>>> Header Data from all Plugins?
>>> I know that i can add it via TS in setup.txt but it is not a nice
>>> Solution.
>>
>> I don't know what you are trying to archive, but if you just want to
>> add CSS and JS files, you could use the new properties introduced with
>> 4.3
>> page.includeJS ...
>> and
>> page.includeCSS ...
>>
>> Best regards
>> Phil
>

Hi Phil,

I can confirm this bug, and it's quite easy to solve. Extbase overwrites 
the additionalheaderdata based on the extension name. It would be easy 
to append it by checking if it's set allready yes/no...

Setting page.includeJS is a solution, sure... but I would rather call it 
a workaround :D This bug makes it inpossible to place 2 actions of the 
same plugin (not even the controller, but the entire plugin!) with both 
their own additionalheaderdata...

Hope it's more clear now ;-)


More information about the TYPO3-project-typo3v4mvc mailing list