[TYPO3-dev] includeJS from frontend plugin
Tapio Markula
tapio.markula at xetpoint.fi
Sun Sep 14 18:31:21 CEST 2008
Andreas Wagner kirjoitti:
> Hi,
>
> You can use
>
> $GLOBALS['TSFE']->additionalHeaderData[$this->prefixId.'_some_key'] =
> '<script ... />';
the disadvantage of this method is that it *forces* that to be added -
that *is* harmful for sub trees, which are used as direct_mail pages -
they should not have any JS and no linked CSS files.
That's why adding JS with TS template is better.
More information about the TYPO3-dev
mailing list