-----Original Message----- From: Arjan Scherpenisse [mailto:arjan@node1281e.a2000.nl]On Behalf Of Arjan Scherpenisse Sent: Tuesday, November 09, 1999 1:20 AM To: zope@zope.org Subject: [Zope] newbie questions
Hi all,
My first posting on this list :-) I have two questions for you:
* How do i get a list of all subfolders off the current folder, using dtml-in ?? Or better, how do i get a list of subfolders which contain a property i specify?
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>
* How do i get the name of the current object in the situation that i am in the method index_html of the folder News. The value i want to get is 'News', but how do i get it?
Um, if it really is a method (a 'DTML method') it already has this in the default content it is created with: <P>This is the <!--#var document_id--> Document in the <!--#var title_and_id--> Folder.</P> in which case <!--#var document_id--> yields 'index_html' and <!--#var title_and_id--> yields 'News'. 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"--> Rik