[TYPO3-dev] Including files to the <head> once
Steffen Kamper
info at sk-typo3.de
Sun Jan 4 23:06:07 CET 2009
Dan Osipov schrieb:
> You can use it by including the HTML directly in the <head>, bypassing
> TS includeJS directive.
>
yes. in t3lib_tstemplate, line you find it:
$this->allowedPaths = Array
('media/','fileadmin/','uploads/','typo3temp/','t3lib/fonts/',TYPO3_mainDir.'ext/',TYPO3_mainDir.'sysext/','typo3conf/ext/');
there the path should be added.
btw - i'm for more easy method to include libs:
public function includeLib($name, $params, $position) {
if ($this->library[$name]['isLoaded']) {
return true;
}
switch(strtolower($name) {
case 'prototype':
$this->library[$name]['isLoaded'] = true;
$this->includeLibs[$name] = '<script ...></script>';
return true;
}
...
}
this is only pseudocode, idea for position was something like
"after:extjs", $params could be used for sciptaculous eg
vg Steffen
More information about the TYPO3-dev
mailing list