[Typo3] Problem with conditions

a.lim funkycms at axidea.fr
Mon Sep 26 11:35:00 CEST 2005


Hi y'all !!

I got a big problem with my script. I got 2 content fields and 2 area for
titles.

In order to display my title or not, I'm checking the related content field.

If there is no content, the title is hidden. In the case that both content
fields are empty, both titles are hidden.

So I can display a background in order to fill the area.

This is my script:

 

lib.plusloin_title = TEXT

lib.plusloin_title.value = <img
src="fileadmin/templates/images/fleche-trans-{$categorie}.gif" alt="*"
style="float: left; text-align: left;" /><div style="padding-top: 5px;
margin: 0px;">Pour aller plus loin...</div>

lib.plusloin_title.case = upper

lib.plusloin_title.if {

isTrue.field = field_plusloin

}

 

lib.biblio_title = TEXT

lib.biblio_title.value = <img
src="fileadmin/templates/images/fleche-trans-{$categorie}.gif" alt="*"
style="float: left; text-align: left;" /><div style="height: 0px;
padding-top: 5px;">Bibliographie</div>

lib.biblio_title.case = upper

lib.biblio_title.if {

isTrue.field = field_biblio

}

 

lib.back = COA

lib.back {

10 = TEXT

10.value = <div style="background: url(fileadmin/templates/images/back2.gif)
repeat top; width: 100%; height: 100%;"></div>

10.if {

  isFalse.field = field_biblio

  isFalse.field = field_plusloin

}

 

20 = TEXT

20.value = <div style="width: 100%; height: 100%; border-left: 1px dashed
#C3C09A"></div>

}

 

As describe in the COA object, the background should appeared only if both
fields are empty.

But , and this is my problem, it appears also when the first field isn't
empty (field_biblio).

Any ideas? How can I handle that?

 

Thanks in advance,

 

Adam LIM




More information about the TYPO3-english mailing list