[Zope] Setting the correct bgcolor it TR tag
Gitte Wange
gitte@mmmanager.org
Thu, 12 Jul 2001 14:43:20 +0200
That worked - thank you :-)
Gitte
On Thursday 12 July 2001 14:20, Ausum wrote:
> Untested:
>
> <dtml-in "objectValues('Media Manager Show')" sort=3D"getId" size=3D"19=
"
> start=3Dqs skip_unauthorized>
>
> <dtml-if sequence-odd>
> <TR class=3D"MastHead">
> <dtml-else>
> <TR BGCOLOR=3D"#FFFFFF">
> </dtml-if>
>
> </dtml-in>
>
>
>
> Ausum
>
> Gitte Wange wrote:
> > Hello,
> >
> > I am generating a list of objects with different BG color in the TR t=
ag.
> > The 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 th=
erefor
> > the code looks like this:
> > <dtml-in "objectValues()" sort=3D"getId" size=3D"19" start=3Dqs
> > skip_unauthorized> <dtml-if expr=3D"meta_type =3D=3D 'Media Manager S=
how'">
> > <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 sur=
e
> > that the bg color of the row-items is set corectly (right now they ar=
e
> > all blue). Therefor I thought if I could move the type-check into the
> > <dtml-in> request.
> >
> > Anywho knows how to do this ??
> >
> > Regards,
> > --
> > 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.
> >
> > - Storm P.
> >
> > _______________________________________________
> > Zope maillist - Zope@zope.org
> > http://lists.zope.org/mailman/listinfo/zope
> > ** No cross posts or HTML encoding! **
> > (Related lists -
> > http://lists.zope.org/mailman/listinfo/zope-announce
> > http://lists.zope.org/mailman/listinfo/zope-dev )
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )