Hello guys,
I was wondering if there's a way to use getResources sortby option to sort all of the latest updated resources?
Already tried that and it didn't work.
Here is an example where it works with the publishedon sort option.
[[*pagetitle]][[~[[*id]]? &scheme=`full`]] [[*description:cdata]][[++cultureKey]]120 [[getResources? &tpl=`tplRssItem` &parents=`0` &limit=`1000` &depth=`10` &sortby=`publishedon` ]]
But as soon as i change the sortby to &sortby=`editedon` it doesn't show the data.
That's really strange. 'publishedon' and 'editedon' are both regular resource fields. One should work exactly like the other.
Are these regular resources (as opposed to Articles or a custom class)?
Have you looked in the database to see if that field has anything in it?
Yes, they are and the editedon field has data in it.
Sorry, I can't think of any way that could possibly happen other than mistyping the name of the editedon field, not using back-ticks around it, or some other error further up in the snippet tag (like using $ instead of & for a property).
Is there anything in the error log?