[TYPO3] Adding JavaScript from TypoScript template
Tyler Kraft
headhunterxiii at yahoo.ca
Wed Oct 4 16:49:48 CEST 2006
I was wondering... "How the F*&K did Dmitry miss that?" ;-)
Dmitry Dulepov wrote:
> Hi!
>
> Christopher wrote:
>> Huh?
>>
>> What about this:
>>
>> page.headerData.50 = HTML
>> page.headerData.50 {
>> value.data = field:uid
>> value.wrap = <script type="text/javascript"><!-- fireOnload(
>> function() { restoreTreeState("nav","|"); }); //--></script>
>> }
>>
>> Tested and working.
>
> Wow, you are right and I overlooked headerData :) May be I should go and
> drink tea finally today ;)
>
More information about the TYPO3-english
mailing list