C# Class Sdl.Web.Tridion.Navigation.StaticNavigationProvider

Navigation Provider implementation based on statically generated (published) Navigation.json
Inheritance: INavigationProvider
Exibir arquivo Open project: sdl/dxa-web-application-dotnet

Public Methods

Method Description
GetBreadcrumbNavigationLinks ( string requestUrlPath, Sdl.Web.Common.Configuration.Localization localization ) : NavigationLinks

Gets Navigation Links for the breadcrumb trail for the given request URL path.

GetContextNavigationLinks ( string requestUrlPath, Sdl.Web.Common.Configuration.Localization localization ) : NavigationLinks

Gets Navigation Links for the context navigation panel for the given request URL path.

GetNavigationModel ( Sdl.Web.Common.Configuration.Localization localization ) : SitemapItem

Gets the Navigation Model (Sitemap) for a given Localization.

GetTopNavigationLinks ( string requestUrlPath, Sdl.Web.Common.Configuration.Localization localization ) : NavigationLinks

Gets Navigation Links for the top navigation menu for the given request URL path.

Private Methods

Method Description
BuildNavigationModel ( Sdl.Web.Common.Configuration.Localization localization ) : SitemapItem
RewriteIndexPage ( SitemapItem sitemapItem, SitemapItem parentSitemapItem ) : SitemapItem

Method Details

GetBreadcrumbNavigationLinks() public method

Gets Navigation Links for the breadcrumb trail for the given request URL path.
public GetBreadcrumbNavigationLinks ( string requestUrlPath, Sdl.Web.Common.Configuration.Localization localization ) : NavigationLinks
requestUrlPath string The request URL path.
localization Sdl.Web.Common.Configuration.Localization The Localization.
return Sdl.Web.Common.Models.NavigationLinks

GetContextNavigationLinks() public method

Gets Navigation Links for the context navigation panel for the given request URL path.
public GetContextNavigationLinks ( string requestUrlPath, Sdl.Web.Common.Configuration.Localization localization ) : NavigationLinks
requestUrlPath string The request URL path.
localization Sdl.Web.Common.Configuration.Localization The Localization.
return Sdl.Web.Common.Models.NavigationLinks

GetNavigationModel() public method

Gets the Navigation Model (Sitemap) for a given Localization.
public GetNavigationModel ( Sdl.Web.Common.Configuration.Localization localization ) : SitemapItem
localization Sdl.Web.Common.Configuration.Localization The Localization.
return Sdl.Web.Common.Models.SitemapItem

GetTopNavigationLinks() public method

Gets Navigation Links for the top navigation menu for the given request URL path.
public GetTopNavigationLinks ( string requestUrlPath, Sdl.Web.Common.Configuration.Localization localization ) : NavigationLinks
requestUrlPath string The request URL path.
localization Sdl.Web.Common.Configuration.Localization The Localization.
return Sdl.Web.Common.Models.NavigationLinks