bitpatroon / typo3_tca2
Allows additional functions like conditions to if in pageTSConfig.
Package info
github.com/bitpatroon/typo3_tca2
Type:typo3-cms-extension
pkg:composer/bitpatroon/typo3_tca2
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: 2026-02-14 23:14:24 UTC
README
Allows additional function like conditions to if in pageTSConfig
##USAGE
###Example 1
Conditionally add a new item 123 (myItem) on tt_content.layout.
[userFunc = MyFunc(params)]
TCEFORM.tt_content.layout {
addItems {
123 = myItem
}
}
[global]
can be rewritten into
TCEFORM.tt_content.layout {
addItems {
123 = myItem
123.userFunc = MyFunc(params)
}
}
###Example 2
Conditionally disable layout 1 on tt_content.
[userFunc = MyFunc(params)]
TCEFORM.tt_content.layout {
disabled = 1
}
[global]
can be rewritten into
TCEFORM.tt_content.layout {
disabled = 1
disabled.userFunc = MyFunc(params)
}