Constellation.Feature.Navigation 10.0.3.24791

Compatible with Sitecore 10.0
Requires Sitecore 10.0
Requires .NET Framework 4.8

Constellation is a collection of utilities for .NET CMS implementers.
The Feature.Navigation library addresses the three most common forms of Navigation on Sitecore sites:

Declared (static) Navigation: (explicitly defined, may differ from the shape of the content tree)

- DeclaredNavigationRepository.GetNavigation - Accepts a Navigation Menu item and assembles a full tree-like ViewModel for immediate processing in your View. If you need context highlighting in your navigation, be sure to pass in the Context Item as well.

When using NavigationLink objects, there are usually several opportunities to supply the text of a given link. NavigationLink.GetBestLinkText() evaluates all of them and attempts to
supply the best fit. The strategy is based on overriding the concept of "name". Here are the rules:
- If Use This Display Name is checked on the NavigationLink item, it wins.
- If the Link.Text is supplied by the user, it wins.
- If the Link.TargetItem exists and inherits from Page Navigation Title, and the field value is not null, it wins.
- If the Link.TargetItem exists its DisplayName is used.
- Assuming all other things are not true, use the NavigationLink's DisplayName. Note that in this condition if you intended to point to a Sitecore Item, you have a bad link.

Branch (Context) Navigation: (implicitly defined. It follows the shape of the Content Tree)

- BranchNavigationRepository.GetNavigation - Accepts the request Context Item (should be a Page) and generates a tree of BranchNodes representing
the nearest LandingPage, its children, as well as the descendants of any children that are Ancestors of the Context Item. (will also create Children for the Context Item node
in the tree). Use this to produce the expanded navigation seen on many sites with deep content.

Breadcrumbs: (implicitly defined. It walks up the Content Tree to get the path)

- BreadcrumbNavigationRepository.GetNavigation - Accepts the request Context Item and Context SiteInfo. Generates an array of Breadcrumb models you can enumerate on your View.
The breadcrumbs will start on your Site's StartItem and end with the supplied Context Item, which will be marked IsContextItem so you can change your rendering behavior.
Uses the Item.Axes.GetAncestors() method to generate the list of breadcrumbs.

The included package must be installed to use this library. This should happen automatically after you build and deploy your project.

Install-Package Constellation.Feature.Navigation -Version 10.0.3.24791
dotnet add package Constellation.Feature.Navigation --version 10.0.3.24791
<PackageReference Include="Constellation.Feature.Navigation" Version="10.0.3.24791" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Constellation.Feature.Navigation --version 10.0.3.24791
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Constellation.Feature.Navigation, 10.0.3.24791"
For F# scripts that support #r syntax, copy this into the source code to reference the package.

Release Notes

Fixed a bug where Item.GetUrl() would not respect the context settings for LinkManager

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
10.0.3.24791 217 11/20/2020
10.0.2.28531 158 8/19/2020
10.0.2.22966 174 8/19/2020
10.0.1.28589 155 8/5/2020
10.0.0.23819 188 8/4/2020
9.3.0.19127 179 7/27/2020
9.1.11.25113 202 3/27/2020
9.1.10.23104 319 12/20/2019
9.1.9.19228 228 12/10/2019
9.1.8.16491 319 6/4/2019
9.1.7.32436 258 6/3/2019
9.1.6.28509 263 6/3/2019
9.1.5.19058 246 5/29/2019
9.1.4.28540 261 4/11/2019
9.1.3.28058 303 3/6/2019
9.1.2.17734 322 2/1/2019
9.1.1.23791 397 12/11/2018
9.1.0.23931 398 12/7/2018
9.1.0.22346 381 12/7/2018
9.0.26.21596 365 11/8/2018
9.0.25.29414 362 10/25/2018
9.0.24.18052 384 10/23/2018
9.0.23.21057 392 10/22/2018
9.0.22.27125 370 10/19/2018
9.0.22.19031 365 10/19/2018
9.0.21.25109 359 10/18/2018
9.0.21.20919 359 10/18/2018
9.0.21.17503 366 10/18/2018
9.0.20.26607 401 10/17/2018
9.0.19.27110 376 10/16/2018
9.0.19.26217 370 10/16/2018
9.0.19.24819 383 10/16/2018
9.0.18.24102 392 10/16/2018
9.0.17.26056 415 10/4/2018
9.0.16.28051 650 7/3/2018
9.0.15.27526 537 5/30/2018
9.0.14.26746 543 5/25/2018
9.0.13.20846 645 2/12/2018
9.0.12.25153 558 1/12/2018
9.0.11.16660 502 1/12/2018
9.0.10.23413 497 1/11/2018
9.0.9.22148 498 1/10/2018
9.0.8.18398 520 1/10/2018
9.0.7.23564 502 1/8/2018
9.0.6.29308 535 12/13/2017
9.0.6.28247 503 12/13/2017
9.0.5.21024 547 12/11/2017
9.0.4.18541 533 12/8/2017
9.0.3.28990 536 12/6/2017
9.0.3.24970 552 12/6/2017
9.0.3.23077 578 12/6/2017
9.0.2.28961 501 12/5/2017
9.0.2.25631 481 12/5/2017
9.0.1.28875 467 12/4/2017
9.0.1.28146 480 12/3/2017
9.0.1.27507 461 12/3/2017
9.0.0.22758 450 12/3/2017
9.0.0.21988 459 12/3/2017