More in this section

Forums / General Discussions / Sitemap sorting/reordering

Sitemap sorting/reordering

2 posts, 0 answered
  1. Susan
    Susan avatar
    14 posts
    Registered:
    08 Oct 2007
    01 Feb 2012
    Link to this post
    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.
  2. Lubomir Velkov
    Lubomir Velkov avatar
    688 posts
    Registered:
    03 Nov 2014
    06 Feb 2012
    Link to this post
    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.

    Regards,
    Lubomir Velkov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered