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

Graham Solomon graham.solomon at powys.gov.uk
Wed Sep 22 15:38:44 CEST 2010


Thanks both for your assistance.

Graham

On 22/09/2010 12:30, Stano Paška wrote:
> 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