我想在文件中包含所有网格元素的配置。因此,当我将我的 CE 后端布局存储在后端时,它可以正常工作
mod.web_layout.BackendLayouts {
exampleKey {
title = Example
icon = EXT:my_ext/Gridelements/Teaser/Resources/Public/Icons/icon.gif
config {
backend_layout {
colCount = 1
rowCount = 1
rows {
1 {
columns {
1 {
name = Content
colPos = 0
}
}
}
}
}
}
}
}
但是如果我在 TSConfig 中设置配置,内容不会呈现。
tx_gridelements {
overruleRecords = 1
setup {
2-Teaser {
title = Teaser
description = Teaser
icon = EXT:my_ext/Gridelements/Teaser/Resources/Public/Icons/icon.gif
topLevelLayout = 0
config {
colCount = 1
rowCount = 1
rows {
1 {
columns {
1 {
name = Content
colPos = 0
}
}
}
}
}
}
}
}
gridelements找到这个模板,但是没有渲染内容
tt_content.gridelements_pi1.20.10.setup {
1 < lib.gridelements.defaultGridSetup
1 {
cObject = FLUIDTEMPLATE
cObject.file = EXT:my_ext/Gridelements/Teaser/Resources/Private/Templates/Template.html
}
}