Re: [Zope] How to use ZCatalog to create a sitemap
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rupesh P Raj wrote: > I am trying to use ZCatalog to create a sitemap. For that I created a > ZCatalog object. In "Find Objects" tab, I selected objects of type Page > Template and DTML Document, I selected the permission as "Access Transient > Objects". > > What options should I select for creating a sitemap. Am I going in the > correct way? Please advice. > > I use Zope 2.8 (there is no Plone) The "Find Objects" tab searches the catalog's parent and its descendents for objects of the given type(s). I would leave the permission unselected to do the search. Once indexed, you can query the objects in the catalog by calling its 'search' or 'searchResults' methods. E.g., in a PythonScript: catalog = context.my_catalog for result in catalog.search(): print catalog.getPath() return printed Tres. - -- === Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJb1B0+gerLs4ltQ4RAk0MAJoCUO0u2VcarpyNJC1ssG4HXT/4eQCfVqt5 hH7kmNMCWcQKL1VDhgCRFJU= =hkt/ -END PGP SIGNATURE- ___ Zope maillist - Zope@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 )
Re: [Zope] How to use ZCatalog to create a sitemap
I use recursive DTML method for cca 500 folders in about 8 levels. Rendering tooks under 1 second, with relativelly complex rendering (javascript menu, tables, background images and styles by URL...). I use one hour RAM cache for this method. To even even more folders, it is better to use external method, which is much faster and you dont need to use cache (only browser's cache - use HTTP cache object). Both ways I use, but external method sometime need to recompile after server restart (click to "save changes" button). I think, that using Zcatalog for this issue is not the right way. - Original Message - From: Rupesh P Raj I am trying to use ZCatalog to create a sitemap. For that I created a ZCatalog object. In "Find Objects" tab, I selected objects of type Page Template and DTML Document, I selected the permission as "Access Transient Objects". What options should I select for creating a sitemap. Am I going in the correct way? Please advice. ___ Zope maillist - Zope@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 )
Re: [Zope] How to use ZCatalog to create a sitemap
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 15.01.2009 13:08 Uhr, Rupesh P Raj wrote: > Hi All, > > I am trying to use ZCatalog to create a sitemap. For that I created a > ZCatalog object. In "Find Objects" tab, I selected objects of type Page > Template and DTML Document, I selected the permission as "Access > Transient Objects". > > What options should I select for creating a sitemap. Am I going in the > correct way? Please advice. The ExtendedPathIndex implementation of Plone (usable outside Plone!) provides related options. Check its README.txt. - -aj -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAklvLNgACgkQCJIWIbr9KYwC6wCgirmvO6hJPWpQjZSuZoVD16B/ NZ0AnAl9P2g+6Fj9q+jcpbkmPs81kExI =vCZZ -END PGP SIGNATURE- begin:vcard fn:Andreas Jung n:Jung;Andreas org:ZOPYX Ltd. & Co. KG adr;quoted-printable:;;Charlottenstr. 37/1;T=C3=BCbingen;;72070;Germany email;internet:i...@zopyx.com title:CEO tel;work:+49-7071-793376 tel;fax:+49-7071-7936840 tel;home:+49-7071-793257 x-mozilla-html:FALSE url:www.zopyx.com version:2.1 end:vcard ___ Zope maillist - Zope@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 )