[Zope] dtml-if syntax and comparing variables

Kevin Dangoor kid@kendermedia.com
Sun, 7 Nov 1999 10:18:16 -0500


----- Original Message -----
From: Roché Compaan <roche@up-front.co.za>
To: Zope <zope@zope.org>
Sent: Sunday, November 07, 1999 3:26 AM
Subject: [Zope] dtml-if syntax and comparing variables


[big snip]

> #This is where I am stuck.  I simply want to compare the URL in the
Request
> variable to
> #absolute_url of the folder being queried.  <dtml-if "URL==absolute_url">
> does not work.
>
>     <dtml-if "URL==absolute_url">

This is untested, but how about:

<dtml-if "this() == PARENTS[0]">

>       | <em><dtml-var title></em>
>     <dtml-else>
>       | <a href="<dtml-var absolute_url>"><dtml-var title></a>
>     </dtml-if>
>   </dtml-if>
> </dtml-in>|]
>
> </dtml-if>
> </dtml-with>

Kevin