[TYPO3-ect] tx_lib_link

Steffen Kamper steffen at sk-typo3.de
Sat Jul 7 10:32:03 CEST 2007


"Elmar Hinz" <elmar.DOT.hinz at team.MINUS.red.DOT.net> schrieb im Newsbeitrag 
news:mailman.1.1183703171.8768.typo3-team-extension-coordination at lists.netfielders.de...
> 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
>
Hi Elmar,

you're right, this does the job. I was not sure about the overruled 
(misleaded because the naming).
I will check that and report if any problems.

thx and a nice weekend

Steffen
>
>
> 




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