Is it possible to generate some parts of TypoScript templates in dynamic way ?
For example, I have a TS template with defined placeholders. I would like to fill it with an array of values (defined in dB, or with TS array of constants), to get filled TypoScript template on the output.
Probably an extension already exists, or it’s a hidden core functionality ?
UPDATE :
Just small examples, which could illustrate the use of such demand.
Example 1
[globalVar=IENV:TYPO3_HOST_ONLY = subdomain1.domain.com]
config.baseURL = http://subdomain1.domain.com/
config.googleMapKey = AAABBBCCCDDDEEEFFF
[global]
[globalVar=IENV:TYPO3_HOST_ONLY = subdomain2.domain.com]
config.baseURL = http://subdomain2.domain.com/
config.googleMapKey = AAABBBCCCDDDEEEGGG
[global]
Example 2
10 = COA
10 {
10 = TEXT
10 {
value = jquery.js
wrap = <script type="text/javascript" src="|"></script>
}
20 = TEXT
20 {
value = jquery.plugin.js
wrap = <script type="text/javascript" src="|"></script>
}
}
I am not sure, if i understood what you want to do, but f.e. your second example could be written like this:
And (untested!) you could also define an constant like:
And use this in your setup: