[TYPO3-dev] Add header data for extensions
Tapio Markula
tapio.markula at dnainternet.net
Tue Jun 27 17:12:59 CEST 2006
Peter Russ wrote:
> Just create a plain extension and add that in ext_tables.php. Ref to
> several skin extensions ;-)
>
> Regs. Peter.
>
I found looking for skingreyman
what's the problem
skingreyman extends all document types
...
class ux_mediumDoc extends mediumDoc {
class ux_mediumDoc extends mediumDoc {
/**
* Insert ie png fix
*
* @param string $title: page title
* @return string startPage code
* @see template::startPage()
*/
function startPage($title) {
$this->JScode .= '<!--[if gte IE 5.5000]>
<script language="JavaScript"
src="'.t3lib_extMgm::extRelPath('skingreyman').'js/iepngfix.js"
type="text/JavaScript">
</script>
<![endif]-->
';
return parent::startPage($title);
}
}
If new style have been defined for *all* document types,
I got what I wanted.
I didn't figure first that mediumDoc ect.
extends directly the class template, when my XCLASS extension for
startPage() was not used except for docs, which don't extend
directly the template class.
More information about the TYPO3-dev
mailing list