[TYPO3-ect] tx_lib_link

Elmar Hinz elmar.DOT.hinz at team.MINUS.red.DOT.net
Fri Jul 6 08:24:31 CEST 2007


Steffen Kamper wrote:

> Hi Elmar,
> 
> with tx_lib_link you have created a good link generation class.
> 
> One Problem i have often and it would be nice to extend our library, here
> the idea:
> 
> In some cases GET-Parameters of a given url has to be appended to the
> generated url. In this cases i use typolink-function itself, but then i
> have to analyze the given url, extract the GET-Params and build the
> additionalParams.
> 
> It would be nice to have functions for
> - parse GET-Params to an array
> - appendParams
> - a function like the pi_base with an option keepPIvars but not only for
> piVars (may be with a filter option e.g. 'tt_news')
> 
> Do you think that this would be useful?
> 
> vg  Steffen

Hi Steffen,

if I understand you right that feature is already there:

tx_lib_link::overruled($parametersArrayOrObject);
tx_lib_link::parameters($pararmtersArrayOrObject);

try:

$myLink->overruled($this->controller->parameters);

or:

$myLink->overruled(
 $this->controller->parameters->selectHashArray('a, selection, of, keys'));


Regards

Elmar









More information about the TYPO3-team-extension-coordination mailing list