[Zope] Setting the correct bgcolor it TR tag
Gitte Wange
gitte@mmmanager.org
Thu, 12 Jul 2001 13:57:01 +0200
Hello,
I am generating a list of objects with different BG color in the TR tag. =
The=20
code I have now looks like this:
<dtml-if sequence-odd>
<TR class=3D"MastHead">
<dtml-else>
<TR BGCOLOR=3D"#FFFFFF">
</dtml-if>
Usually this works in a <dtml-in> sequence but ...
We will one list objects that has metatype=3DMedia Manager Show so theref=
or the=20
code looks like this:
<dtml-in "objectValues()" sort=3D"getId" size=3D"19" start=3Dqs skip_unau=
thorized>
<dtml-if expr=3D"meta_type =3D=3D 'Media Manager Show'">
<dtml-if sequence-odd>
<TR class=3D"MastHead">
<dtml-else>
<TR BGCOLOR=3D"#FFFFFF">
</dtml-if>
Since it only some of the object values that are used I cannot be sure th=
at=20
the bg color of the row-items is set corectly (right now they are all blu=
e).=20
Therefor I thought if I could move the type-check into the <dtml-in> requ=
est.
Anywho knows how to do this ??
Regards,
--=20
Gitte Wange Jensen
Sys Admin, Developer and a lot more
MMmanager.org Aps, Denmark
Phone: +45 29 72 79 72
Email: gitte@mmmanager.org
Web: www.mmmanager.org
Quote of the day:
Livet er sv=E6rt, men frygt ej -
matematik er sv=E6rere.=20
- Storm P.=20