[Zope] <dtml-if expr="absolute_url == PageUrl">
Tim Hicks
tim@sitefusion.co.uk
Mon, 9 Apr 2001 16:03:37 +0100
----- Original Message -----
From: "Stefan Mallepell" <steve@syso.ch>
To: <zope@zope.org>
Sent: Monday, April 09, 2001 3:47 PM
Subject: [Zope] <dtml-if expr="absolute_url == PageUrl">
> Hi
>
> Can anybody tell me why the following code is never get into the "if Bit"
of
> the condition? Even when "absolute_url" and "PageUrl" are really 100%
> identicly .... How can I make this working?
>
> <dtml-let PageUrl="absolute_url">
> ... some other staff (in, if and with ...)
> ... <dtml-if expr="absolute_url == PageUrl">
> <BR>THAT'S IT .... !!!
> <dtml-else>
> <BR>// <dtml-var absolute_url>
> <BR>// <dtml-var PageUrl>
> </dtml-if>
> <dtml-let>
Just guessing, but do you need to make the first line like so,
<dtml-let PageUrl="absolute_url()">
I've got a feeling your way makes PageUrl equal to the string
'absolute_url', while my way makes it equal to the string returned by the
absolute_url() method. Not too sure though.
tim