Sitemap sorting/reordering
Is there an option for fast sorting or reording the sitemap before it's bound to the navigation controls? For example, can I list pages alphabetically with a quick setting, or am I forced to do a manual drag/drop or up/down on each individual page on the pages module? Thanks.
Hello Steve,
In order to achieve this you would have to inherit from
Telerik.Sitefinity.Web.SitefinitySiteMap
and override the
public override SiteMapNodeCollection GetChildNodes(SiteMapNode node)
public virtual SiteMapNodeCollection GetChildNodes(SiteMapNode parent, bool ifAccessible)
methods and use some OrderBy expression there. Then you should register the new provider in web.config under system.web -> siteMap -> providers - just replace the default one with yours.