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... -- greetings, benni. -SDG-