我一直在寻找,但还没有找到可以工作的东西......
TYPO3 8.7.8
root - backend-layout ("Main") for this and all subpages (id=1)
|
- home - backend-layout ("Home") for this page only (id=2)
|
- subpage - same backend-layout as root (id=3)
两个后端布局看起来都一样:
________________________________
| Top |
|______________________________|
| main-content | right-content |
|______________|_______________|
顶部的名称不同,使用方式也不同。
“主要”后端布局的顶部应该只允许图像内容元素。
cType.allowed = image
“Home”-backend-layout 的顶部应该只允许 text-content-element
cType.allowed = text
我试过的最后两件事是
第一:使用打字稿中的 GlobalVars 限制它
[globalVar = TSFE:id != 2]&&[globalVar = TSFE:colPos=2]
TCEFORM.tt_content.CType.removeItems := addToList(header,text,bullets,table,uploads,multimedia,mailform,search,login,splash,menu,shortcut,list,script,div,html,media)
TCEFORM.tt_content.CType.keepItems := addToList(image)
[end]
第二:改变数据库中布局的属性
backend_layout {
colCount = 2
rowCount = 2
rows {
1 {
columns {
1 {
name = Parallax
colspan = 2
colPos = 2
# The following 3 lines have been added through me
cType {
allowed = text
}
}
}
}
2 {
columns {
1 {
name = Content-Main
colPos = 0
}
2 {
name = Content-Right
colPos = 1
}
}
}
}
}
我已经尝试了很多其他的东西,但我不确定我是否会再次找到它们。我什至不确定这可以在 TYPO3 8.x 中完成。以错字创建后端布局的选项确实受到限制。您只能键入列的名称并定义 colPos。
我对 TYPO3 8.x 做错了什么,我的配置不起作用吗?我需要不同的属性吗?或者它只是不打算在这个版本的 TYPO3 中再以这种方式工作?因为它似乎以前奏效过……
我还是 TYPO3 的新手,非常感谢您的帮助,但要具体说明在哪里更改,否则我会再次迷路.... ^^
谢谢!