Zum Inhalt springen

wrap und Anzahl der Elemente

Erstellt am 6. März 2006 · 1 Antwort · letzte Antwort am 6. März 2006

Tags: Frage

Rebelhig ·

Hallo,

ich habe folgendes versucht, jedoch funktioniert es nicht so wie ich es mir vorgestellt habe:
subparts.CONTENT < styles.content.get
subparts.CONTENT.wrap = <img src="fileadmin/img/linie_440x20.jpg" width="440" height="20" alt="" /><table width="440" border="0" cellpadding="0" cellspacing="0" class="tabelle_main"><tr><td align="left" valign="top"> | </td></tr></table><img src="fileadmin/img/linie_440x20.jpg" width="440" height="20" alt="" /> |*| <table width="440" border="0" cellpadding="0" cellspacing="0" class="tabelle_main"><tr><td align="left" valign="top"> | </td></tr></table><img src="fileadmin/img/linie_440x20.jpg" width="440" height="20" alt="" /> |*| <table width="440" border="0" cellpadding="0" cellspacing="0" class="tabelle_main"><tr><td align="left" valign="top"> | </td></tr></table><img src="fileadmin/img/linie_440x20.jpg" width="440" height="20" alt="" />

Ich möchte auf der Seite mehrere Inhalte eingeben und diese sollen dann angezeigt werden indem das Bild linie_440x20.jpg immer über und unter dem Inhalten stehen.
In meiner Variante wird jedoch bei 2 und mehr Inhaltselementen nur das erste Bild und unter den Inhalten das letzte Bild angezeigt. Ich hoffe daß ich mich verständlich ausgedrückt habe.

Danke im Voraus

Brian

dfluess ·

Hallo,

ein bisschen anders, aber wie wärs damit?

 temp.inhalt = CONTENT
temp.inhalt {
   wrap =  <table width="440" cellspacing="0" cellpadding="0" class="tabelle_main">|</table>
   table = tt_content
   select.orderBy = sorting
   select.where = colPos=0
   renderObj < tt_content
   renderObj.stdWrap.required = 1
   renderObj.stdWrap.wrap ( 
      <tr>
         <td align="left" valign="top">
          <img src="fileadmin/img/linie_440x20.jpg" width="440" height="20" alt="" />
           |
          <img src="fileadmin/img/linie_440x20.jpg" width="440" height="20" alt="" />
         </td>
      </tr>
    )
}

page.20 < temp.inhalt

D.