TYPO3 and RealUrl don't use translated page ti

2019-09-12 08:54发布

问题:

I use TYPO3 7.1 and RealUrl 1.13.3. Auto configuration is not using the page title from translated pages and it is not changing ?L=1 to fx /en/

It is just using the default Danish page titles and adding ?L=1 to English pages and ?L=2 to German pages.

The content is shown in the right languages.

What could be the problem?

回答1:

First switch to manual config, then add config for L param in preVars section according to your languages like described in doc

     array(
         'GETvar' => 'L',
         'valueMap' => array(
             'dk' => '1',
             'en' => '2',
             // etc...
         ),
         'noMatch' => 'bypass',
     ),

also add the languageGetVar (also described in doc) param to pagePath section

'pagePath' => array(
    'type' => 'user',
    'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
    'rootpage_id' => 1,
    'languageGetVar' => 'L', // <- here
),