[Typo3-dev] GTMENU

tapio tapio.markula at dnainternet.net
Wed Sep 7 08:24:35 CEST 2005


> My original idea was it to add a new menutype called GTMENU (graphical 
> text menu) which does the same (and has the same options as GMENU) but 
> renders the graphics as styles as my IProc does...but I got no clue how 
> to extend Typoscript...

you can use XCLASS extension *only* for files, which support it.

1) normally one class in the file has name, which starts with SC_

2) in the end of the file has been defined the key value for the XCLASS 
extension
// Include extension?
if (defined('TYPO3_MODE') && ...


then for example


class SC_db_layout {

can be extended with a new class, which pas prefix 'ux_'


class ux_SC_db_layout extends SC_db_layout {


'class.tslib_menu.php' doesn't have the first condition, but'
it has

if (defined('TYPO3_MODE') && 
$TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['tslib/class.tslib_menu.php'])	{
	include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['tslib/class.tslib_menu.php']);
}

AFAIK you can extend this file by making new classes but you can't 
extend any individual class.

$TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['tslib/class.tslib_menu.php']= 
t3lib_extMgm::extPath($_EXTKEY) . 'class.ux_tslib_menu.php';

then

class  gt_menu extends tslib_gmenu {

might work. I'm not sure




More information about the TYPO3-dev mailing list