/// <summary>
 /// Build a sitemap tree, based on the MvcSiteMap
 /// </summary>
 /// <param name="helper">The helper.</param>
 /// <param name="sourceMetadata">User-defined meta data.</param>
 /// <returns>Html markup</returns>
 public static MvcHtmlString SiteMap(this MvcSiteMapHtmlHelper helper, object sourceMetadata)
 {
     return(SiteMap(helper, helper.SiteMap.RootNode, sourceMetadata));
 }
Пример #2
0
 /// <summary>
 /// Build a sitemap tree, based on the MvcSiteMap
 /// </summary>
 /// <param name="helper">The helper.</param>
 /// <param name="templateName">Name of the template.</param>
 /// <param name="startingNode">The starting node.</param>
 /// <returns>Html markup</returns>
 public static MvcHtmlString SiteMap(this MvcSiteMapHtmlHelper helper, string templateName, ISiteMapNode startingNode)
 {
     return(SiteMap(helper, templateName, startingNode, false));
 }
Пример #3
0
 /// <summary>
 /// Build a sitemap tree, based on the MvcSiteMap
 /// </summary>
 /// <param name="helper">The helper.</param>
 /// <param name="templateName">Name of the template.</param>
 /// <param name="startingNode">The starting node.</param>
 /// <param name="sourceMetadata">User-defined meta data.</param>
 /// <returns>Html markup</returns>
 public static MvcHtmlString SiteMap(this MvcSiteMapHtmlHelper helper, string templateName, ISiteMapNode startingNode, SourceMetadataDictionary sourceMetadata)
 {
     return(SiteMap(helper, templateName, startingNode, false, sourceMetadata));
 }
Пример #4
0
 /// <summary>
 /// Build a sitemap tree, based on the MvcSiteMap
 /// </summary>
 /// <param name="helper">The helper.</param>
 /// <param name="startingNode">The starting node.</param>
 /// <param name="rootInChildLevel">Renders startingNode in child level if set to <c>true</c>.</param>
 /// <returns>Html markup</returns>
 public static MvcHtmlString SiteMap(this MvcSiteMapHtmlHelper helper, ISiteMapNode startingNode, bool rootInChildLevel)
 {
     return(SiteMap(helper, null, startingNode, rootInChildLevel));
 }
Пример #5
0
 /// <summary>
 /// Build a sitemap tree, based on the MvcSiteMap
 /// </summary>
 /// <param name="helper">The helper.</param>
 /// <param name="templateName">Name of the template.</param>
 /// <returns>Html markup</returns>
 public static MvcHtmlString SiteMap(this MvcSiteMapHtmlHelper helper, string templateName)
 {
     return(SiteMap(helper, templateName, helper.SiteMap.RootNode));
 }
Пример #6
0
 /// <summary>
 /// Build a sitemap tree, based on the MvcSiteMap
 /// </summary>
 /// <param name="helper">The helper.</param>
 /// <param name="rootInChildLevel">Renders startingNode in child level if set to <c>true</c>.</param>
 /// <returns>Html markup</returns>
 public static MvcHtmlString SiteMap(this MvcSiteMapHtmlHelper helper, bool rootInChildLevel)
 {
     return(SiteMap(helper, helper.Provider.RootNode, rootInChildLevel));
 }
Пример #7
0
 /// <summary>
 /// Gets the CanonicalUrl of SiteMap.CurrentNode
 /// </summary>
 /// <param name="helper">MvcSiteMapHtmlHelper instance</param>
 /// <param name="templateName">Name of the template.</param>
 /// <param name="sourceMetadata">User-defined meta data.</param>
 /// <returns>The CanonicalUrl of the CurrentNode or the RootNode (if CurrentNode is null)</returns>
 public static MvcHtmlString CanonicalTag(this MvcSiteMapHtmlHelper helper, string templateName, object sourceMetadata)
 {
     return(CanonicalTag(helper, templateName, new SourceMetadataDictionary(sourceMetadata)));
 }
 /// <summary>
 /// Gets the title of SiteMap.CurrentNode
 /// </summary>
 /// <param name="helper">MvcSiteMapHtmlHelper instance</param>
 /// <returns>
 /// The title of the CurrentNode or the RootNode (if CurrentNode is null)
 /// </returns>
 public static MvcHtmlString SiteMapTitle(this MvcSiteMapHtmlHelper helper)
 {
     return(SiteMapTitle(helper, null));
 }
