Re: list of objects

Niels Dettenbach <[email protected]>
Newsgroups gmane.comp.cms.zms.devel
Organization Syndicat IT&Internet
Message-ID <[email protected]>
On Wednesday 02 December 2009 14:23:09 you wrote:
> I have a new question :  how can i produce a list off all my objects in  a
>  homepage ? Is there a easy way to get a list of my folders with files and
>  links ecc.

For objects of type PAGES i use this - i.e.:

all pages for the current language:
   content.extend(filteredTreeNodes(REQUEST,PAGES,max_len=50000))


For objects of type PAGEELEMENTS i use this - i.e.:

all pageelements (object ON pages) for the current language:
   content.extend(filteredTreeNodes(REQUEST,meta_types=[PAGEELEMENTS],max_len=50000))

if you want to get all languages, you have to iterate over it too:
   <dtml-in "getLanguages(REQUEST)">
   <dtml-call "REQUEST.set('lang',_['sequence-item'])">
   ... filteredChildNodes()...

May be my (something older) sitemap.xml method helps you a little here:
http://www.zms-publishing.com/support/content/e732/e736/e855/e2650/

...and - may be there a newer - more efficient methods in 2.11 (i'm currently 
fiddeling with...).

You may find more intentions on:
http://www.zms-publishing.com/support/content/e732/e739/e758/e1095/

godd luck and
cheers,


Niels.
-- 

---

  Niels Dettenbach
  ---
  Syndicat IT&Internet
  http://www.syndicat.com
  T.-Muentzer.-Str. 2, 37308 Heilbad Heiligenstadt - DE
  ---
  Kryptoinfo: 
  PGP public key ID 651CA20D
  Fingerprint: 55E0 4DCD B04C 4A49 1586  88AE 54DC 4465 651C A20D
  https://syndicat.com/pub_key.asc
  ---
signature.asc (application/pgp-signature, 836 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.13 (GNU/Linux)

iQIcBAABCAAGBQJLFpZ2AAoJEM78prARigUn1H4P/iFu8uoyQHFuHdI4UL5nd1jt
oMuFIKUaMdUOCM2da9jgd0qunYDR/FElMM99QIUguAxAVaj5i5NflqJpJlu7JruR
TIez8Q+MdqxOGo4DKwkMu/Qdm7ST0QMRwGC2OARJA5GmPc+NWgCr6WTo6eUbRCey
BrCVeFOxeM9Dp9HhUDrx+ND8Ysn5Brkwbu1tfSUsNk1KvtD8W4BikwOLLUc1nodl
mKmyRdg/n2ohIuxGOYzLI3idVWH487NB1PftKATsZsZkIX5AUeTeL9oglYBll3GS
LpGEutVIeuR+ydwR47os8Mk7KX3d0W4UrTJn+VDSKhSKbPLWQLb1ysjK2/xc740J
dKcbJ4NIFVEc7qZCxz/hBrJjC/yfObWIhiwsuG7/Kd1zzlOMVpQRthoDDr4pP8RO
4FEmWzMMelnAqVIOgncrHTdpiO2SaPiwsPA16UC6Df4660u059PnUrRj7l8+opN/
K4Ae9A06nahch+2i7bZjfLWzroi+ml8WBaJcTAff/RaExP6IcpMUrgtsLv5KuFUo
F9lgxFLabmLXT/nn8sWi2ZuRnb2X/PS5qnvgoFp79QL4Teg6YQUP41D+HRiWgLKq
k1jImN+pgp3+Rt+mxAJ/fKaDDtZp2qLpk4QzjbS/jzwDEd4QH7sVFTR7dkZXZGuO
pHMkRTDplYdBZrwGCEF6
=W55g
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.