[TYPO3-english] Getting alternative values from the file-object...

Bert Bert
Tue Nov 10 09:31:37 CET 2015


Hello,

By separating the value of getText with // I can supply a number of 
codes and getText will return the first one, which is not empty (“” or 
zero).

foo = field:header // field:title // field:uid

However, can this also be done for the file-object, something like:

{file:current:name // file:current:title} // file:current:description}
{file:current:name // title} // description}

Tested these variants but did not work...

Any suggestions?

Thanks and regards!
Bert


More information about the TYPO3-english mailing list