Пример #9
0
 /// <summary>
 /// Gets SiteMap path for the current request
 /// </summary>
 /// <param name="helper">MvcSiteMapHtmlHelper instance</param>
 /// <param name="templateName">Name of the template.</param>
 /// <param name="startingNodeKey">The key of the starting node (the last node in the site map path).</param>
 /// <returns>SiteMap path for the current request</returns>
 public static MvcHtmlString SiteMapPath(this MvcSiteMapHtmlHelper helper, string templateName, string startingNodeKey)
 {
     return(SiteMapPath(helper, templateName, startingNodeKey, new SourceMetadataDictionary()));
 }
Пример #10
0
 /// <summary>
 /// Gets the description of SiteMap.CurrentNode
 /// </summary>
 /// <param name="helper">MvcSiteMapHtmlHelper instance</param>
 /// <returns>The description of the CurrentNode or the RootNode (if CurrentNode is null)</returns>
 public static MvcHtmlString SiteMapDescription(this MvcSiteMapHtmlHelper helper)
 {
     return(SiteMapDescription(helper, null, new SourceMetadataDictionary()));
 }
Пример #11
0
 /// <summary>
 /// Gets the description of SiteMap.CurrentNode
 /// </summary>
 /// <param name="helper">MvcSiteMapHtmlHelper instance</param>
 /// <param name="templateName">Name of the template.</param>
 /// <param name="sourceMetadata">User-defined meta data.</param>
 /// <returns>The description of the CurrentNode or the RootNode (if CurrentNode is null)</returns>
 public static MvcHtmlString SiteMapDescription(this MvcSiteMapHtmlHelper helper, string templateName, object sourceMetadata)
 {
     return(SiteMapDescription(helper, templateName, new SourceMetadataDictionary(sourceMetadata)));
 }
Пример #12
0
 /// <summary>
 /// Gets the description of SiteMap.CurrentNode
 /// </summary>
 /// <param name="helper">MvcSiteMapHtmlHelper instance</param>
 /// <param name="sourceMetadata">User-defined meta data.</param>
 /// <returns>The description of the CurrentNode or the RootNode (if CurrentNode is null)</returns>
 public static MvcHtmlString SiteMapDescriptionTag(this MvcSiteMapHtmlHelper helper, object sourceMetadata)
 {
     return(SiteMapDescriptionTag(helper, null, sourceMetadata));
 }
 /// <summary>
 /// Build a sitemap tree, based on the MvcSiteMap
 /// </summary>
 /// <param name="helper">The helper.</param>
 /// <param name="startingNode">The starting node.</param>
 /// <param name="sourceMetadata">User-defined meta data.</param>
 /// <returns>Html markup</returns>
 public static MvcHtmlString SiteMap(this MvcSiteMapHtmlHelper helper, ISiteMapNode startingNode, object sourceMetadata)
 {
     return(SiteMap(helper, startingNode, false, sourceMetadata));
 }
 /// <summary>
 /// Build a sitemap tree, based on the MvcSiteMap
 /// </summary>
 /// <param name="helper">The helper.</param>
 /// <param name="templateName">Name of the template.</param>
 /// <param name="startingNode">The starting node.</param>
 /// <param name="rootInChildLevel">Renders startingNode in child level if set to <c>true</c>.</param>
 /// <param name="sourceMetadata">User-defined meta data.</param>
 /// <returns>Html markup</returns>
 public static MvcHtmlString SiteMap(this MvcSiteMapHtmlHelper helper, string templateName, ISiteMapNode startingNode, bool rootInChildLevel, bool visibilityAffectsDescendants, object sourceMetadata)
 {
     return(SiteMap(helper, templateName, startingNode, rootInChildLevel, visibilityAffectsDescendants, new SourceMetadataDictionary(sourceMetadata)));
 }
 /// <summary>
 /// Gets the title of SiteMap.CurrentNode
 /// </summary>
 /// <param name="helper">MvcSiteMapHtmlHelper instance</param>
 /// <param name="sourceMetadata">User-defined meta data.</param>
 /// <returns>The title of the CurrentNode or the RootNode (if CurrentNode is null)</returns>
 public static MvcHtmlString SiteMapTitle(this MvcSiteMapHtmlHelper helper, SourceMetadataDictionary sourceMetadata)
 {
     return(SiteMapTitle(helper, null, sourceMetadata));
 }
