简体   繁体   English

更改TYPO3 realurl语言网址

[英]changing TYPO3 realurl language urls

I'm using TYPO3 7.6.11 and realurl 2.0.15 我正在使用TYPO3 7.6.11和realurl 2.0.15

my translated versions got this url: 我的翻译版本具有以下网址:

http://url.de/3/services

is there a way to replace the 3 with the language code? 有没有办法用语言代码替换3? for 3 it should be en for example? 例如3应该是en

thanks a lot 非常感谢

You need to add the 'preVars' configuration array for your languages to realurl. 您需要为您的语言添加“ preVars”配置数组到realurl。 It is straigtly described in the manual: Realurl manual - language example config deep-link 手册中对此进行了详细说明: Realurl手册-语言示例配置深层链接

Excerpt/Example: 摘录/示例:

    $GLOBALS['TYPO3_CONF_VARS']['EXTCONF'] ['realurl'] ['_DEFAULT'] ['preVars'] => array(
                array(
                    'GETvar' => 'L',
                    'valueMap' => array(
                        'de' => '0',
                        'en' => '1',
                        ),
                    'valueDefault' => 'de',
                    # 'noMatch' => 'bypass',
                ),
);

Alternatively you could just use the 'automatic configuration' shipped with realurl. 另外,您可以只使用realurl附带的“自动配置”。 AFAIR it usually adds also lang-configs. AFAIR通常还会添加lang-config。 The Auto-Conf feature is to be enabled via Extension-Manager. 自动扩展功能将通过Extension-Manager启用。

请查看如何正确设置语言: https : //github.com/dmitryd/typo3-realurl/wiki/Notes-for-Integrators#configuring-languages这里有说明和示例。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM