Try our conversational search powered by Generative AI!

GetChildren and Sorting.


Given a ContentFolder, is it possible to get a sorted and/or grouped list of its children with paging support?

Currently the follwing is being used :

var options = new LoaderOptions();
var contentRepo = Locate.ContentRepository();
var files = contentRepo.GetChildren(this.CurrentBlock.Folder,
                                                    page, rowsPerPage);

Is there a way to get these results sorted and/or grouped?

Apr 21, 2015 17:52

The paging API:s, as well as the other GetChildren methods, will always return the items sorted as to what is defined on the parent node, for instance alphabetic or by sort index. There is no way to pass in custom sorting to this method since the paging is done on the database level.

Apr 22, 2015 8:03
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.