Thank you, this works after fixing a spelling error.

 

Date: Thu, 3 Apr 2003 10:40:21 +0200

From: =?ISO-8859-15?B?R2VpciBC5mtob2x0?= <lists@elvix.com>

Reply-To: =?ISO-8859-15?B?R2VpciBC5mtob2x0?= <lists@elvix.com>

Organization: elvix

To: "Jamie on The Zope Mailinglist" <jamie@brobus.net>

Cc: Zope mailinglist <zope@zope.org>

Subject: Re: [Zope] Dynamic Navigation with ZPT

 

On  Wed, 2 Apr 2003 21:42:40 -0500 GMT (..4:42 where i live(GMT+1) )

Jamie asked the Zope mailinglist about the following:

 =20

J> Does anyone know how to create a navigation bar that lists the titles =

of

J> all folders as links, using ZPT something similar to what this would

J> give me in DTML?

=20

J> <dtml-if expr=3D"_.len(PARENTS) > 2">

J> <a href=3D"..">Return to parent</a><br>

J> </dtml-if>

J> <dtml-in expr=3D"objectValues('Folder')">

J> <a href=3D"&dtml-absolute_url;"><dtml-var title_or_id></a><br>

J> </dtml-in></p>

 

will this do the job ?

untested code:

<p>

<a tal:condition= "python:len(request.PARENTS) > 2" href= "..">Return =

to parent</a>

<a tal:repeat= "subfolder python:here.objectValues('Folder')"

   tal:attributes= "href subfolder/absolute_url"

   tal:content= "subfolder/title_or_id">

   link to subfolder

</a>

</p>

 

:)

 

--

Geir B=E6kholt