[TYPO3] how to generate link

Elmar Hinz elmar07 at googlemail.com
Wed Aug 1 15:46:48 CEST 2007


Jan Bednarik wrote:

> Hi,
> 
>> From my TS template I call some user functions located in
>> user_function class. Is there any function/method in TYPO3 API to
>> generate correct (RealURL, CoolURI...) link to page specified with ID
>> (plus optional get parameters)?
> 
> Try
> 
> $GLOBALS['TSFE']->cObject->typolink('text',Array('parameter'=>$pageid));
> 
> (maybe there's cObj instead of cObject - try)


Time to write id down:

http://t3flyers.wordpress.com/2007/08/01/using-the-typolink-function/


Regards

Elmar


 



More information about the TYPO3-english mailing list