More in this section

Forums / General Discussions / Simple Sub Menu

Simple Sub Menu

2 posts, 0 answered
  1. Chris
    Chris avatar
    1 posts
    Registered:
    18 Dec 2011
    17 Jan 2012
    Link to this post
    I can't find an easy solution to my sub menu problem.

    I have the following Site map
    - Home
    - Page 1
    - - Sub Page 1
    - - Sub Page 2
    - - - Sub Sub Page 1
    - - - Sub Sub Page 2
    - Page 2
    - Page 3

    When on Page 1 the sub menu should be like this:
    - - Sub Page 1
    - - Sub Page 2

    When on Page 1 / Sub Page 2 the sub menu should be like this:
    - - Sub Page 1
    - - Sub Page 2
    - - - Sub Sub Page 1
    - - - Sub Sub Page 2

    I'm trying to avoid javascript too.

    Thanks
    Regards,
    Chris
  2. Jen Peleva
    Jen Peleva avatar
    568 posts
    Registered:
    10 Nov 2016
    20 Jan 2012
    Link to this post
    Hi Chris,

    For your navigation model you will need two templates - one for first level pages and another one for second level pages. On the first level pages template you should put a vertical navigation, configured to display pages, under currently open page (FirstLevelPage.jpg). The second template should have a vertical navigation as well, set to show sibling pages of currently open page. Since the vertical navigation doesn't display multiple page levels, you will need to set a template to add this functionality to it. I've attached a template with RadTreeView. All you have to do is add it to the folder structure of your project and write the path to it in the Designer of your vertical navigation (SecondLevelPage.jpg) under Design Settings ->Custom template path.

    Greetings,
    Jen Peleva
    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