I just found a way to sort a tree of resources with getResources:
&sortby=`{"parent":"ASC","menuindex":"ASC"}`
Works for 2 levels if the ids of the parents folders are growing.
Projects (2)
-2011 (4)
--work A
--work B
--work C
-2010 (6)
--work K
--work L
--work M
-2009 (16)
--work D
--work E
--work F
[[getResources? &parents=`2` &limit=`0` &sortby=`{"parent":"ASC","menuindex":"ASC"}` &tpl=`projectsOverviewTpl`]]
Just unpublish the parents-folder so they don’t get displayed and you have the second branches of the tree sorted from top to bottom. In this case: all works from 2011 to 2009.
bye
Oliver
-
- 571 Posts
Thank you Oliver. This is just what I was looking for!