[TYPO3-english] Creating a link from within a hook function

Stano Paška stano.paska at gmail.com
Wed Sep 22 13:30:57 CEST 2010


Hi,

I don't know to which extension you hooked...

Usually, last parameter in hook function is calling object (mostly 
tslib_pibase descendant).

So you can use:
function myHook(&$content, $conf, &$obj) {
	...
	$href = $obj->pi_getPageLink(...);
	...
}

Stano.

On 22.9.2010 12:43, Graham Solomon wrote:
> Hi,
>
> I have created a hook function which I am using to send an email to
> frontend users, in the body of the email I would like to create a link
> to some content, however I am not sure of the correct way to tap in to
> the pibase functions to do so is.
>
> If anyone has a snippet for doing this they could share I would really
> appreciate it :)
>
>
> Graham



More information about the TYPO3-english mailing list