Try Now
More in this section

Forums / Developing with Sitefinity / Pure MVC Sitemap with Navigation Widget and Project Feature

Pure MVC Sitemap with Navigation Widget and Project Feature

1 posts, 0 answered
  1. Jesse
    Jesse avatar
    1 posts
    16 Feb 2015
    16 Nov 2015
    Link to this post

    Hey everyone,

    I looked all over for an example of a Pure MVC Site Map using Sitefinity 8.x with the Project Feature templates, but couldn't find any examples online, so I thought I'd post this. I'm using Sitefinity 8.2, but this should work in 8/8.1 as well. I was glad to see that the Navigation MVC widget came with a Sitemap template. However, I wanted a KendoUI implementation, so I pulled the embedded resources out in the template and slapped a quick call to Kendo TreeView in a script tag.


    Steps to creating a Pure MVC Site Map in Sitefinity 8.x and Kendo UI TreeView:

    1. Download https://github.com/jeryanders/MVC-Site-Map-for-Sitefinity-8.x/blob/master/NavigationView.KendoUISiteMap.cshtml

    2. Download ResourceExtensions.cs from https://github.com/FalafelSoftwareInc/sitefinity-mvc-helper-resources and add it to your project. Compile. This step is required to resolve the KendoAll javascripts from the Telerik.Sitefinity.Resources.dll

    3. Drop the Navigation MVC widget onto your page click Edit.

    4. Drop down the Template menu, and you should see your KendoUISiteMap appear in the menu. Select it. Publish. 

    BAM! It should work like a charm. Project Feature makes this super simple. Let me know if you have any trouble here.




1 posts, 0 answered