[Typo3-dev] hooking ?

Sylvain Viart sylvain at ledragon.net
Fri Sep 17 15:30:25 CEST 2004


Hi,

Is hook also the way to customize extension ?

For example I've an extension developed by someone else.

Somewhere in his code he create a form. I would like to introduce 
TypoScript configurable way for doing external treatment in his code.

Like this:

> $content='<form action="'.$pageURL.'" method="POST">'.
>    '<input type="...">'.
>    '<input type="submit" name="action" value="'.
>    $this->pi_getLL('submitbutton').'">';

// Allow external treatment to introduce parameter here
$content .= 'My hidden element go here';

> $content .= '</form>';

And of course some other code to handle form on submit.

What's the best way to modify his code ?
-- 
Regards,
Sylvain Viart (France)
TYPO3 DocTEAM.




More information about the TYPO3-dev mailing list