Hi,
This is interesting actually. Do you have an example of proper
usage of
additionalJavaScript?
I use it in one of my extensions, but the JavaScript still gets
into the
header and not in the external file. Any idea what could be happening
there?
Hm, may be it is 4.1 issue? :( In 4.2 it is possible to remove
absolutely all JS and also minify it.
I finally thought about checking with 4.2 and it's no better. My
JavaScript still does not get into the external file (and obviously
not minified...).
I have:
config.removeDefaultJS = external
in my setup, and this kind of code in my extension:
$fullInitializationScript = '';
$fullInitializationScript .= 'var efa_default = '.((empty($this-
>localconf['defaultFontSize'])) ? 100 : intval($this->localconf
['defaultFontSize'])).";\n";
$fullInitializationScript .= 'var efa_increment = '.((empty($this-
>localconf['defaultFontSize'])) ? 10 : intval($this->localconf
['fontSizeIncrement'])).";\n";
$fullInitializationScript .= $initializationScript;
$fullInitializationScript .= 'var efa_fontSize06 = new
Efa_Fontsize06
(efa_increment,efa_bigger,efa_reset,efa_smaller,efa_default);'."\n";
$GLOBALS['TSFE']->additionalJavaScript[] =
$fullInitializationScript;
Any idea why it doesn't get externalised?
François Suter
--
Cobweb Development Sàrl
www.cobweb.ch
Rue Eugène-Marziano 15, CH-1227 Les Acacias (Geneva - Switzerland)
T: +41 22 880 00 93, F: +41 22 880 00 94, E: [EMAIL PROTECTED]
web solutions for professionnal requirements
_______________________________________________
TYPO3-english mailing list
TYPO3-english@lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english