Re: sorting over creation date or some getObjProperty('xyz',REQUEST)

Niels Dettenbach <[email protected]>
Newsgroups gmane.comp.cms.zms.devel
Organization Syndicat IT&Internet
Message-ID <[email protected]>
On Wednesday 02 December 2009 16:54:57 you wrote:
> Why don't you use:
> 
>         <dtml-in "filteredTreeNodes(REQUEST, 'ZMSFolder' , 'datetime_' ,
>  'desc' ,  10 )">  ...
>         </dtml-in>
> 
> You can sort using filteredTreeNodes easily with the third parameter
>  (order_by). We use this on http://www.bonncampus.fm/ and
>  http://www.mondberge.com with no problems.
> 
...this sound's really nice.

with that i just would have a little more code here, because i create 
(depending from user choices - like "this folder only", "whole sub tree") 
different types of lists (by "let") which - in a second step - will get their 
order (depending from other user choices - like "chronological, by page 
order). 

So my idea was to sort the results in a second step by a 
    
        <dtml-let list="filteredTreeNodes(...)">

then sorting:

	<dtml-call expr="list.sort(x,y,z)"> 
or even in the dtml-in statement like 

	<dtml in results sort="myexpression">

Will try and play with this tomorrow morning ;)


many thanks and
best regards,


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)

iQIcBAABCAAGBQJLFqBZAAoJEM78prARigUnXIkP/jK9uu6qfkAzCovxWS1F6cQD
9gP8I831zWOMsYRUd5MAyzHlHW2IlQaybtf5QaNMdRx81CXUUwrS8Og8hvvVWuJs
V+wIckJFK6lDb5kmKGXUnasNmrexB8rgXGdz2OM6fDxcIzAeCzsHYDKW6/CWw+IL
+Mhoqf0AuZyII70BZ0MA2MnvBo+OpSHV8lT6lK0QP8UERz5miSQsXbjL+hztdMCN
dpxOf9SkQlNBspZzOKD5OU52X0plMOY2RqHolPOFlTlQBYQniNQkea12YVvTpU69
Uj+2p205PjfbnJX4Im7PpqdQIb0kbL+X2sSZ9PtWiWZe4LXf8/WMJ7OLoUNOZANf
TKxxseshOWdqNaKVJgrO3e2Y0ZRG54st7WvzfM+L6ONKqzi7mrhZmFHSIfnJLLWh
45+d3gvjQX1Ig6R8GsRV1h83YHkM725l2YulG7vdL9mfoUlwD7K5AIoEUcxC/MdK
dnLStw3JmK4UhX1mEFjrj3qCbIEYay/usaO5lkludeLl6nqlRj4C75eKND3MIiGq
/PxYpfYCgxcIYbJ3LHVpF5IEZ2w6Uay/ZbiphQmAHddsZmqJhxAxPrz55AXzStNV
e22fadidL+z17VkVN9V6X1jlwZcKDxwjITLSfui//Pzvo4zKGEaMU8Tf2c2X2wMf
E4qfAOTGWC1+Bbzb77d1
=V+BN
-----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.