[TYPO3-dev] includeJS from frontend plugin

Xavier Perseguers typo3 at perseguers.ch
Sun Sep 14 23:40:13 CEST 2008


Hi

>> How may I include a JS (in <head>) from my plugin content generation 
>> method?
>>
>> I do not want to force my users to create a template extension and 
>> manually add it whenever they use my plugin on a given page.
>>
>> If it's not possible, I'll add a <script> block before my content but 
>> it won't be as nice as it will be added once for each of my plugin on 
>> that page.
> 
> Check how comments extension does it. Search pi1 code for 
> additionalHeaderData and see how to do it flexibly and without forcing 
> the script.

I definitively should print its source code to read it in my bed ;-)

> More details will be in the book ;)

Yes, I'm sure. But you know... booked for a few weeks now and it still 
does not pop up in my mailbox when I come back from work... I'm really 
langing for it :D

-- 
Xavier Perseguers
http://xavier.perseguers.ch/en




More information about the TYPO3-dev mailing list