[TYPO3-english] TS match condition problem

JoH asenau info at cybercraft.de
Mon Dec 21 10:08:32 CET 2009


> My problem: I need to load a JS lib if a FCE is inserted. I saw an
> example about how to to do that with:
>
> page.headerData.20 = TEXT
> page.headerData.20.value= <script type="text/javascript" src="/
> fileadmin/templates/skin_trikes/js/swfobject.js"></script>
> page.headerData.20.if {
> value.data = register:includeSwfObject
> equals = 1
> }
>
> but, how can if i do that with page.includeJS
>
> TYPO3 4.3 has improvements related with page renderer and JS/CSS
> including and i preffer includeJS or includeFooterJS over headerData

Since none of them got stdWrap properties, I guess the two ways to go are
1) use headerData
2) ask for stdWrap properties to be enabled in T3 4.3.x

HTH

Joey

--
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
Xing: http://contact.cybercraft.de
Twitter: http://twitter.com/bunnyfield
TYPO3 cookbook (2nd edition): http://www.typo3experts.com




More information about the TYPO3-english mailing list