Пример #16
0
 /// <summary>
 /// Gets SiteMap path for the current request
 /// </summary>
 /// <param name="helper">MvcSiteMapHtmlHelper instance</param>
 /// <param name="templateName">Name of the template.</param>
 /// <param name="startingNodeKey">The key of the starting node (the last node in the site map path).</param>
 /// <param name="sourceMetadata">User-defined meta data.</param>
 /// <returns>SiteMap path for the current request</returns>
 public static MvcHtmlString SiteMapPath(this MvcSiteMapHtmlHelper helper, string templateName, ISiteMapNode startingNode, object sourceMetadata)
 {
     return(SiteMapPath(helper, templateName, startingNode, new SourceMetadataDictionary(sourceMetadata)));
 }
 /// <summary>
 /// Gets the title of SiteMap.CurrentNode
 /// </summary>
 /// <param name="helper">MvcSiteMapHtmlHelper instance</param>
 /// <param name="templateName">Name of the template.</param>
 /// <returns>The title of the CurrentNode or the RootNode (if CurrentNode is null)</returns>
 public static MvcHtmlString SiteMapTitle(this MvcSiteMapHtmlHelper helper, string templateName)
 {
     return(SiteMapTitle(helper, templateName, new SourceMetadataDictionary()));
 }
Пример #18
0
 /// <summary>
 /// Gets SiteMap path for the current request
 /// </summary>
 /// <param name="helper">MvcSiteMapHtmlHelper instance</param>
 /// <returns>SiteMap path for the current request</returns>
 public static MvcHtmlString SiteMapPath(this MvcSiteMapHtmlHelper helper)
 {
     return(SiteMapPath(helper, null, string.Empty));
 }
Пример #19
0
 /// <summary>
 /// Gets the CanonicalUrl of SiteMap.CurrentNode
 /// </summary>
 /// <param name="helper">MvcSiteMapHtmlHelper instance</param>
 /// <param name="sourceMetadata">User-defined meta data.</param>
 /// <returns>The CanonicalUrl of the CurrentNode or the RootNode (if CurrentNode is null)</returns>
 public static MvcHtmlString CanonicalTag(this MvcSiteMapHtmlHelper helper, SourceMetadataDictionary sourceMetadata)
 {
     return(CanonicalTag(helper, null, sourceMetadata));
 }
Пример #20
0
 /// <summary>
 /// Gets SiteMap path for the current request
 /// </summary>
 /// <param name="helper">MvcSiteMapHtmlHelper instance</param>
 /// <param name="templateName">Name of the template.</param>
 /// <param name="startingNodeKey">The starting node (the last node in the site map path).</param>
 /// <returns>SiteMap path for the current request</returns>
 public static MvcHtmlString SiteMapPath(this MvcSiteMapHtmlHelper helper, ISiteMapNode startingNode)
 {
     return(SiteMapPath(helper, null, startingNode));
 }
Пример #21
0
 /// <summary>
 /// Build a sitemap tree, based on the MvcSiteMap
 /// </summary>
 /// <param name="helper">The helper.</param>
 /// <param name="rootInChildLevel">Renders startingNode in child level if set to <c>true</c>.</param>
 /// <param name="sourceMetadata">User-defined meta data.</param>
 /// <returns>Html markup</returns>
 public static MvcHtmlString SiteMap(this MvcSiteMapHtmlHelper helper, bool rootInChildLevel, SourceMetadataDictionary sourceMetadata)
 {
     return(SiteMap(helper, helper.SiteMap.RootNode, rootInChildLevel, sourceMetadata));
 }
Пример #22
0
 /// <summary>
 /// Gets SiteMap path for the current request
 /// </summary>
 /// <param name="helper">MvcSiteMapHtmlHelper instance</param>
 /// <param name="sourceMetadata">User-defined meta data.</param>
 /// <returns>SiteMap path for the current request</returns>
 public static MvcHtmlString SiteMapPath(this MvcSiteMapHtmlHelper helper, object sourceMetadata)
 {
     return(SiteMapPath(helper, null, string.Empty, sourceMetadata));
 }
