ASPX templates
Version 4.x > ASPX templates > Tree node ordering View modes: 
User avatar
Member
Member
Polypod_Chad - 3/20/2009 11:12:42 AM
   
Tree node ordering
Hi All,

I have a not so great situation where I need to store the tree node order based on culture which goes against the current design of the CMS.

I noticed I can use TreeNodeHandler for all the operations on a node and write to a custom table to store this ordering, however i need to override the retrival of the tree. CMS.TreeEngine.TreeProvider appears to be the class to work with but i'm only just getting an idea of the code design.

Has anyone encountered this problem? Is there any way to do this without modifying the core source code?


thanks

Chad

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 3/26/2009 4:52:05 AM
   
RE:Tree node ordering
Hi,

You can use the Order By option. You will need to get the current culture e.g. using CMS.CMSHelper.CMSContext.CurrentDocumentCulture and then, according to the culture, you can decide which Order By will be used to order the nodes.
I hope it makes sense.

Best Regards,
Juraj Ondrus