[TYPO3-dev] Extending extension plugin with XCLASS
Jan-Philipp Halle
typo3 at dot3agentur.de
Fri Oct 6 07:57:00 CEST 2006
I had the same problem extending a SUB class of direct_mail.
The method I wanted to rewrite was in the class which was
included by the MAIN class.
Solution:
XCLASS-extend both - the SUB class AND the MAIN class. In the
MAIN class I replaced all functions which initiate the SUB class
to rewrite the "makeInstance" calls:
SUB class: dmailer -> XCLASS of SUB class: ux_dmailer
MAIN class: t3lib_div::makeInstance('dmailer') ->
XCLASS of MAIN class: t3lib_div::makeInstance('ux_dmailer')
Hope this helps
Jan-Philipp
Ryan Hayle schrieb:
> Peter Russ wrote:
>> Hi Ryan,
>>
>> is "...I've defined the new file in my ext_localconf.php..." similar to
>>
>> "The next thing is to configure TYPO3 to include this class file as
>> well after the original file tslib/class.tslib_content.php:
>
> Yes, this is exactly what I meant. :) I have been following the
> core_api docs you mentioned to do this.
>
> And indeed, the extension class -file- is included. The class is just
> never instantiated because, as far as I can tell, the class name for the
> plugin is inserted -explicitly- into the typoscript in addPItoST43(). I
> would somehow have to specify the name of my extended class I think?
>
> I could add to my ext_localconf.php something like this:
>
> t3lib_extMgm::addPItoST43($_EXTKEY,'controller/class.ux_cal_controller.php','_controller','list_type',1);
>
>
> But then this would conflict with the base extension call that included
> tx_cal_controller.
>
> Is there no way to do what I am attempting?
>
> Thanks,
> Ryan
More information about the TYPO3-dev
mailing list