[ZPT] Templates - Automatic Navigation
Sam Collett
Sam.Collett@gp-b81091.trent.nhs.uk
Mon, 17 Dec 2001 12:42:49 -0000
What is wrong with the following?
<ul>
<li tal:repeat="example python:BASE2.objectValues('Folder')">
<a href="example"
tal:attributes="href example/getId"
tal:content="example/title">Example Title</a>
</li>
</ul>
I want to go through all folders in the folder Test and build a menu as
follows:
Test <---this is not a link as it is the current directory
Folder1 <---this is a link
Folder2 <---this is a link
Folder3 <---this is a link
Test is the root directory.
When I click on Folder1 (a subfolder in Test), I want the same menu with the
link to folder1 disabled ie:
Test <---this is a link
Folder1 <---this is not a link as it is the current directory
Folder2 <---this is a link
Folder2 <---this is a link
The same thing should happen with Folder2. I may also want to not display
certain folders (images / css / scripts), how would I go about doing this
with page templates?
TIA