Zum Inhalt springen

COA ausblenden wenn Inhalt leer

Erstellt am 5. September 2006 · 1 Antwort · letzte Antwort am 6. September 2006

Tags: Frage

philipphh ·

Hallo,
ich habe folgendes Menü

Im ersten Teil wird eine grafische Überschrift für das Menü erstellt. Im zweiten Teil folgt dann das Menü. Wenn ich im Pagetree das Menü ausblende bleibt die Überschrift leider noch stehen. Wie kann ich diese dann auch noch ausblenden?

temp.menu_right.10 = COA
temp.menu_right.10.wrap = <ul class="menu_right">|</ul>
temp.menu_right.10.10 = IMAGE
temp.menu_right.10.10 {
  wrap =  <li>|</li>
  file = GIFBUILDER
  file{
  XY = 160,25
  backColor = {$color1}
  10 = TEXT
  10.fontFile = fileadmin/fonts/DINMittelschrift.otf
  10.fontColor = #FFFFFF
  10.text = Expertise
  10.text.case = upper
  10.fontSize = 10
  10.offset = 5,15
  10.align = left
  10.niceText = 1
  10.disableAltText = 1
  }
}
temp.menu_right.10.20 = HMENU
temp.menu_right.10.20.wrap = |
temp.menu_right.10.20 {
  special = directory
  special.value = 92
}
temp.menu_right.10.20.1 = GMENU
temp.menu_right.10.20.1.NO {
  wrap =  <li>|</li>
  XY = 160,25
  backColor = #B2CDE0
  10.max = 140, 25
  10 = TEXT
  10.fontFile = fileadmin/fonts/DINMittelschrift.otf
  10.fontColor = {$color1}
  10.text.field = title
  10.text.case = upper
  10.fontSize = 10
  10.offset = 5,15
  10.align = left
  10.niceText = 1
  10.disableAltText = 1
}
temp.menu_right.10.20.1.RO < temp.menu_right_start.1.NO
temp.menu_right.10.20.1.RO = 1
temp.menu_right.10.20.1.RO {
  XY = 160,25
  backColor = {$color1}
  10.max = 140, 25
  10 = TEXT
  10.fontFile = fileadmin/fonts/DINMittelschrift.otf
  10.fontColor = #FFFFFF
  10.text.field = title
  10.text.case = upper
  10.fontSize = 10
  10.offset = 5,15
  10.align = left
  10.niceText = 1
  10.disableAltText = 1
}

Hoffe ihr könnt helfen.

Grüße,

Philipp

d.​walter ·

Ich erzeuge z.B. so einen Rahmen um meinen Inhalt, aber nur wenn er nicht leer ist.

  temp.CONTENT_LEFT = COA
     temp.CONTENT_LEFT {
     stdWrap.required = 1
     stdWrap.wrap = <div class="bg"><div class="ro"><div class="lo"><div class="ru"><div class="lu"><div class="inhalt"> |  </div></div></div></div></div></div>


2 = CONTENT
2 < styles.content.getLeft
2.select.orderBy = sorting

}

wichtig ist hier die 3. und 4. Zeile

Hoffe es hilft.

Gruß
Daniel