That worked - thank you :-) Gitte On Thursday 12 July 2001 14:20, Ausum wrote:
Untested:
<dtml-in "objectValues('Media Manager Show')" sort="getId" size="19" start=qs skip_unauthorized>
<dtml-if sequence-odd> <TR class="MastHead"> <dtml-else> <TR BGCOLOR="#FFFFFF"> </dtml-if>
</dtml-in>
Ausum
Gitte Wange wrote:
Hello,
I am generating a list of objects with different BG color in the TR tag. The code I have now looks like this: <dtml-if sequence-odd> <TR class="MastHead"> <dtml-else> <TR BGCOLOR="#FFFFFF"> </dtml-if>
Usually this works in a <dtml-in> sequence but ...
We will one list objects that has metatype=Media Manager Show so therefor the code looks like this: <dtml-in "objectValues()" sort="getId" size="19" start=qs skip_unauthorized> <dtml-if expr="meta_type == 'Media Manager Show'"> <dtml-if sequence-odd> <TR class="MastHead"> <dtml-else> <TR BGCOLOR="#FFFFFF"> </dtml-if>
Since it only some of the object values that are used I cannot be sure that the bg color of the row-items is set corectly (right now they are 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ært, men frygt ej - matematik er sværere.
- 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 )