[TYPO3-ect] Ext-JS 1.0.1

Steffen Kamper steffen at sk-typo3.de
Mon Aug 13 18:56:46 CEST 2007


Hi Joerg,

i thought about this long time. Your idea of xclassing is the only way to 
change that in core.
I was really frustrated by examine - first i got problems on every page 
where some js / ajax scripts are used, because the 
additionalHeaderData -Array isn't comfortable.
(got probs with ImageLightbox2, WEC-Map etc.)
My temporary solution is to init extjs staticly in TS to be sure that this 
libs are included before my ext-scripts are included.

Anyway i think there is a hook needed in this pagegen-script (i don't like 
the xclass very well) and the Concept of additionalHeaderData is not clear.

In TS you use a numeric array, which is good for the order manipulation, in 
php the usage  is an associative array, which can't be sort that way.
To prevent double-includes is a vision that isn't simple to realize.

May be if there is a hook, a special extension could deal that hooking that 
point and could be configurable, e.g. simple prevent imagelightbox:
plugin.tx_pageheader.headerDataFromExt {
  #no lightbox
  kj_imagelightbox2_js_prototype = 0
  kj_imagelightbox2_js_scriptaculous = 0
 ...
}

that is my vision.

vg  Steffen


"Joerg Schoppet" <joerg at schoppet.de> schrieb im Newsbeitrag 
news:mailman.1.1187006018.15482.typo3-team-extension-coordination at lists.netfielders.de...
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Steffen Kamper wrote:
>> Hi Joerg,
>>
>> I have to find a temporary solution, may be you or someone has a good 
>> idea
>> how to
>> - force position in page header
>> - prevent double includes
>> etc
>>
>> vg  Steffen
>>
> Hi Steffen,
>
> after some digging the the core, actually the only thing I would see is
> XCLASSing tslib_pagegin->renderContent() before line 323
> (TSpagegen::renderContentWithHeader()).
>
> There you can, at least, go through
> $GLOBALS['TSFE']->additionalHeaderData and search for duplicates. But,
> the main problem I see is: can be absolutly sure, that an include:
> <script type="text/javascript"
> src="typo3conf/ext/extjs/src/ext-all.js"></script>
>
> will include the same file as:
> <script type="text/javascript"
> src="typo3conf/ext/myextall/ext-all.js"></script>
>
> Do you understand, what I mean?
>
> Perhaps someone named it's own special js-library, because of ignorance,
> also ext-all.js!
>
> Regards
>
> Joerg
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFGwEZCq5Me6rRDqPURAhTdAJ9Y2ebta1RjB/mzs4lCb2RkycuU9gCgjyvn
> MClyiGef1Uy2AmuEkE4s24I=
> =pJCr
> -----END PGP SIGNATURE----- 




More information about the TYPO3-team-extension-coordination mailing list