[Zope] Acquiring Objects in ZPT

Chris Withers chrisw@nipltd.com
Tue, 21 May 2002 10:42:07 +0100


David Kyte wrote:
> 
> I have an application that displays pages from a folder.
> 
> The List is defined by looping over the objects. If I create
> 
> a link of the type folder/ObjectID, each time I select the link
> 
> I end up with a url like Letters/Letters/Letters/.../Letter1

you want the absolute_url rather than the ObjectID there ;-)

> Is there an equivalent of
> 
> <dtml-with Letters>
>   <dtml-var Letter1>
> </dtml-with>
> 
> in ZPT.

...not exactly, but I'm not convinced that's what you want anyway ;-)

<tal:x replace="structure here/Letters/Letter1"/>

...might well do it, though...

cheers,

Chris