Try Now
More in this section

Forums / Designing with Sitefinity / Starting URL for menu

Starting URL for menu

2 posts, 0 answered
  1. Jason
    Jason avatar
    23 posts
    17 Jun 2009
    05 Oct 2009
    Link to this post
    I am having a bit of a headache trying to create a starting url for the menubar.  the menu doesn't display on the homepage but will on all the others - but only with details relevant to the particular parent/child it's on.  I started by adding the menu to each page and setting the starting url as required, but i need to change it so the customer can drag and drop as required when they add new pages.  how do i change the ascx code to do this.  i am relatively new to sitefinity.
    thanks for your help, much appreciated.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    12 Sep 2017
    05 Oct 2009
    Link to this post
    Hello Jason,

    1. You can add the control to your template which will ensure that the control will be on each page.

    2. Generally you can modify StartingNodeUrl property of SiteMenu control ( control is located under Sitefinity/UserControls/Navigation35/) as shown below. By doing so we are setting default value (~/test.aspx) until somewhane change the property manuall through the UrlEditorWrapper

     [WebEditor("Telerik.Cms.Web.UI.UrlEditorWrapper, Telerik.Cms")] 
        public string StartingNodeUrl 
                if (SiteMapDataSource1.StartingNodeUrl == string.Empty) 
                    return "~/test.aspx"
                return this.SiteMapDataSource1.StartingNodeUrl; 
                this.SiteMapDataSource1.StartingNodeUrl = value; 

    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
2 posts, 0 answered