More in this section

Forums / Developing with Sitefinity / Customising navigation options

Customising navigation options

2 posts, 0 answered
  1. Anthony Smith
    Anthony Smith avatar
    34 posts
    Registered:
    08 Dec 2009
    13 Jan 2010
    Link to this post

    Hi

    I’m looking for a way in which we can create custom navigation, where I can select items from a sitemap and it will dynamically show as part of the site navigation, and pull particular properties assigned to that page (i.e. name, url, page title, etc).

     

    For example I create a product page called Product A and I would like to create a navigation that links to recommended products (i.e. Product B, Product C and Product E, but not Product D), which we could select as part of pages to display in the recommended products navigation (whereas all products would appear in the main site navigation).

     

    In addition to defining which pages should and shouldn’t be displayed, I would like the functionality of having the option to select the number of items that are displayed as well as the number of child levels.

     

    Is this possible within SF at present? If not what would be the best approach to tackle this?

     

    Thanks

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    14 Jan 2010
    Link to this post
    Hello Anthony Smith,

    You can create a navigation control - you can use RadMenu ( or another appropriate for your needs control). Then you need to bind the control to SiteMapDataSource and  on ItemDataBound you can show how many RadMenuItems will be shown. You can create an isntase of CmsSiteMapNode and cast it to ICmsPage, so that you will be bale to access ICms object properties as Title, MenuName etc
    You can expose several public properties that you will be able to set through the control designer and control the child visibility.

    Kind regards,
    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