[TYPO3-english] linkVars: add configurad GET variable names for every pages

Thomas Löffler thomas.loeffler at uni-hohenheim.de
Tue May 11 10:39:57 CEST 2010


Hi Gabor,

have a look on the documentation of typolink.addQueryString

http://typo3.org/documentation/document-library/core-documentation/doc_core_tsref/4.3.1/view/1/5/#id2507528

There you can add the given GET params in the url to the language menu.

Greets,

Tommy

Am 11.05.2010 10:17, schrieb Matyi Gábor:
> Hi guys,
>
> I need some consultation in this topic. I have trouble with the linkvars
>
> failure is the following:
>
> if I set only this
>
> config.linkVars = L
>
> in this case the language selector fails on the tt_product single 
> page. ( 
> index?id=17&L=2&tt_products[backPID]=23&tt_products[product]=5&tt_products[cat]=2&cHash=e8030996f7dc8792 
> -> index?id=17&L=0, index?id=17&L=1 ...etc)
>
> but if I set this
>
> config.linkVars = L, tt_products, var
>
> language selector works well, but from here every pages get the 
> tt_products, var GET variables.
>
> Interest in privat.
>
> Thanks in advance
>
> Gabor
>
> On 10/05/10 20:33, Matyi Gábor wrote:
>> Hi,
>>
>> thanks, at least I put simple "config.linkVars = L, tt_products, var" in
>> my ts.
>> But now there is a new problem with the linkvars. If I browse a
>> tt_product single page, and I browse to another page, every linkvars
>> remain in the url.
>>
>> f.e. I browse the page: index?id=23&L=2 . From here I browse a product,
>> so I get to the page
>> index?id=17&L=2&tt_products[backPID]=23&tt_products[product]=5&tt_products[cat]=2&cHash=e8030996f7dc8792 
>>
>>
>>
>> and if now I browse forward, every pages get the
>> L=2&tt_products[backPID]=23&tt_products[product]=5&tt_products[cat]=2&cHash=e8030996f7dc8792 
>>
>> linkvars.
>>
>> f.e. If I open the page index?id=1, in this case the index?id=1&L=2
>> should open, and not the
>> index?id=1&L=2&tt_products[backPID]=23&tt_products[product]=5&tt_products[cat]=2&cHash=e8030996f7dc8792 
>>
>>
>>
>>
>> Gabor
>>
>>
>> On 07/05/10 15:44, Xavier Perseguers wrote:
>>> Hi,
>>>
>>>> I'd like to put this in my linkVars
>>>>
>>>> config.linkVars = L, tt_products[backPID], tt_products[product],
>>>> tt_products[cat], cHash
>>>>
>>>> because the GET variable name is tt_products[backPID], but
>>>> unfortunately the [] charater has other meanig in the linkvars.
>>>
>>> using
>>>
>>> config.linkVars = L, tt_products|backPID, tt_products|product,
>>> tt_products|cat, cHash
>>>
>>> should do the trick.
>>>
>>
>> _______________________________________________
>> TYPO3-english mailing list
>> TYPO3-english at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
>>
>>
>



More information about the TYPO3-english mailing list