[Zope-dev] ZCatalog help?

Victor.Zhai@ogilvy.com Victor.Zhai@ogilvy.com
Fri, 26 Nov 1999 15:31:09 +0800


Hi ,all
Some promblerm need you help. I want to Use catalog to display sub folder
of current object.

<dtml-in "catalog(meta_type=['Folder'],id='content')">
     <dtml-let path1="catalog.getpath(data_record_id_)">
/* I want to display the folder of current directory named content */

     <dtml-call "REQUEST.set
('path','http://nokia.ogilvy.com.cn:8080/news/content/index.html')">
     <dtml-var path>
     <dtml-call path>
 ....
/* Want to display http://.../index.html in current screen */
 <a href="<dtml-var "catalog.getpath(data_record_id_)">"><dtml-var
title></a>  /* This can work but I must click the "content" */
     </dtml-let>
</dtml-in>
   Thanks in advance.
               Victor zhai.




"WorldSecure Server <ogilvy.com>" made the following
 annotations on 11/26/99 02:19:55
------------------------------------------------------------------------------
Privileged/Confidential Information may be contained in this message.  If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply email. Please advise immediately if you or your employer does not consent to email for messages of this kind.  Opinions, conclusions and other information in this message that do not relate to the official business of the Ogilvy Group shall be understood as neither given nor endorsed by it.

==============================================================================