TYPO3 and RealUrl don't use translated page titles in url

最后都变了- 提交于 2019-12-12 05:52:02

问题


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
),


来源:https://stackoverflow.com/questions/31982342/typo3-and-realurl-dont-use-translated-page-titles-in-url

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!