Thank
you, this works after fixing a spelling error.
Date:
Thu,
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"
<
Cc:
Zope mailinglist <
Subject:
Re: [Zope] Dynamic Navigation with ZPT
On
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