<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> I'm allready 2 days to late with this ... I'm really happy about any help Thanks in advance. Stefan
----- 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
Hi Oliver Hi Tim Thanks a lot for you help. I had to change both lines <dtml-let PageUrl="absolute_url()"> <dtml-if expr="absolute_url()==PageUrl"> But now it works! A 1000 thanks! Stefan
<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>
participants (2)
-
Stefan Mallepell -
Tim Hicks