How to change the order of the nodes in the content tree in CMS Desk

Technical support leader

Juraj Ondrus asked on August 11, 2009 06:29

How to change the order of the nodes in the content tree in CMS Desk

Correct Answer

Juraj Ondrus answered on August 11, 2009 06:29

Open the file ~\CMSDesk\Content\ContentTree.ascx.cs and alter the following line (in the 4.0 version it can be found around line 230 within the object public TreeSiteMapProvider MapProvider):

mMapProvider.OrderBy = "NodeOrder ASC, NodeName ASC, NodeAlias ASC";

If you want to invert the order of nodes the mentioned line should look the following way:

mMapProvider.OrderBy = "NodeOrder DESC, NodeName DESC, NodeAlias DESC";

0 votesVote for this answer Unmark Correct answer

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