【发布时间】:2015-03-18 12:44:50
【问题描述】:
在 TYPO3 CMS 中,我们默认设置了左、正常、右和边框列。是否可以在 BE 中创建自己的列?
【问题讨论】:
标签: typo3 fluid typo3-6.2.x
在 TYPO3 CMS 中,我们默认设置了左、正常、右和边框列。是否可以在 BE 中创建自己的列?
【问题讨论】:
标签: typo3 fluid typo3-6.2.x
请转到列表视图并单击新元素
应该有可用的后端布局
加入类似的配置
backend_layout {
colCount = 3
rowCount = 3
rows {
1 {
columns {
1 {
name = oben
colPos = 10
colspan = 3
}
}
}
2 {
columns {
1 {
name = linke Spalte
colPos = 0
}
2 {
name = mittlere Spalte
colPos = 1
}
3 {
name = rechte Spalte
colPos = 2
}
}
}
3 {
columns {
1 {
name = unten
colPos = 11
colspan = 3
}
}
}
}
}
我认为这是如何使用行和列的一个很好的例子
然后转到您要使用此布局的页面转到页面 --> 编辑并选择布局
您在我的示例中看到我有 colPos = 11 示例
要从 colPos = 11 获取内容,您需要告诉模板
index.html:
<div class="wrapper">
<div class="col9 last contentInner">
<f:cObject typoscriptObjectPath="lib.title" />
<f:format.raw>{normaleseitecolpos0}</f:format.raw>
</div>
</div>
这是你的流体模板
第一个 <f:cObject .... 链接到您可以在 setup.ts 中使用的库
第二个<f:format.raw.... 链接到与colpos 相关的变量
如果您将其添加到 setup.ts
page {
10 = FLUIDTEMPLATE
10 {
file = fileadmin/templates/knowhow/layout/index.html
variables {
# Einspalter
normaleseitecolpos0 < styles.content.get
normaleseitecolpos0.select.where = colPos = 11
}
}
}
【讨论】: