[Zope] Feeling like a newbie.. document id if statement?
Phil Harris
phil.harris@zope.co.uk
Wed, 24 May 2000 13:18:48 +0100
J,
You may not be as dumb as you think.
If I recall correctly, id is one of those strange fish which is sometimes
string and sometimes method.
So if in your case it is a method then id=='anything' will always be false.
Try id()=='index_html'.
hth
Phil
phil.harris@zope.co.uk
----- Original Message -----
From: "J. Atwood" <jatwood@bwanazulia.com>
To: <zope@zope.org>
Sent: Wednesday, May 24, 2000 12:59 PM
Subject: [Zope] Feeling like a newbie.. document id if statement?
> Ok.. this is really dumb, but for some reason I can't get this to work.
>
> <dtml-if "id=='index_html'">
>
> do something cool
>
> </dtml-if>
>
> What am I missing? I tried it on a few pages.. nothing..
>
> Thanks,
> J
> (duffus)
>
> _______________________________________________
> 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 )