[TYPO3-english] Still confused with 'if's

Elijah Alcantara elijah.alcantara at gmail.com
Mon Apr 27 17:12:04 CEST 2009


Hi,

Ahh, thanks for the tip! this works alright. I'll forget about the if's.

page.headerData.5 = COA
page.headerData.5 {
 wrap = <title>|</title>
 10 = TEXT
 10.data = levelfield : -1, tx_customext_maintitle, slide
 10.stdWrap.ifEmpty.data = levelfield : -1, tx_customext_webtitle, slide
 #10.stdWrap.data = debug:data
...


The debug:data there didn't reveal enough fields though, I kinda wanted 
to see the main template website title field but this will do.



Best regards,
Elijah




Francois Suter wrote:
> Hi,
>
>   
>> page.headerData.5 = COA
>> page.headerData.5 {
>>  wrap = <title>|</title>
>>  10 = TEXT
>>  10.data = levelfield : -1, tx_customext_webtitle, slide
>> }
>>     
>
> Where's the "if" in your example?
>
> Actually if you're trying to check for an empty value, you're better off 
> using "ifEmpty".
>
> HTH
>
>   



More information about the TYPO3-english mailing list