[TYPO3-english] TYPO3 6.2: TS condition based on content of media field

Bert Hiddink [BENDOO e-work solutions] hiddink at bendoo.nl
Thu Nov 6 13:44:31 CET 2014


Hello Romain,

Thanks for your reply...

This could be a solution, however to check whether the field contains OR 
an image OR a video id. In both cases, the field is not empty so 
"ifEmpty" won't work...

Thanks again,
Bert


On 06-11-14 13:27, Romain Hobsterdre wrote:
> Hello,
>
> It's been a while that I didn't used conditions in TS.
> Why don't you try an "override" and an "ifEmpty".
> link:
> docs.typo3.org/typo3cms/TyposcriptReference/Functions/Stdwrap/Index.html#stdwrap-override
>
>
> [code]50 = IMAGE
> 50.file.import = xxxx
> 50.file.override.ifEmpty.field = media
> 50.file.override.cObject = TEXT
> 50.file.override.cObject.value = show my video
> [/code]
>
>
> I've found a snippet here : link:
> stackoverflow.com/questions/6109044/typo3-typoscript-how-to-make-a-fallback
> I guess you can find others.



More information about the TYPO3-english mailing list