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

Rob De Vries spam_this at pandora.be
Tue Sep 22 11:19:47 CEST 2009


Tyler Kraft wrote:
> 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


override, this is new for me but very nice !!
tnx alot

Rob




> 
> 
> 
> 
> 
> 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
>>
>>
>>


-- 
------------------------------------------------------------
web : http://www.rob-ot.be
skype : rob-ot
------------------------------------------------------------
[O_o] -- Don't feed the rob-ot


More information about the TYPO3-english mailing list