[TYPO3-english] conditions: look if field is true

Tyler Kraft tyler.kraft at netefficiency.co.uk
Mon Sep 21 14:25:44 CEST 2009


Well you first can't use conditions within '{' and '}'.  So I suspect 
you need to have something like

lib.XXXXXX.mctimg=590
[globalVar = DB:tt_news:tx_mctcal_imgisportrait = 1]
lib.XXXXXX.mctimg=270
[global]

But if stdWrap is available you could just use an 'override' and 'if' - 
something like

mctimg = 590px
mctimg.override = 270px
mctimg.override.if.isTrue.field= tx_mctcal_imgisportrait

hth





Rob De Vries wrote:
> hey,
> 
> I need to see if a field is true and then do something.
> A condition should do the job
> 
> I thought this would work, but it doens't:
> [globalVar = DB:tt_news:tx_mctcal_imgisportrait = 1]
> 
>     mctimg = 270px
> [else]
>     mctimg = 590px
> [end]
> 
> 
> any idea what is wrong ?
> 
> 
> tnx
> 
> Rob
> 
> 
> 


More information about the TYPO3-english mailing list