Design and CSS styles
Version 7.x > Design and CSS styles > CSS List Menu - Item Sort Order View modes: 
User avatar
Member
Member
bhines-csiinc - 12/21/2012 10:10:51 AM
   
CSS List Menu - Item Sort Order
I'm using a CSS List Menu item to build a little "jump to section" drop down on a site. Everything works great, but there is one issue.

How is the ordering for all the elements in the list controlled?

The control is pointed at the root level of the site. There are three main navigation folder nodes in the root level. For example, we can call them: A, B, C

The issue I have is that in my list menu, they display in a different order than what appears in the content tree in CMSDESK. For example: B, A, C. I've tried moving the folders around to create a completely different order. I have cleared CMS cache, and browser cache. Nothing changes. The order does not change.

Anyone have any ideas here?

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 12/21/2012 10:25:19 AM
   
RE:CSS List Menu - Item Sort Order
In your webpart set the order by clause:

NodeLevel, NodeOrder, NodeName

User avatar
Member
Member
bhines-csiinc - 12/21/2012 11:00:24 AM
   
RE:CSS List Menu - Item Sort Order
Thanks for the suggestion! I gave that a try. I added this to the Content Filter > ORDER BY expression field in the web part properties. That would be the spot, right? After applying the change, clearing cache still not seeing a change in the menu.

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 12/21/2012 9:56:47 PM
   
RE:CSS List Menu - Item Sort Order
Are you calling a stored procedure or does your query already have an order by clause in it?

User avatar
Member
Member
kentico_alleng - 12/21/2012 2:05:55 PM
   
RE:CSS List Menu - Item Sort Order

"NodeLevel, NodeOrder, NodeName" should give you the desired order.

I'll send you a direct email from Kentico Support so we can try to determine if this is an issue specific to your installation.

Regards,
Allen