Zum Inhalt springen

image/text ausgabe: abhängig davon, ob bodytext befüllt ist, das bild unterschiedlich darstellen

Erstellt am 25. Juli 2011 · Noch keine Antworten

Tags: Bilder, Frage

kumquat ·

hi,

ich möchte gerne das bild eines imagetext-elements unterschiedlich rendern, je nachdem, ob das feld bodytext befüllt ist oder nicht.
ich habe dazu beide bild-render-varianten angelegt:
* temp.NEBENLEAD5
* temp.INHALT10

die beiden varianten funktioneren auch, nur die verzwiguingsbdingung bekomm' ich nicht hin.
der fragliche teil findet sich in page.10.marks.NEBENLEAD.renderObj. ich versuche hier jeweils nur das eine oder das andere zu laden, habe mich bei stundelangem googlen mit stdWraps gespielt, mit ifempty, isfalse, istrue, negate, ... bekomme aber keine lösung hin. kann mir wer helfen?

besten dank!

###################

temp.NEBENLEAD5 < tt_content.image.20
temp.NEBENLEAD5 {
stdWrap.typolink.parameter.field = header_link
imgObjNum = 1
1 {
file.import.current = 1
file.width >
file.width = 220c
file.height >
file.height = 369c
file.maxW >
file.maxW = 220
}

}
}

temp.INHALT10 < tt_content.image.20
temp.INHALT10 {
imgObjNum = 1
1 {
file.import.current = 1
file.width >
file.width = 220c
file.height >
file.height = 152c
}

}

page.10.marks.NEBENLEAD = CONTENT
page.10.marks.NEBENLEAD {
table = tt_content
select.orderBy = sorting
select.where = colPos = 4

renderObj=COA

renderObj {

5.if.isEmpty.field = bodytext
5 < temp.NEBENLEAD5

10.if.isTrue.field = bodytext
10 < temp.INHALT10

30 < tt_content.text.20

#stdWrap.ifEmpty.field = bodytext

#30.stdWrap.cObject = CONTENT
#30.stdWrap.cObject < temp.INHALT10
#30.required
#30.stdWrap.ifEmpty.cObject = CONTENT
#30.stdWrap.ifEmpty.cObject < temp.NEBENLEAD5
#30.stdWrap.ifTrue.cObject10 < temp.INHALT10



}
}