Пример #23
0
 /// <summary>
 /// Build a sitemap tree, based on the MvcSiteMap
 /// </summary>
 /// <param name="helper">The helper.</param>
 /// <param name="startingNode">The starting node.</param>
 /// <param name="rootInChildLevel">Renders startingNode in child level if set to <c>true</c>.</param>
 /// <param name="sourceMetadata">User-defined meta data.</param>
 /// <returns>Html markup</returns>
 public static MvcHtmlString SiteMap(this MvcSiteMapHtmlHelper helper, ISiteMapNode startingNode, bool rootInChildLevel, SourceMetadataDictionary sourceMetadata)
 {
     return(SiteMap(helper, null, startingNode, rootInChildLevel, sourceMetadata));
 }
Пример #24
0
 /// <summary>
 /// Gets SiteMap path for the current request
 /// </summary>
 /// <param name="helper">MvcSiteMapHtmlHelper instance</param>
 /// <param name="templateName">Name of the template.</param>
 /// <returns>SiteMap path for the current request</returns>
 public static MvcHtmlString SiteMapPath(this MvcSiteMapHtmlHelper helper, string templateName)
 {
     return(SiteMapPath(helper, templateName, string.Empty));
 }
Пример #25
0
 /// <summary>
 /// Build a sitemap tree, based on the MvcSiteMap
 /// </summary>
 /// <param name="helper">The helper.</param>
 /// <param name="templateName">Name of the template.</param>
 /// <param name="sourceMetadata">User-defined meta data.</param>
 /// <returns>Html markup</returns>
 public static MvcHtmlString SiteMap(this MvcSiteMapHtmlHelper helper, string templateName, SourceMetadataDictionary sourceMetadata)
 {
     return(SiteMap(helper, templateName, helper.SiteMap.RootNode, sourceMetadata));
 }
Пример #26
0
 /// <summary>
 /// Gets SiteMap path for the current request
 /// </summary>
 /// <param name="helper">MvcSiteMapHtmlHelper instance</param>
 /// <param name="templateName">Name of the template.</param>
 /// <returns>SiteMap path for the current request</returns>
 public static MvcHtmlString SiteMapPath(this MvcSiteMapHtmlHelper helper, string templateName, SourceMetadataDictionary sourceMetadata)
 {
     return(SiteMapPath(helper, templateName, string.Empty, sourceMetadata));
 }
Пример #27
0
 /// <summary>
 /// Build a sitemap tree, based on the MvcSiteMap
 /// </summary>
 /// <param name="helper">The helper.</param>
 /// <returns>Html markup</returns>
 public static MvcHtmlString SiteMap(this MvcSiteMapHtmlHelper helper)
 {
     return(SiteMap(helper, helper.SiteMap.RootNode));
 }
 /// <summary>
 /// Gets the title of SiteMap.CurrentNode
 /// </summary>
 /// <param name="helper">MvcSiteMapHtmlHelper instance</param>
 /// <param name="sourceMetadata">User-defined meta data.</param>
 /// <returns>The title of the CurrentNode or the RootNode (if CurrentNode is null)</returns>
 public static MvcHtmlString SiteMapTitle(this MvcSiteMapHtmlHelper helper, object sourceMetadata)
 {
     return(SiteMapTitle(helper, null, sourceMetadata));
 }
Пример #29
0
 /// <summary>
 /// Build a sitemap tree, based on the MvcSiteMap
 /// </summary>
 /// <param name="helper">The helper.</param>
 /// <param name="templateName">Name of the template.</param>
 /// <param name="rootInChildLevel">Renders startingNode in child level if set to <c>true</c>.</param>
 /// <returns>Html markup</returns>
 public static MvcHtmlString SiteMap(this MvcSiteMapHtmlHelper helper, string templateName, bool rootInChildLevel)
 {
     return(SiteMap(helper, templateName, helper.SiteMap.RootNode, rootInChildLevel));
 }
 /// <summary>
 /// Build a sitemap tree, based on the MvcSiteMap
 /// </summary>
 /// <param name="helper">The helper.</param>
 /// <param name="templateName">Name of the template.</param>
 /// <param name="startingNode">The starting node.</param>
 /// <param name="rootInChildLevel">Renders startingNode in child level if set to <c>true</c>.</param>
 /// <returns>Html markup</returns>
 public static MvcHtmlString SiteMap(this MvcSiteMapHtmlHelper helper, string templateName, ISiteMapNode startingNode, bool rootInChildLevel)
 {
     return(SiteMap(helper, templateName, startingNode, rootInChildLevel, new SourceMetadataDictionary()));
 }