我有以下问题:语言后备不适用于网格元素的内容。网格元素本身(例如它的标题)用作后备,但不显示内容。即使我根本不翻译页面并且完整的页面内容回退到后备(然后只有菜单链接和硬编码翻译),也会出现问题。
到目前为止,我几乎没有找到关于这个问题的任何信息(准确地说,几乎没有),如果有人能推动我朝着正确的方向前进,我会很高兴。
YAML 配置:
languages:
-
title: Deutsch
enabled: true
languageId: 0
base: /
typo3Language: de
locale: de_DE.UTF-8
iso-639-1: de
navigationTitle: ''
hreflang: ''
direction: ltr
flag: de
-
title: English
enabled: true
languageId: 1
base: en/
typo3Language: en
locale: en_GB.UTF-8
iso-639-1: en
navigationTitle: English
hreflang: en-EN
direction: ltr
fallbackType: fallback
fallbacks: '0'
flag: gb
-
title: Nederlands
enabled: true
languageId: 2
base: nl/
typo3Language: nl
locale: nl_NL.UTF-8
iso-639-1: nl
navigationTitle: Nederlands
hreflang: nl-NL
direction: ltr
fallbackType: fallback
fallbacks: '1,0'
flag: nl
-
title: Polskie
enabled: true
languageId: 3
base: pl/
typo3Language: pl
locale: pl_PL.UTF-8
iso-639-1: pl
navigationTitle: Polskie
hreflang: pl-PL
direction: ltr
fallbackType: fallback
fallbacks: '1,0'
flag: pl
配置:
config {
colCount = 2
rowCount = 1
rows {
1 {
columns {
1 {
name = Left
colPos = 20
allowed {
CType = shortcut,textmedia,iconlist,link-list-teaser,form_formframework
}
}
2 {
name = Right
colPos = 21
allowed {
CType = shortcut,textmedia,iconlist,link-list-teaser,form_formframework
}
}
}
}
}
}
设置:
tt_content.gridelements_pi1.20.10.setup {
grid-50-50 < lib.gridelements.defaultGridSetup
grid-50-50 {
cObject = FLUIDTEMPLATE
cObject {
partialRootPaths < lib.contentElement.partialRootPaths
templateRootPaths < lib.contentElement.templateRootPaths
layoutRootPaths < lib.contentElement.layoutRootPaths
file = EXT:XXX/Resources/Private/Content/Gridelements/grid-50-50/Template.html
}
}
}
HTML:
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xmlns:f="http://typo3.org/ns/TYPO3/Fluid/ViewHelpers"
data-namespace-typo3-fluid="true">
<f:layout name="Gridelements"/>
<f:section name="Main">
<div class="row">
<div class="columns small-12 tablet-6">{data.tx_gridelements_view_column_20 -> f:format.raw()}</div>
<div class="columns small-12 tablet-6">{data.tx_gridelements_view_column_21 -> f:format.raw()}</div>
</div>
</f:section>
</html>