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

Steffen Kamper info at sk-typo3.de
Mon Aug 4 11:39:42 CEST 2008


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




More information about the TYPO3-dev mailing list