[Typo3] "Printed from"
Rickard Andersson
rickard.andersson at gmail.com
Fri May 13 14:19:46 CEST 2005
I would like to output the page URL from which a page was printed. How
would I go about doing this? I hacked together a small PHP function
that returns HTTP_REFERER:
function user_getcurpage($content, $conf)
{
return '<a href="'.str_replace('&', '&',
$_SERVER['HTTP_REFERER']).'">'.str_replace('&', '&',
$_SERVER['HTTP_REFERER']).'</a>';
}
But this solution is far from ideal. HTTP_REFERER is stripped by
various firewalls/proxies/antivirus software and is generally
unrealiable. Does anyone have an idea how to work around this problem?
Is it perhaps possible to get a hold of the current URI with just
typoscript? Can I get it from $conf?
/Rickard
More information about the TYPO3-english
mailing list