[TYPO3-dev] Still problems with setting module templates

Steffen Kamper info at sk-typo3.de
Sat Nov 14 12:33:25 CET 2009


Hi,

Tapio Markula schrieb:
> Steffen Kamper kirjoitti:
>> Hi,
>>
>> Tapio Markula schrieb:
>>> Hi
>>>
>>> I still didn't succeed to set some module templates from a plugin
>>>
>>> How to set correctly path for
>>> $TBE_STYLES['htmlTemplates']['templates/db_layout.html']
>>>
>>> if the file is typo3conf/ext/skin_grey_2/htmlTemplates/ dir
>>
>> like you do with all resource files ..
>>
>> t3lib_extMgm::extpath('skin_grey_2', 'htmlTemplates/dv_layout.html')
>>
>> vg Steffen
> 
> I tried
> 
> $TBE_STYLES['htmlTemplates']['templates/db_layout.html']=t3lib_extMgm::extpath('skin_grey_2', 
> 'htmlTemplates/db_layout.html');
>     $TBE_STYLES['htmlTemplates']['templates/db_layout_quickedit.html']=t3lib_extMgm::extpath('skin_grey_2', 
> 'htmlTemplates/db_layout_quickedit.html');
>     
>     
> doesn't work - empty page, which means that the template was not found!

weird - i consider this as a bug.

There are two other possibilities:

$TBE_STYLES['htmlTemplates']['templates/db_layout.html'] = 
extRelPath('skin_grey_2') . 'htmlTemplates/db_layout_quickedit.html');

or

$TBE_STYLES['htmlTemplates']['templates/db_layout.html'] = 
'EXT:skin_grey_2/htmlTemplates/db_layout_quickedit.html';

vg Steffen




More information about the TYPO3-dev mailing list