VERSION 9.1 is compiled for Sitecore 9.1 use and will not work on earlier versions.
Requires Sitecore 9.1
Requires .NET 4.7.1

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
dotnet add package Constellation.Feature.Navigation --version
<PackageReference Include="Constellation.Feature.Navigation" Version="" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Constellation.Feature.Navigation --version
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

Changed ImageSvg property back to HtmlString as it's easier on the developer. ModelMapper now supports both options.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated 130 6/4/2019 99 6/3/2019 91 6/3/2019 86 5/29/2019 129 4/11/2019 120 3/6/2019 112 2/1/2019 172 12/11/2018 194 12/7/2018 133 12/7/2018 133 11/8/2018 151 10/25/2018 152 10/23/2018 153 10/22/2018 156 10/19/2018 152 10/19/2018 150 10/18/2018 144 10/18/2018 166 10/18/2018 184 10/17/2018 158 10/16/2018 149 10/16/2018 152 10/16/2018 163 10/16/2018 191 10/4/2018 375 7/3/2018 287 5/30/2018 249 5/25/2018 393 2/12/2018 318 1/12/2018 259 1/12/2018 251 1/11/2018 263 1/10/2018 262 1/10/2018 268 1/8/2018 293 12/13/2017 248 12/13/2017 261 12/11/2017 278 12/8/2017 279 12/6/2017 294 12/6/2017 311 12/6/2017 237 12/5/2017 239 12/5/2017 227 12/4/2017 224 12/3/2017 217 12/3/2017 208 12/3/2017 219 12/3/2017