[Typo3-dev] cant extend tslib_tmenu

Tim D'Hooge tim.d'hooge at cronos.be
Wed Oct 22 11:15:39 CEST 2003


Hi, i'll just paste it right here, it is extremely small (it's just a test
huh)

in my ext_localconf.php:

$TYPO3_CONF_VARS["FE"]["XCLASS"]["tslib/class.tslib_tmenu.php"] =
t3lib_extMgm::extPath('n_test').'class.ux_tslib_tmenu.php';

and in the class.ux_tslib_tmenu.php:

<?PHP

class ux_tslib_tmenu extends tslib_tmenu
{
        extProc_RO($key)
        {
                parent::extProc_RO($key);
                t3lib_div::debug($key);
        }
}

?>


extProc_RO is called in writeMenu of tslib_menu btw (wich tslib_tmenu
extends).


Regards,

Tim D'Hooge


"Ingmar Schlecht" <ingmars at web.de> wrote in message
news:mailman.1066764584.26556.typo3-dev at lists.netfielders.de...
> Tim D'Hooge wrote:
> > Hi,
> >
> > I need to change the way the menu is rendered through an extension.
> >
> > To do this, it seems that i need to extend the existing class
tslib_tmenu,
> > which i cant get to work
> >
> > I've looked at the example in the "modern template building part1 + 2"
and
> > tried that, which works. but when i try to adapt that example to extend
> > tslib_tmenu, it just gets ignored (ux_tslib_tmenu doesn't show in the
> > get_declared_classes() lists, nor does anything i put in it get
executed)
> > BUT when i type a syntax error in it, i get an error message about it
!!!
> >
> > does anyone know what might be going on ?
>
> that sounds strange...
>
> could you upload your php code as a textfile somewhere?
>
> - Ingmar
>






More information about the TYPO3-dev mailing list