Get content pages in same order as in CMS

Manmath Kulkarni asked on March 16, 2017 10:52

Hi,

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.
Manmath.

Recent Answers


Suneel Jhangiani answered on March 16, 2017 11:44

Kentico defines the order of pages for a section using the NodeOrder field.

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on March 16, 2017 13:04

Hi,
You can use the NodeOrder, NodeLevel, NodeName in the Order By property. It was also described in this similar question as well as here.

2 votesVote for this answer Mark as a Correct answer

Chetan Sharma answered on March 16, 2017 14:02

In the order by clause use NodeOrder, NodeLevel, NodeName. All three in this order separated by a comma.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.