Is it possible to access the id of a Templavoilà Data Structure / FCE for a CASE ?
I tried this which didn't work :
10 = CASE
10 {
key.field = tx_templavoilaplus_datastructure
100 = TEXT
…
default = TEXT
…
}
Thank you ! =)
The field for the Data Structure in tt_content for TemplaVoila is tx_templavoila_ds
. If you're using TemplaVoila Plus it's tx_templavoilaplus_ds
.
Also, only the fields in the data structure are available directly. However, TemplaVoila loads the parent record data in the register. You can access it using key.data = register:tx_templavoila_pi1.parentRec.tx_templavoila_ds
. For TemplaVoila Plus it's key.data = register:tx_templavoilaplus_pi1.parentRec.tx_templavoilaplus_ds