bitpatroon / typo3_tca2
Allows additional functions like conditions to if in pageTSConfig.
Installs: 1 924
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:typo3-cms-extension
Requires
- php: ^7.0
- typo3/cms-core: >=7.6.0 < 8.7.99
This package is auto-updated.
Last update: 2024-12-14 20:50:43 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)
}