[TYPO3-core] RFC: #10069: Feature: Function for including extJS in Backend module
Martin Kutschker
masi-no at spam-typo3.org
Mon Jan 12 09:32:16 CET 2009
Steffen Kamper schrieb:
> Hi,
>
> here is an updated version.
> i added
> * @param debug (if set, ext-all-debug.js will be included instead of
> ext-all.js)
> * CSS possible override with $TBE_STYLES (possible for ext-all.css and
> theme css)
I found in TER the "extjs" extensions which also offers the option to
switch between compressed and uncompressed scripts and an option to
define the language.
Does it ake sense to rename these options?
$GLOBALS['TBE_STYLES']['extJS']['ext-all'] => 'CSS'
$GLOBALS['TBE_STYLES']['extJS']['ext-theme'] => 'theme'
The reason is that the "ext-" prefix is not needed and the files might
change in future versions of extJS (and therefore making no sense).
BTW, what happens if two scripts call this function with different
options? I think that extJS will be included twice as the JS/CSS loader
APIs will treat the included files as different.
Possible clashes with a second call:
* Changed adapter
this should throw an exception
* Changed debug
Load debug version
* Changed CSS:
Load CSS
* Changed theme
Load theme set in first call
* CHanged compressing
Load uncompressed files
* Change language
Load language set in first call
Masi
More information about the TYPO3-team-core
mailing list