Portal Engine
Version 3.x > Portal Engine > Problem with the node order View modes: 
User avatar
Certified Developer 9
Certified Developer 9
erwin.werkman-avivasolutions - 9/1/2008 9:47:28 AM
   
Problem with the node order
When I try to retreive multiple nodes using the following command:

CMS.CMSHelper.TreeHelper.SelectNodes("/%", true, "hrg.jobtitle", whereClause, "NodeOrder");

I found out that the node order never gets updated whenever I move nodes around in the CMS desk.

My purpose is to retreive a list of nodes in the same order as is displayed in the CMS.

Does anybody have an idea why the NodeOrder column does not represent the current order of the nodes in the CMS desk?

Thanks in advance.

User avatar
Kentico Developer
Kentico Developer
kentico_martind - 9/1/2008 12:03:22 PM
   
RE:Problem with the node order
Hi Erwin,

Please try to use following 'order by' expression - it is exactly the same expression we are using in CMSDesk:

CMS.CMSHelper.TreeHelper.SelectNodes("/%", true, "hrg.jobtitle", whereClause, "NodeLevel, NodeOrder, NodeName");

Best Regards,

Martin Dobsicek