[TYPO3-english] Typolink hook

Jigal van Hemert jigal.van.hemert at typo3.org
Sat Oct 27 07:30:47 CEST 2012


Hi,

On 27-10-2012 5:16, Gorosito Gonzalo wrote:
> Thanks for the head's up! So how could I do something like this on 4.6?

As Dmitry said: XCLASS

Since you only wanted to do some checks first you can simply call the 
original typoLink function after your checks:

public function typoLink($linktxt, $conf) {

   // your checks here, change $conf if you need

   return parent::typoLink($linktxt, $conf);
}

Bugfixes / changes in the core will continue to work after an upgrade 
(although for 6.0 you'd better use the namespace classes)

-- 
Jigal van Hemert
TYPO3 Core Team member

TYPO3 .... inspiring people to share!
Get involved: typo3.org


More information about the TYPO3-english mailing list