Zum Inhalt springen

colPos - Abfrage

Erstellt am 1. Oktober 2003 · Noch keine Antworten

Tags: Frage

FordPrefect ·

Hi,

Ich würde gerne im Setop die colPos abfragen. folgender Hintergrund. Cih rendere meinen content über folgendes Setopscript:

temp.box = CASE 
temp.box.key.field = colPos

temp.box < tt_content.text 
temp.box { 
10.wrap = <tr><td class="color12"><img src="fileadmin/System/Images/z.clearpix.gif" width="5" height="1"></td><td class="color12"><img src="fileadmin/System/Images/z.clearpix.gif" width="148" height="1"></td><td class="color12"><img src="fileadmin/System/Images/z.clearpix.gif" width="5" height="1"></td></tr><tr class="color1"><td><img src="fileadmin/System/Images/z.clearpix.gif" width="5" height="18"></td><td align="center" class="txt-small-white">|</td><td><img src="fileadmin/System/Images/z.clearpix.gif" width="5" height="18"></td></tr><tr class="color13"><td><img src="fileadmin/System/Images/z.clearpix.gif" width="5" height="1"></td><td><img src="fileadmin/System/Images/z.clearpix.gif" width="148" height="1"></td><td><img src="fileadmin/System/Images/z.clearpix.gif" width="5" height="1"></td></tr><tr><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td></tr>
20.wrap = <tr><td>&nbsp;</td><td valign="top" class="txt-small">|<td>&nbsp;</td></tr>
wrap = <table width="158" border="0" cellspacing="0" cellpadding="0">|<tr><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td></tr></table>

} 

tt_content.text > 
tt_content.text < temp.box

so, dieses Rendering bezieht sich auf alle Contentbereiche, also Left, Normal, Right ...! ich möchte aber für jeden Bereich ein eigenen "REnderer" haben. Dies könnte ich erreichen wenn ich irgendwie per if oder so einer Variablen den wrap zuweisen könnte.

Habt ihr ansätze wie ich im setup oder den constants auf die colPos zugriff bekomme?

Gruss

Stefan