-
☆ A M B ☆
- 24,524 Posts
Yes, I'm doing something similar this with this getResources call:
[[!getResources? &parents=`75,78,79` &showHidden=`1` &hideContainers=`1` &sortby=`publishedon` &sortdir=`DESC` &limit=`6` &tpl=`latestDocsTpl`]]
Yes, you can sort the results by publishedon
-
☆ A M B ☆
- 24,524 Posts
Now if you want it sorted by publishedon or editedon, whichever is more recent, that's another matter. I'm not sure how you would do that. The docs have this example of sorting by multiple fields
&sortby=`{"publishedon":"ASC","createdon":"DESC"}`
Ah, great! I was suspecting the call would be like the one in the second post. But I wasn't sure if I understood the purpose of the plugin correctly. Thank you, everyone!