[TYPO3] make_printlink & realUrl
Christine Rochelt
crochelt at hochbau.tuwien.ac.at
Mon Dec 4 11:04:03 CET 2006
> 1. Using the 'make_printlink' extension results in a link with a popup.
> However, the attribute href gets "#" as value. So clicking the link
> results in a redirect to the homepage of the site.
To solve the redirect problem I changed these 2 lines in make_printlink.php:
//original code:
//$js .= '
onclick="window.open(\''.$uri.'\',\''.$conf['windowname'].'\',\''.$conf['win
dowparams'].'\');"';
//replacement code;
$js .= '
onclick="window.open(this.href,\''.$conf['windowname'].'\',\''.$conf['window
params'].'\'); return false"';
And don't forget to comment out folllowing line:
//$uri='#';
Christine
More information about the TYPO3-english
mailing list