[Zope] ZPT list is dead... zpt nav question

Cliff Ford Cliff.Ford at ed.ac.uk
Thu Apr 14 01:32:27 EDT 2005


Your code works OK for me - I see a list of links: URL URL URL URL URL 
and each one links to a folder only. You did not say what was wrong with 
your output. Were you forgetting to set tal:content to the title of the 
listed folder to appear in place of URL:

<span tal:repeat="item here/objectValues">
<a href="" tal:content="item/title_or_id"
tal:condition="python:item.meta_type=='Folder'"
tal:attributes="href item/absolute_url">URL</a>
</span>

Cliff

Norbert Ray-Goldman wrote:
> so I am posting this here. I would like my zpt to list only folders in
> a director - essentially filtering out all other meta_type(s)... can
> you tell me where I am going wrong with the filtering here ?
> 
> 
> ################################################
> 
> <html>
>   <head>
>     <title tal:content="template/title">The title</title>
>   </head>
>   <body>
> <span>
> <a href="HOME_URL" tal:attributes="href container/absolute_url"
>            tal:content="container/title_or_id">TITLE OR ID</a>
> 
> <span tal:repeat="item here/objectValues">
> <a href="" tal:attributes="href item/absolute_url"
> tal:condition="python:item.meta_type=='Folder'">URL</a>
> </span>
> 
> </span>
> 
>   </body>
> </html>
> _______________________________________________
> Zope maillist  -  Zope at zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
> 


More information about the Zope mailing list