/// <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));
 }
Example #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));
 }
Example #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));
 }
Example #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));
 }
Example #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));
 }
Example #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));
 }
Example #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));
 }
Example #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()));
 }
Example #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()));
 }
Example #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)));
 }
Example #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));
 }
Example #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()));
 }
Example #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));
 }
Example #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));
 }
Example #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));
 }
Example #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));
 }
Example #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));
 }
Example #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));
 }
Example #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));
 }
Example #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));
 }
Example #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));
 }
Example #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));
 }
Example #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()));
 }