Another interesting question
poped up today in mailing lists, now about using TS constants inside TemplaVoila's DSes.
The problem: you cannot use global constants inside DS the same way as you do in regular TypoScript. I.e. this will work in main template but not in DS:
10 = TEXT
10.value = {$myconst}
In DS it will be substituted with an empty string.
A way to solve it is to redefine constants in main template for TemplaVoila's pi1 plugin:
page = PAGE
page.10 = USER
page.10 {userFunc = tx_templavoila_pi1->main_page
TSconst {myconst = {$myconst}
}
}
TSconst there defines constants that will be available for DSes. Surely this is a bit ugly because you need to know details of DS when writing main template. But this is how it works. Limitation here: you cannot have TSconst.level1.level2, you can have only one-level constants.
