Need to create navigation using BetterCMS sitemap with sub level

  1. Avatar of Dada thakur

    In my website, I have sub level or sub nodes which I want to display when parent node is clicked . I need some guidance on how to achieve this task . Right now , I can only display parent nodes.

  2. Avatar of Dada thakur

    I want to create menu like http://jsfiddle.net/La2L8/ displayed in here. I want to display sub nodes or sub level nodes in top menu.

  3. Avatar of Audrunas

    Hello, Dada,

    here is the example, how menu can be retrieved using an API: https://github.com/devbridge/BetterCMS.Demo/blob/master/BetterCms.Demo.Web/Controllers/SitemapController.cs

    In that example using GetSitemapTreeResponse, which has a list of sitemap nodes, and each node has a list of child nodes (property name: Nodes, read more here).

    What you need to do: - The Menu view model should contain the list of child nodes - When mapping and API response to the view model, map children items also - When rendering the menu items, use recursion and render children list also - Use any JavaScript library for supporting multi-levels menus

    There are small hints, everything else depends on you!

    I've created an issue to add an example of submenu in future releases: https://github.com/devbridge/BetterCMS.Demo/issues/18

  4. Avatar of Vinod

    Hello Audrunas I'm using BetterCMS from couple of days. I created demo site but i don't know display navigation menu in header. I created header footer using master page but how to display horizontal navigation menu like Home, About-Us, Contact-Us etc...

    I go through this link but unable to find any solution. Can you provide me better example for displaying menu?

    Thanking you...

  5. Avatar of Vinod

    Hello Audrunas, I'm using BetterCMS from couple of days. I created demo site but i don't know how to display navigation menu in header. I created header footer using master page but how to display horizontal navigation menu bar like Home, About-Us, Contact-Us etc...

    I go through this link. http://www.bettercms.com/documentation/widgets

    But unable to find any solution. Can you provide me better example for displaying menu? Please help asap

    Thanking you...

* Mandatory
* Mandatory
* Mandatory

Verify that you are human