[Zope] Calling colorz with variables

Tino Wildenhain tino@wildenhain.de
Fri, 29 Nov 2002 09:48:53 +0100


Hi Harald,

"colorz", also called "colors" or "colours" ;)
are like any other tag attribute. Nothing special.
Like <a href="&dtml-var-blahfasel;">
is <body bgcolor="&dtml-var-mycolor;">
Or, if you like the full uglyness of DTML,
you can write <body bgcolor="<dtml-var mycolor>">

But you should not use DTML anyway. Proper syntax
would be:

<p tal:attributes="class here/paragraphclass1">

or such like. (Using CSS of course)

What are you actually trying to do? Alternating colors
in a table?

Regards
Tino

--On Freitag, 29. November 2002 09:11 +0100 Harald Winkelmann 
<winkelmann@fh-weingarten.de> wrote:

> Hi Mr. Colorz,
>
> I'm just trying to call colorz with variable input.
> I want to use the colorscheme with different colors in one dtml-tag.
> What is the syntax.
>
> Thanks Harry
>
>
> _______________________________________________
> 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 )