[TYPO3-dev] Still problems with setting module templates

Tapio Markula tapio.markula at xetpoint.fi
Tue Nov 17 09:48:44 CET 2009


Steffen Kamper kirjoitti:
> 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');
you mean t3lib_extMgm::extRelPath
> 
> or
> 
> $TBE_STYLES['htmlTemplates']['templates/db_layout.html'] = 
> 'EXT:skin_grey_2/htmlTemplates/db_layout_quickedit.html';

don't work either




More information about the TYPO3-dev mailing list