[TYPO3-dev] Remove the header of a plugin from within the plugin

Michael Knabe t3 at aafhh.de
Tue Oct 27 11:22:43 CET 2009


Hi,

thanks for the support. I used that TS-Code and render the header in the
plugin manually if I need it:

public function main($content, $conf) {
		// ...
	if (!$this->hideHeader) {
		$result = $this->cObj->cObjGetSingle(
        	    $GLOBALS['TSFE']->tmpl->setup['lib.']['stdheader'],
	            $GLOBALS['TSFE']->tmpl->setup['lib.']['stdheader.']
        	) . $result;
	}
	return $result;
}

Cheers, Michael




More information about the TYPO3-dev mailing list