TYPO3和RealUrl在url中不使用翻译后的页面标题 [英] TYPO3 and RealUrl don't use translated page titles in url

查看:103
本文介绍了TYPO3和RealUrl在url中不使用翻译后的页面标题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用TYPO3 7.1和RealUrl 1.13.3. 自动配置未使用已翻译页面的页面标题,并且未将?L = 1更改为fx/en/

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/

它只是使用默认的丹麦页面标题,并在英语页面上添加?L = 1,在德语页面上添加?L = 2.

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.

可能是什么问题?

推荐答案

首先切换到手动配置,然后根据您的语言在preVars部分的L参数中添加配置. .typo3.org/Realurl/manual#Example:_Language_prefix_and_.22admin.22_action"rel =" nofollow>如文档中所述

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

还添加languageGetVar(也在文档中描述/a>)设置为pagePath部分

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

这篇关于TYPO3和RealUrl在url中不使用翻译后的页面标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