Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > OrderBy Menu Item View modes: 
User avatar
Member
Member
kentico-2622.co - 1/26/2010 5:00:19 AM
   
OrderBy Menu Item
Hi,

I have been following this article in your blogs by your CTO (Great article by the way!)

I am setting up my site navigation using a repeater so I can render the exact markup that I want to use, I have created and setup my repeater and all is working well except the order of the navigation does not resemble that of the tree in CMS desk.

i.e.

In the tree in CMS desk it is displaying:

Root
- Page (menu item) 1
- Page (menu item) 2
- Page (menu item) 3
- Page (menu item) 4
- Page (menu item) 5

in preview mode (in the repeater) it is displaying:

Root
- Page (menu item) 1
- Page (menu item) 4
- Page (menu item) 3
- Page (menu item) 2
- Page (menu item) 5

Is there an OrderBy clause to get these to display in the right order?

Many thanks in advance

User avatar
Member
Member
kentico-2622.co - 1/26/2010 8:07:21 AM
   
RE:OrderBy Menu Item
Found it.

OrderBy = NodeOrder

User avatar
Kentico Support
Kentico Support
kentico_zdenekc - 2/1/2010 10:11:39 AM
   
RE:OrderBy Menu Item
Hi,

yes, that's correct.
If you also need to order documents of different levels, NodeLevel might be useful.
For example, our content TreeView uses ORDER BY NodeLevel, NodeOrder, NodeName.

Regards,
Zdenek C.