如果我查看我的默认语言,链接会显示 URL (www.yoursite.com/company/about-us.html)。但是现在我添加了一种语言,如果我查看我得到的链接
www.yoursite.com/index.php?id=63&L=1
怎么了?这是我的列表菜单排版:
lib.tsfootermenu1 = COA
lib.tsfootermenu1 {
10 = HTML
10.value = <p class="ContentOverviewHeading">
15 < tmp.tsfootermenu1
20 = HTML
20.value = </p>
25 = HMENU
25 {
special = directory
special.value = 63
entryLevel = 0
1 = TMENU
1.wrap = <ul>|</ul>
1{
expAll = 0
NO{
ATagTitle.field = title
wrapItemAndSub = <li>|</li>
ATagParams = class="SubMenu1"
}
}
}
}
TS 读出文件夹中的所有元素并显示一个列表。我已经为文件夹和其中的元素添加了页面翻译,但我仍然得到 index.php?id=xx URL。当然,我清除了真实的 url 和页面缓存。
编辑:
我的 realURL 配置:
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl'] = array (
'_DEFAULT' => array (
'init' => array (
'enableCHashCache' => '1',
'appendMissingSlash' => 'ifNotFile',
'enableUrlDecodeCache' => '1',
'enableUrlEncodeCache' => '1',
),
'redirects' => array (
),
'preVars' => array (
'0' => array (
'GETvar' => 'no_cache',
'valueMap' => array (
'nc' => '1',
),
'noMatch' => 'bypass'
),
'1' => array (
'GETvar' => 'L',
'valueMap' => array (
'de' => '0',
'en' => '2',
'valueDefault' => 'de',
),
'noMatch' => 'bypass',
),
'2' => array (
'GETvar' => 'lang',
'valueMap' => array (
'de' => 'de',
'en' => 'en',
),
'noMatch' => 'bypass',
),
),
'pagePath' => array (
'type' => 'user',
'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
'spaceCharacter' => '-',
'languageGetVar' => 'L',
'expireDays' => '7',
'rootpage_id' => '1',
)
编辑:
我的解决方案看起来像是我将完整的配置更改为 L=2。Typo3 显然在删除语言方面存在一些问题。