【发布时间】:2017-04-21 09:42:31
【问题描述】:
我的后端布局中的 3 列应该大小相等,与它们的内容无关。就我而言,它们的宽度由它们的内容决定。很高兴任何提示!
环境:
TYPO3 8.7.0
PHP 7.0.13
MySQL 5.6.34
已安装的扩展:
gridelements dev-master c5120b0e
realurl 2.2.0
slickcarousel 8.x-dev
vhs 4.1.0
TS 是使用向导生成的。它是 2 行的 3 列布局。第二行有 3 个列(colspan = 1),第一行有 1 个列(colspan = 3)。
mod.web_layout.BackendLayouts {
MainTemplate {
title = MainTemplate
name = MainTemplate
icon = EXT:amtemplate/ext_icon.png
config {
backend_layout {
colCount = 6
rowCount = 2
rows {
1 {
columns {
1 {
name = LLL:EXT:amtemplate/Resources/Private/Language/locallang.xlf:amtemplate_be_layout_maintemplate.sliderarea
colPos = 1
colspan = 6
}
}
}
2 {
columns {
1 {
name = LLL:EXT:amtemplate/Resources/Private/Language/locallang.xlf:amtemplate_be_layout_maintemplate.left
colPos = 2
colspan = 2
}
2 {
name = LLL:EXT:amtemplate/Resources/Private/Language/locallang.xlf:amtemplate_be_layout_maintemplate.main_content
colPos = 0
colspan = 2
}
3 {
name = LLL:EXT:amtemplate/Resources/Private/Language/locallang.xlf:amtemplate_be_layout_maintemplate.right
colPos = 3
colspan = 2
}
}
}
}
}
}
}
}
【问题讨论】:
-
你为什么不直接使用 3 而不是 6 的 colCount?
-
没有真正的原因,是在玩多种宽度。
标签: typo3 typo3-8.x tx-gridelements