[TYPO3] extending class.tslib_content

Tapio Markula tapio.markula at dnainternet.net
Wed Jul 26 08:04:07 CEST 2006


Aji Johannes wrote:
> Hello List,
> 
> im trying to extend class.tslib_content with an extension.
> i make extension, and want to extend "function editPanel":
> 
> i have in ext_localconf.php this code:
> 
> $TYPO3_CONF_VARS["FE"]["XCLASS"]["tslib/class.tslib_content.php"]= 
> PATH_typo3conf."class.ux_tslib_content.php";
> 
> 
> and in class.ux_tslib_content.php this code:
> 
> class ux_tslib_content extends tslib_content {
>     
>     function editPanel($content, $conf, 
> $currentRecord='',$dataArr=array())    {
>        
>     }
>     
> }   
> 
> if (defined('FE') && 
> $TYPO3_CONF_VARS[FE]['XCLASS']['tslib/class.tslib_content.php'])   {
> 
> include_once($TYPO3_CONF_VARS[FE]['XCLASS']['tslib/class.tslib_content.php']); 
> 
> }
> 
> 
> my question is:
> am i doing right with :$TYPO3_CONF_VARS[FE]['XCLASS'] or mus be 
> $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS'] ????

depends where you want to use the XCLASS.
TYPO3_MODE = used both in FE and BE
TYPO3_MODE is the same as putting into own lines BE and FE implementation.
  $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS'] = 
$TYPO3_CONF_VARS['FE']['XCLASS'] +  $TYPO3_CONF_VARS['BE']['XCLASS']

Because you plugin will not work with my plugin tm_contentaccess, I
would be interested to know, what changes you want - and why - to
the function 'editPanel'? I could easily implement them in tm_contenaccess.



More information about the TYPO3-english mailing list