[TYPO3-dev] Including files to the <head> once
Dan Osipov
dosipov at phillyburbs.com
Sun Jan 4 23:13:31 CET 2009
Patch is pending in the Core list.
As for the inclusion function - as long as it doesn't make things more
complicated, and doesn't break existing methods, I'm for it.
Dan Osipov
Calkins Media
http://danosipov.com/blog/
Steffen Kamper wrote:
> 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