Class XmlNavigation
- Namespace
- Dynamicweb.Frontend
- Assembly
- Dynamicweb.dll
Represents the navigation object used to generate the xml for navigations
- Inheritance
-
Xml
Navigation
- Inherited Members
Constructors
XmlNavigation()
Initializes a new instance of the Xml
XmlNavigation(PageView)
Initializes a new instance of the Xml
Parameters
pageView
PageView The pageview object.
XmlNavigation(PageView, string)
Initializes a new instance of the Xml
Parameters
Properties
AbsolutePath
Gets or sets a value indicating whether the urls inlcudes the protocol and hostname.
Property Value
- bool
true
if paths are absolute; otherwise,false
.
AreaID
Gets or sets the area ID.
Property Value
- int
The area ID.
Include
Gets or sets the include mode. Defines if a pages Include, ShowInLegend and ShowInSitemap are taken into consideration when including nodes in the XML
Property Value
- Xml
Navigation .IncludeMode The include mode. Default is 'Default' :-).
LayoutNavigationAttributes
Gets or sets the layout navigation attributes. The navigation attributes is a collection of the attributes set on a UL navigation node in layout templates, and are added to the navigation XML in the NavigationTree/Settings/LayoutNavigationAttributes node with each attribute from the UL as an attribute with value in the XML.
Property Value
- Name
Value Collection The layout navigation attributes.
LayoutNavigationSettings
Gets or sets the layout navigation settings. The navigation settings is a collection of the settings set on a UL navigation node in layout templates, and are added to the navigation XML in the NavigationTree/Settings/LayoutNavigationSettings node with each setting as an attribute with value.
Property Value
- Name
Value Collection The layout navigation settings as a setting/value colletion.
NavigationName
Gets or sets the name of the navigation.
Property Value
- string
The name of the navigation.
Sitemap
Gets or sets a value indicating whether this Xml
Property Value
- bool
true
if sitemap; otherwise,false
.
StartLevel
Property Value
StopLevel
Property Value
UrlEncode
Gets or sets a value indicating whether the names in the urls should be Dynamicweb.Context.Current.Server.UrlPathEncoded.
Property Value
- bool
true
if URL encode; otherwise,false
.
XmlDocument
Gets or sets the XML doc.
Property Value
- Xml
Document The XML doc.
Methods
GetCustomNavigationProviders()
Returns Custom Navigation Providers Types List
Returns
GetNavigationHtml(NameValueCollection, NameValueCollection)
public static string GetNavigationHtml(NameValueCollection settings, NameValueCollection attributes)
Parameters
settings
NameValue Collection attributes
NameValue Collection
Returns
MakeHrefs(ref string, ref string, Page, string[]?)
Parameters
MakeXml(int, int, int, Expand, int)
Returns a Xml
public XmlDocument MakeXml(int parentId, int levelStart, int levelStop, XmlNavigation.Expand expand, int selectedAreaId = 0)
Parameters
parentId
intThe parent page ID.
levelStart
intThe absolute start level.
levelStop
intThe absolute stop level.
expand
XmlNavigation .ExpandThe expand mode to use.
selectedAreaId
int
Returns
- Xml
Document a XmlDocument