[Typo3-dev] changing config.linkVars for specific links

Martin T. Kutschker Martin.no5pam.Kutschker at blackbox.n0spam.net
Mon Jun 14 10:50:38 CEST 2004


Hi!

If I want to override a param listed in config.linkVars, how shall I do 
this? I've come up with this solution for 'L':

$linkVars = $GLOBALS['TSFE']->linkVars;
$params = explode('&',substring($linkVars,1));
unset($params['L']);
$GLOBALS['TSFE']->linkVars = '&'.implode('&',$params);
...
// some $cObj->typolink(...) stuff here
...
$GLOBALS['TSFE']->linkVars = $linkVars;

Is there a better way?

Masi





More information about the TYPO3-dev mailing list