I am fetching content type pages(no design) and sub-pages from Kentico CMS using data provider class.
I am getting list of pages in alphabetical order.
Is there any way to get list of pages in order in which it is defined/ordered in Kentico CMS.
Thanks in advance.
Kentico defines the order of pages for a section using the NodeOrder field.
You can use the NodeOrder, NodeLevel, NodeName in the Order By property.
It was also described in this similar question as well as here.
In the order by clause use NodeOrder, NodeLevel, NodeName. All three in this order separated by a comma.
Please, sign in to be able to submit a new answer.