[Zope] DTML problem
Bill Anderson
bill@libc.org
Wed, 26 Jul 2000 01:28:58 -0600
Wolfgang Klinger wrote:
>
> Hi!
>
> ----------------------------
> I use the following expression in a header file
> which is included in every document/method
> to get the content of the actual folder and
> show the title as menue item.
>
> <dtml-in expr="PARENTS[0].objectValues(['DTML Document'])" sort=title>
>
> <tr>
> <td><a href="<dtml-var "absolute_url()">"><dtml-var title></a></td>
> </tr>
>
> </dtml-in>
>
> But I don't want to show the current "DTML Document" as part
> of the menue.
IIRC, I do something like this ....
<dtml-in expr="PARENTS[0].objectValues(['DTML Document'])" sort=title>
<dtml-unless "this() == _['sequence-item']">
<tr>
<td><a href="<dtml-var "absolute_url()">"><dtml-var title></a></td>
</tr>
</dtml-unless this is the document>
</dtml-in>
But I could be wrong, I don't have it handy, ATM.
--
Do not meddle in the affairs of sysadmins, for they are easy to annoy,
and have the root password.