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

Forums / Designing with Sitefinity / Site Menu Customizing

Site Menu Customizing

4 posts, 0 answered
  1. Femy
    Femy avatar
    37 posts
    Registered:
    02 Jan 2008
    04 Oct 2008
    Link to this post
    Hi

    I used SiteMenu for our sites Main Nav. Couple of things I am looking at:
    1) How do I disable tertiary navigation in the SiteMenu. I have a left nav in the site where I want the secondary and tertiary levels and the main nav to have ONLY the secondary level.
    2)  Under the main nav Items, I want to have a small Text area and the contents in the Text area to come from a separate Sitefinity Generic Content. A sample is shown below

    Learn
       ---What does the product do?
       ---Sub1
       ---Sub 2
    Use
       ---How can I use the product?
       ---Sub1
       ---Sub2   
    Order
       ---How can I purchase the product?
       ---Sub1
       ---Sub2

    and so forth

    Any ideas on how I can accomplish this. I am a front-end developer, so if this requires more back-end coding, pls provide details.

    TIA
    FR


  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    06 Oct 2008
    Link to this post
    Hello Femy,

    Could you elaborate a bit more about your scenario in point 1 and 2 and provide us with any example if possible.

    If you want to deny third level items you could use StartingNodeOffset property. Its default value is 0, which indicates that the root hierarchy exposed by the SiteMapDataSource is the same as the starting node. If the StartingNodeOffset property is set to a value other than 0, it affects the starting node and with it the site map data hierarchy that is exposed by the SiteMapDataSource control.
    You can take a look at RadMenu OverView to gather more information about its functionality.

    As for your second question please take a look at Sitefinity's DeveloperManual GenericContent

    Sincerely yours,
    Author nickname
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. Femy
    Femy avatar
    37 posts
    Registered:
    02 Jan 2008
    09 Oct 2008
    Link to this post
    OK I have three Items in my Main Menu (Using SiteMenu control for this)
    1) Learn
    2) Use
    3) Research

    Under each Main Menu Item, there are, lets assume three sub menu Items(based on the sitemap in the site) so when you hover on "Learn", you have the drop down menu with the three sub items
    1)Learn
    ----Sub1
    ----Sub2
    ----Sub3

    In the drop down that appears when u hover on each main nav item, just above the first item "Sub1", I want to have a sort of message area with a single line text. The content in the message area comes from a generic content programmatically.

    1)Learn
    ---Here you can learn more about how to use?
    ----Sub1
    ----Sub2
    ----Sub3

    So my question is 1)how can i get the message area under the main nav that is created with SiteMenu
    2)How do I get the content in the message area -the text "Here you can learn more about how to use?" come from a generic content block created in the modules
    Pls advice

  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    11 Oct 2008
    Link to this post
    Hello Femy,

    Thank you for getting back to us.

    To achieve the desired functionality you need to bind RadMenu(SiteMenu) to a DataSource. Check out the following link and choose the appropriate way for you Data Binding Overview. Then, you should create an instance of ContentManager class and use GetContent() method to returns the content.

    ContentManager manager = new ContentManager(); 
    manager.GetContent(id); 

    Hope this helps.

    Kind regards,
    Ivan Dimitrov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Register for webinar
4 posts, 0 answered