[Zope] newbie questions

Arjan Scherpenisse A.Scherpenisse@zap.a2000.nl
09 Nov 1999 11:19:04 +0100


Rik Hoekstra <fghoekstra@cit10.wsd.leidenuniv.nl> writes:
> 
> try:
> 
> <dtml-in "objectValues(['Folder'])">
>  <dtml-if "hasProperty('desiredProperty' and desiredProperty ==
> 'desiredValue')">
>   <a href="<dtml-var absolute_url>"><dtml-var id></a>
>  </dtml-if>
> </dtml-in>

Ok this works.

> 
> On the other hand, if index_html is a DTML Document then you would have to
> change the reference to the Folder to:
> 
> <!--#var "PARENTS[0].title_and_id"-->

For some obscure reason, this doesnt work. I only get a empty string
returned.

Another question: When i am in some subfolder a/b/c of folder News,
which is a direct descendant of the root folder, how do i get the id
of this 'News' folder?

-- 
Arjan Scherpenisse,
A.Scherpenisse@zap.a2000.nl
ICQ# 27592135