[Typo3-dev] Need help extending a system class

Kasper Skårhøj kasper at typo3.com
Wed Apr 14 11:16:37 CEST 2004


I recently implemented a hook in t3lib_tstemplate::linkData - by this
hook you can manipulate ALL links made in the system without overriding
theclass.

The "realurl" extension uses this.

- kasper


On Sun, 2004-04-11 at 22:15, Jochen Weiland wrote:
> I need to manipulate all links that are generated by the typolink 
> function in Typo3. I thought the best way would be to write an extension 
> class for the typolink function (similar to the example that manipulates 
> the title string):
> 
> require_once (PATH_tslib."class.tslib_content.php");
> 
> class ux_txslib_content extends tslib_content {...}
> 
> But this always results in the error:
> 
> Fatal error: Class ux_tslib_content: Cannot inherit from undefined class 
> tslib_content
> 
> Any idea what I am doing wrong? Should be quite a simple mistake that I 
> made...
> 
> Regards
> Jochen
> _______________________________________________
> Typo3-dev mailing list
> Typo3-dev at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev
-- 
Best regards

- kasper

--------------------
It's not a bug, it's a missing feature.






More information about the TYPO3-dev mailing list