[Zope-dev] absolute_url() and DTML Methods

Kevin Dangoor kid@kendermedia.com
Tue, 2 May 2000 14:11:59 -0400


----- Original Message -----
From: "Tres Seaver" <tseaver@palladion.com>
To: <zope-dev@zope.org>
Cc: "Chimezie Thomas-Ogbuji" <cogbuji@fourthought.com>; "Christian Scholz"
<cs@comlounge.net>
Sent: Tuesday, May 02, 2000 10:18 AM
Subject: Re: [Zope-dev] absolute_url() and DTML Methods


> Chimezie Thomas-Ogbuji <cogbuji@fourthought.com> wrote:
> > absolute_url() + "/" + <dtml-var id>
>
> Actually, DTML methods don't expose their own 'id' (under that name), but
that
> of their acquisition context.  You need to use 'document_id' for what you
want::
>
>   absolute_url() + "/" + <dtml-var document_id>

And, for the sake of syntactic correctness:

<dtml-var "absolute_url() + '/' + document_id">

Kevin