[TYPO3-english] Set PageTSConfig in ext_tables.php by condition read from extension settings
Jan Kornblum
jan.kornblum at gmx.de
Thu Mar 31 19:09:32 CEST 2016
Hi all!
i need to set some PageTSConfig by a condition, the condition itself
should be read from extension settings (or setup / constants).
---
Approach 1 (TSConfig code):
[PIDinRootline = {VALUE_READ_FROM_EXTENSION_SETTINGS}]
...
[end]
How to pass extension settings into tsconfig? Impossible?
---
Approach 2 (directly in ext_tables.php):
if ("PID IN ROOTLINE" == {VALUE_READ_FROM_EXTENSION_SETTINGS}) {
ExtensionManagementUtility::addPageTSConfig('...')
}
Extension settings would be available here. But can
addPageTSConfig('...') be put into an if-statement? And how to get the
"PID IN ROOTLINE" behaviour in this case?
---
Looking forward to get some inspirations ;)
Kind reagards, Jan
More information about the TYPO3-english
mailing list