Overview
DJME 2 Navigation extensions can be bind to Xml, SiteMap file and custom data object model.
Binding to XML
-
Bind(string xmlUri)
-
Bind(string xmlUri,MapAction
mapper)
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
e.g:
store.xml
Binding to SiteMap
-
BindSiteMap(string siteMapUri)
-
BindSiteMap(string siteMapUri,string selectPath)
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
- Bind
(IHierarchicalEnumerable model, MapAction mapper)
-
-
읽기(1630)
-
블로그 바로 가기