[TYPO3-dev] Module templates

Tapio Markula tapio.markula at xetpoint.fi
Tue May 20 14:37:36 CEST 2008


Benjamin Mack kirjoitti:
> Hey Tapio,
> 
> $this->doc points to an instance of the class in "typo3/template.php". 
> Please see the function setModuleTemplate() and your question will be 
> answered right away...
> 

I looked that - ok $this->getHtmlTemplate($filename) has condition to 
take account $TBE_STYLES - seems that the full name (including possible 
path information must be used

$TBE_STYLES['htmlTemplates']['templates/db_layout.html']

instead of just
$TBE_STYLES['htmlTemplates']['db_layout.html']
because the function tests for exact match


	function getHtmlTemplate($filename)	{
		if ($GLOBALS['TBE_STYLES']['htmlTemplates'][$filename]) ...

That's why Steffen's example

$GLOBALS['TBE_STYLES']['htmlTemplates']['db_layout.html']=htmlfile


didn't work




More information about the TYPO3-dev mailing list