[Zope] expr="id <> 'index_html" issue
Seb Bacon
sebbacon@email.com
Mon, 9 Oct 2000 22:31:19 +0100
>
> try <untested but this is a faq>:
>
> <dtml-in expr="objectValues('DTML Method')" sort="title">
> <dtml-if expr="_[id] <> 'index_html'">
> <td align="center"><a href="&dtml-absolute_url;"><dtml-var
> title_or_id></a></td>
> </dtml-if>
> </dtml-in>
>
that should be
<dtml-if expr="_['id'] <> 'index_html'">
(quotes round id)
<dtml-if expr="id() <> 'index_html'">
would also work. This is because sometimes id is a property, sometimes it's
a method. The former version would work in every case; the latter only
where id is a method. It's annoying, but there's talk of providing a
getId() method for every object to sort this inconsistency out.
seb