[Typo3] type-parameter in url

Oliver Weiß Oliver.r.weiss at gmx.de
Sat Nov 12 13:16:12 CET 2005


Hi,

in a self-made extension I need to link to the printable page with the
type "98".

I found the function pi_getPageLink in class.tslib_pibase.php.

The comment in class.tslib_pibase.php says for the second parameter:
"String: Target value to use. Affects the &type-value of the URL,
defaults to current."

So I tried:
$this->pi_getPageLink([$id],"98") but it doesn't work. The second
parameter is ignored.

I tried:
$this->pi_getPageLink([$id],"98",array(type=>98))
and it works, the link generated is: [id]&type=98 But it doesn`t work
with SimulateStatic.

Does anybody know, how to set the second parameter in pi_getPageLink?

Or  other possibilities to change the type-parameter in a link?


Thanks,

Oliver.



More information about the TYPO3-english mailing list