[TYPO3-english] RealUrl and TypoLink
Sinisa Mitrovic
sinisa.mitrovic at avisto-eastern.com
Thu Jul 21 23:44:04 CEST 2016
Hello Jigal,
Thanks for your reply.
This example is from documentation. My setup is like this:
'valueMap' => array(
'en-EN' => '0',
'en-DE' => '0',
'de-DE' => '1',
),
So on German (German page have both German and English) page I have 'en-DE' as preVar, but on English page (only English) I also have 'en-DE', and I want to have 'en-EN'.
Best regards,
Sinisa Mitrovic
----- Original Message -----
From: "Jigal van Hemert" <jigal.van.hemert at typo3.org>
To: typo3-english at lists.typo3.org
Sent: Thursday, July 21, 2016 10:39:13 PM
Subject: Re: [TYPO3-english] RealUrl and TypoLink
Hi,
On 20/07/2016 17:06, Sinisa Mitrovic wrote:
> 'preVars' => array(
> array(
> 'GETvar' => 'no_cache',
> 'valueMap' => array(
> 'no_cache' => 1,
> ),
> 'noMatch' => 'bypass',
> ),
> array(
> 'GETvar' => 'L',
> 'valueMap' => array(
> 'dk' => '1',
> 'danish' => '1',
> 'uk' => '2',
> 'english' => '2',
> ),
> 'noMatch' => 'bypass',
> ),
> ),
>
> And explanation about generated link:
> danish/123/print.html
>
> Is it possible to tell / force typolink to generate link with first
> value like:
> dk/123/print.html
You have two values mapped to 1 and two mapped to 2. Why not remove the
lines with 'danish' and 'english'?
It might not be possible to remove one of the two in your situation; I'm
not sure about the internals of RealUrl here, but it could be worth a
try to swap the lines with 'dk' and 'danish'.
--
Jigal van Hemert
TYPO3 CMS Active Contributor
TYPO3 .... inspiring people to share!
Get involved: typo3.org
_______________________________________________
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