Sdl.Web.Tridion/Providers/Navigation/CILImpl/DynamicNavigationProvider.cs
/// <summary>
/// Gets Navigation Links for the top navigation menu for the given request URL path.
/// </summary>
/// <param name="requestUrlPath">The request URL path.</param>
/// <param name="localization">The Localization.</param>
/// <returns>The Navigation Links.</returns>
Gets Navigation Links for the top navigation menu for the given request URL path.
Gets Navigation Links for the top navigation menu for the given request URL path .
public virtual NavigationLinks GetTopNavigationLinks(string requestUrlPath, ILocalization localization)
        {
            using (new Tracer(requestUrlPath, localization))
            {
                SitemapItem rootSitemapItem = GetNavigationModel(localization);
                if (!(rootSitemapItem is TaxonomyNode))
                {
                    return _fallbackNavigationProvider.GetTopNavigationLinks(requestUrlPath, localization);
                }
                return new NavigationLinks
                {
                    Items = rootSitemapItem.Items.Where(i => i.Visible).Select(i => i.CreateLink(localization)).ToList()
                };
            }
        }
public virtual NavigationLinks GetTopNavigationLinks ( string requestUrlPath , ILocalization localization ) { using ( new Tracer ( requestUrlPath , localization ) ) { SitemapItem rootSitemapItem = GetNavigationModel ( localization ) ; if ( ! ( rootSitemapItem is TaxonomyNode ) ) { return _fallbackNavigationProvider . GetTopNavigationLinks ( requestUrlPath , localization ) ; } return new NavigationLinks { Items = rootSitemapItem . Items . Where ( i => i . Visible ) . Select ( i => i . CreateLink ( localization ) ) . ToList ( ) } ; } }
Gets Navigation Links for the top navigation menu for the given request URL path.
Gets Navigation Links for the top navigation menu for the given request URL path .
// No Navigation Taxonomy found in this Localization; fallback to the StaticNavigationProvider.
The Navigation Links.
The Navigation Links .
requestUrlPath
string
The request URL path.
The request URL path .
localization
ILocalization
None