[TYPO3-formidable] Use TypoScripts includeJS/includeCSS instead of additionalHeaderData
Hauke Hain
newgrp at googlemail.com
Mon Jun 14 18:54:19 CEST 2010
Hi there,
hi Jérôme,
The
function additionalHeaderData($sData, $sKey = FALSE, $bFirstPos = FALSE,
$sBefore = FALSE, $sAfter = FALSE)
adds new header data to the page.
For some reasons theay are hard for minifying extensions to filter so that
CSS and JavaScript can be compressed by such extensions.
TypoScript includeJS and includeCSS are working great.
So why isn't formidable using TypoScript?
It could be solved completely with TypoScript and some userFunc conditions
(as a result it can be influenced at it maximum) or you can do it
programatically (that way at least the minifying extenion will work, but the
user have hard times to overwrite the TypoScript, what is, by the way, not
needed anymore thanks to Jérôme for the new TypoScript configuration):
$GLOBALS['TSFE']->pSetup['includeJS.'][$this->extKey . '_prototype'] =
'prototype.js';
$GLOBALS['TSFE']->pSetup['includeCSS.'][$this->extKey . 'mycss'] =
'mycss.css';
What do you think?
Regards, Hauke
More information about the TYPO3-project-formidable
mailing list