bitpatroon / typo3_tca2
允许在 pageTSConfig 中添加额外的功能,如条件。
v1.0.1
2021-03-31 19:59 UTC
Requires
- php: ^7.0
- typo3/cms-core: >=7.6.0 < 8.7.99
This package is auto-updated.
Last update: 2024-09-14 20:09:45 UTC
README
允许在 pageTSConfig 中添加类似条件的额外功能
##使用方法
###示例 1
在 tt_content.layout 中有条件地添加新项 123(myItem)。
[userFunc = MyFunc(params)]
TCEFORM.tt_content.layout {
addItems {
123 = myItem
}
}
[global]
可以被重写为
TCEFORM.tt_content.layout {
addItems {
123 = myItem
123.userFunc = MyFunc(params)
}
}
###示例 2
在 tt_content 上有条件地禁用布局 1。
[userFunc = MyFunc(params)]
TCEFORM.tt_content.layout {
disabled = 1
}
[global]
可以被重写为
TCEFORM.tt_content.layout {
disabled = 1
disabled.userFunc = MyFunc(params)
}