Zum Inhalt springen

Einzelne Content Elemente wrappen

Erstellt am 31. Juli 2005 · Noch keine Antworten

Tags: Frage

tobiasgp ·

Hi!

ich habe folgendes (...weiteres ;-)) Problem.
Ich möchte einzelne Inhaltselemente wrappen, d.h. aus:

<h1 class="csc-firstHeader">Contact Information</h1>
<p class="bodytext">Text</p>

soll das werden:

<div class="infobox">

<div class="infobox_title"><h1 class="csc-firstHeader">Contact Information</h1></div>

<div class="infobox_content"><p class="bodytext">Text</p></div>

</div>

Mein TS-Code:

       CTRIGHT = CONTENT
       CTRIGHT {
           table = tt_content
           select {
              pidInList = 6
              where = colPos = 2
              orderBy = sorting
              languageField = sys_language_uid
           }
           wrap = <div class="infobox">|</div>
       }

Im Web und in den Threads hier habe ich keine eindeutige Lösung dieses Problems gefunden.... der umfassende Wrap funktioniert natürlich....