[TYPO3-dev] Tip: How to set module template for own module

Dan Osipov dosipov at phillyburbs.com
Mon Aug 4 20:23:26 CEST 2008


Shouldn't there be an official place in documentation for, at the very 
least links to these? Official docs still don't mention anything about 
docheaders!

Dan Osipov
Calkins Media
http://danosipov.com/blog/

Steffen Kamper wrote:
> Steffen Kamper schrieb:
>> Hi,
>>
>> i struggled to set a own module template while using docheader.
>> The problem: template.php looks in typo3/templates for the file.
>>
>> Here is the way that works:
>>
>> $GLOBALS['TBE_STYLES']['htmlTemplates']['any_identifyer'] = 
>> t3lib_extMgm::extRelPath('myext') . 'mod1/template.html';
>>                     $this->doc->setModuleTemplate('any_identifyer');
>>
>> vg Steffen
> 
> for a complete integration of docheader in own module have a look here:
> http://support.typo3.org/snippets/c/52/
> 
> vg Steffen




More information about the TYPO3-dev mailing list