More in this section

Forums / Developing with Sitefinity / Creating Menus

Creating Menus

5 posts, 0 answered
  1. Dave
    Dave avatar
    76 posts
    Registered:
    10 Mar 2008
    11 Apr 2008
    Link to this post
    Is there a method to creating menu data in Sitefinity?  I see the Lists module, and I'm sure that with the right template it could be used to display a simple menu, but it does not seem to really fit that purpose.  Am I missing something?
  2. Pepi
    Pepi avatar
    981 posts
    Registered:
    31 Jan 2017
    14 Apr 2008
    Link to this post
    Hello Dave,

    Could you please provide some further details on what exactly you want to achieve? What do you mean by "menu"? What kind of information will be displayed?

    If you want to create a navigation menu, you could use some of the Telerik navigation controls - RadMenu, RadPanelbar, RadTreeview. For more information on using the RadControls, see the Telerik RadControls topic in the Developer Manual.

    Thanks for your cooperation in advance.

    Kind regards,
    Pepi
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Dave
    Dave avatar
    76 posts
    Registered:
    10 Mar 2008
    14 Apr 2008
    Link to this post
    Hey Pepi,

    Sorry, I did mean a navigational menu.  Using a RadMenu is what I plan to do, but is there a way to manage the menu's actual data (Title, URL) in Sitefinity and then use the API to bind the data to the RadMenu?
  4. Pepi
    Pepi avatar
    981 posts
    Registered:
    31 Jan 2017
    15 Apr 2008
    Link to this post
    Hello Dave,

    Here is a simple example how to manage SiteMap data:

    .ascx
    <%@ Register Assembly="RadMenu.Net2" Namespace="Telerik.WebControls" TagPrefix="radM"%> 
     
    <radM:RadMenu ID="RadMenu1" runat="server"></radM:RadMenu> 

    .ascx.cs
    protected void Page_Load(object sender, EventArgs e) 
        { 
            foreach (CmsSiteMapNode node1 in SiteMap.RootNode.ChildNodes) 
            { 
                RadMenuItem item = new RadMenuItem(); 
                item.Text = node1.Title; 
                item.NavigateUrl = node1.Url; 
                this.RadMenu1.Items.Add(item); 
            } 
        } 

    Also, you could bind the menu to SiteMapDataSource. For more information how to achieve this, please, investigate ~/Sitefinity/UserControls/Navigation/SiteMenu.ascx control that is shipped with Sitefinity.

    Hope this helps.

    Best wishes,
    Pepi
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  5. Dave
    Dave avatar
    76 posts
    Registered:
    10 Mar 2008
    15 Apr 2008
    Link to this post
    Thanks again Pepi.  Unfortunately I'm looking for something more to manage a menu instead of just bind one.  I'm going to post what I'm looking for in the suggestions forum.  Thanks!
Register for webinar
5 posts, 0 answered