+1-888-365-2779
Try Now
More in this section

Forums / 3.x Pre-release forums (retired) / Custom Menu (restricted view)

Custom Menu (restricted view)

2 posts, 0 answered
  1. Ben Alexandra
    Ben Alexandra avatar
    215 posts
    Registered:
    15 Sep 2012
    23 Jan 2007
    Link to this post
    Hi,

    I need some help with modifying the menu in Sitefinity to only show 2 levels of a menu, and they have to be levels 2 & 3.  Meaning level 1 and >= 4 would be ignored.  I guess I mean that in the following sitemap,:

    1. Home
      • Contact Us
        • Mailing Addresses
        • Support Forum
          • Technical Questions
          • Software Questions
          • General Questions
        • Feedback Forms
      • FAQ
      • Offices
    2. Products
    3. Support
    If you were on the FAQ page, you'd only see
    1. Contact Us
    2. FAQ
    3. Offices
    You would NOT see Home, Products, Support, etc. because that is level 1.

    If you were on Contact Us, you would see the sub-forms, like so:

    • Contact Us
      • Mailing Addresses
      • Support Forum
      • Feedback Forms
    • FAQ
    • Offices
    If you clicked on Support Forums, you would see:

    • Contact Us
      • Mailing Addresses
      • Support Forum
      • Feedback Forms
    • FAQ
    • Offices
    But would NOT see "Technical Questions, etc."

    Does that make any sense?  I need it to act exactly like: http://weleda.de/Koerperpflege which is the site I'm hoping to recreate in Sitefinity.  The first level is at the top (hard coded, or as another custom menu), then levels 2 & 3 on the left side, and other levels are handled via custom controls in the middle of the page.  I can do that custom, but it's the levels 2 & 3 I need to be able to make work and skin.

    Please let me know if you have any suggestion or clear documentation on how to acheive this

    Thanks

    Ben
  2. Bob
    Bob avatar
    330 posts
    Registered:
    24 Sep 2012
    23 Jan 2007
    Link to this post
    Hi Ben,


    You need to wrap RadMenu in a User Control as DataBindings property is not editable in the Sitefinity’s property editor yet. Here is how you should set the data SiteMapDataSource control and RadMenu:

    <asp:SiteMapDataSource ID="SiteMapDataSource1" StartingNodeOffset="-1" StartFromCurrentNode="true" ShowStartingNode="false" runat="server" />
    <radM:RadMenu ID="RadMenu1" DataSourceID="SiteMapDataSource1" runat="server">
        <DataBindings>
            <radM:RadMenuItemBinding Depth="2" />
        </DataBindings>
    </radM:RadMenu>

    It is important to give unique ID for the SiteMapDataSource if you already have one in the page or down the hierarchy (template, master page).

    Best wishes,
    Bob
    the telerik team
2 posts, 0 answered