[TYPO3] Extending Existing Extensions

Marco Fang marcofang at gmail.com
Sun Jul 9 23:14:29 CEST 2006


Hi Sebastian,

Thanks for your detailed answer and suggestions.
Currently I'm digging into PHP documents to fulfill the excess work I 
have to do in the future.
I still have a LOT to learn in both Typo3 and PHP.
I'll try both ways to do that ;)

Sincerely,
Marco Fang


Sebastian Fuchs wrote:
> Hi Marco,
> as far as i know there are two typo3 concepts of extending other 
> extensions. the two buzz words are XCLASSes and Hooks.
> there is an article by robert lemke about hooks:
> http://typo3.org/development/articles/how-to-use-existing-hooks/
> 
> these hooks have to be implemented in the extension themself. i dont 
> know tt_products at all so i cant tell you if there are any (probalby 
> there is a different way of doing it with tt_products).
> 
> so to override one function you could use XCLASSes.
> for index_search this would look like this:
> 
> in ext_localconf.php of your extension you register your xclass:
> 
> $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/indexed_search/pi/class.tx_indexedsearch.php'] 
> = t3lib_extMgm::extPath($_EXTKEY).'class.ux_tx_indexedsearch.php';
> 
> your xclass would than exend the original class:
> 
> class ux_tx_indexedsearch extends tx_indexedsearch {...}
> 
> and overrides the desired function.
> 
> hope it helps,
> sebastian
> 
> 
> 
> 
> Marco Fang wrote:
>> Dear all,
>>
>> I would like to utilize some functions, for example, extending the 
>> product page of tt_products to put comment or downloads on it.
>>
>> Is that possible to use some kind of setting to make it successful or 
>> I have to write or find another extension to utilize it?
>>
>> Your comments are appreciated.
>>
>>
>> Marco Fang



More information about the TYPO3-english mailing list