[TYPO3-dev] Creating a common hook plugin
JoH
info at cybercraft.de
Sun Aug 27 17:36:43 CEST 2006
> What could be reasonable is to create a common hook plugin for
> some core files
>
> template.php - that file is really core and
> it would be nice to create hooks for CSS and JavaScript
> in order to add with user-defined class methods (functions) CSS and
> JavaScript
> to the HEAD section of page
What is wrong with
$this->doc = t3lib_div::makeInstance('bigDoc');
$this->doc->JScode = '
<link rel="stylesheet" type="text/css" href="whatever.css" />
<script type="text/javascript" src="whatever.js"></script>
';
?
Don't see the reason for a hook there.
Joey
--
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your knob sometimes!)
Dieter Nuhr, German comedian
openBC: http://www.cybercraft.de
T3 cookbook: http://www.typo3experts.com
More information about the TYPO3-dev
mailing list