DJME2 - DataBinding of Navigation extensions


Overview

DJME 2 Navigation extensions can be bind to Xml, SiteMap file and custom data object model.

Binding to XML

Binding to default Xml format:

When using the Bind(string xmlUri) method to binding Xml data the Xml format must be like below:

Binding to custom Xml format:

use the Bind(string xmlUri,MapAction mapper) to bind the custom xml format:

e.g:

store.xml

 

Binding to SiteMap

BindSiteMap allows you bind the ASP.NET sitemap file to navigation extensions.

There are some enhance of the sitemap file, in order to generate url for MVC you could add “action”,”controller” attribute in sitemapNode element.

e.g:

 

Binding to Data model

Chia sẻ: