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