[TYPO3-dev] CASE for metadata value from FAL
Dennis Luemkemann
dennis.luemkemann at gmx.de
Thu Apr 30 15:34:40 CEST 2015
Dear list,
I’m extending the default uploads content element in my 6.2 installation to show me some metadata of the file besides the download link. One of the fields contains either 0 or 1 and I want to output "no" or "yes" respectively. I tried with this TS code:
tt_content.uploads.20.renderObj {
...
38 = CASE
38 {
key.data = file:current:yesnofield
1 = TEXT
1.value = yes
default = TEXT
default.value = no
}
…
}
But like this, the element is not rendered at all. (Where can I find error messages for failed TS code?)
If I just use
38 = TEXT
38 {
data = file:current:yesnofield
}
I get 0 or 1.
What am I missing?
Thanks
Dennis
More information about the TYPO3-dev
mailing list