[Zope] problem in using Zcatalog : Help needed

Hamzat Kamal k_hamzat@yahoo.com
Mon, 5 Aug 2002 07:19:07 -0700 (PDT)


 Hi All,
  
 I have this problem in using ZCatalog.
 
 I have the Zcatalog and the folders that contained the DTML
 Documents in the root.

  |-root
        |--Zcat_Index_1_Dtml_Doc
        |--news(folder)
              |---article1(folder)
                          |----x1(DTML Doc)  
                          
                          |----xn(DTML Doc) 
               |---article2(folder)
                          |----x1(DTML Doc)  
                          
                          |----xn(DTML Doc)  
        
         |--news1(folder)
              |---article1(folder)
                          |----x1(DTML Doc)  
                          
                          |----xn(DTML Doc) 
               |---article2(folder)
                          |----x1(DTML Doc)  
                          
                          |----xn(DTML Doc) 
             
 What surprise me was that it shows the absolute url when I did not
 include _.getitem(mm,1) but display Nothing when included.

<dtml-call "REQUEST.set('mm',
 ZopeTime().toZone('GMT+1').strftime('%d%m%y'))">
 <ul>
 <dtml-in "Zcat_Index_1_Dtml_Doc(id=mm)">
 <dtml-var expr="_.getitem(mm,1)[0:400]">... <br>
 <li>
 <a href="&dtml-absolute_url;"> More </a>
 </li>
 </dtml-in>
 </ul>
 
 Also I will like to know how to use pathindex just the way i 
 used 'id' to enable me limit the result to those DTML Documents that
have the same id and pathindex.

I will appreciate any idea that help to solve this problem.

Thanks.
 


=====
Hamzat kamaldeen Ishola
Dnet Systems Limited. 223 Ikorodu Road, Lagos. Nigeria.
234 1 7749381, 234 08033011305
---
Making Mistake is not a problem but readiness to admit it.
Sentimental decisions are not mistakes but failures !!!
Mistake is an opportunity to see better !!!

__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com