Constellation.Feature.Navigation
Requires Sitecore 10.3 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.
Activity
- Latest release
- 3y ago
- Total releases
- 64
- Cadence
- ~3 days
- Last 12 months
- 0
Details
- License
- MIT
- First release
- Dec 03, 2017
| Version | Released | |
|---|---|---|
10.3.0.25486
minor
|
10.3.0.25486
minor
Dependencies (2)
|
|
10.2.1.22896
patch
|
10.2.1.22896
patch
Dependencies (3)
|
|
10.1.1.22398
patch
|
10.1.1.22398
patch
Dependencies (2)
|
|
10.2.0.25604
patch
|
10.2.0.25604
patch
Dependencies (3)
|
|
10.2.0.25345
minor
|
10.2.0.25345
minor
Dependencies (3)
|
|
10.1.0.17433
minor
|
10.1.0.17433
minor
Dependencies (2)
|
|
10.0.3.24791
patch
|
10.0.3.24791
patch
Dependencies (3)
|
|
10.0.2.28531
patch
|
10.0.2.28531
patch
Dependencies (2)
|
|
10.0.2.22966
patch
|
10.0.2.22966
patch
Dependencies (2)
|
|
10.0.1.28589
patch
|
10.0.1.28589
patch
Dependencies (2)
|
|
10.0.0.23819
major
|
10.0.0.23819
major
Dependencies (2)
|
|
9.3.0.19127
minor
|
9.3.0.19127
minor
Dependencies (2)
|
|
9.1.11.25113
patch
|
9.1.11.25113
patch
Dependencies (2)
|
|
9.1.10.23104
patch
|
9.1.10.23104
patch
Dependencies (2)
|
|
9.1.9.19228
patch
|
9.1.9.19228
patch
Dependencies (2)
|
|
9.1.8.16491
patch
|
9.1.8.16491
patch
Dependencies (2)
|
|
9.1.7.32436
patch
|
9.1.7.32436
patch
Dependencies (2)
|
|
9.1.6.28509
patch
|
9.1.6.28509
patch
Dependencies (2)
|
|
9.1.5.19058
patch
|
9.1.5.19058
patch
Dependencies (2)
|
|
9.1.4.28540
patch
|
9.1.4.28540
patch
Dependencies (2)
|
|
9.1.3.28058
patch
|
9.1.3.28058
patch
Dependencies (10)
+ 2 more |
|
9.1.2.17734
patch
|
9.1.2.17734
patch
Dependencies (8)
|
|
9.1.1.23791
patch
|
9.1.1.23791
patch
Dependencies (8)
|
|
9.1.0.23931
patch
|
9.1.0.23931
patch
Dependencies (8)
|
|
9.1.0.22346
minor
|
9.1.0.22346
minor
Dependencies (8)
|
|
9.0.26.21596
patch
|
9.0.26.21596
patch
Dependencies (2)
|
|
9.0.25.29414
patch
|
9.0.25.29414
patch
Dependencies (2)
|
|
9.0.24.18052
patch
|
9.0.24.18052
patch
Dependencies (2)
|
|
9.0.23.21057
patch
|
9.0.23.21057
patch
Dependencies (2)
|
|
9.0.22.27125
patch
|
9.0.22.27125
patch
Dependencies (2)
|
|
9.0.22.19031
patch
|
9.0.22.19031
patch
Dependencies (2)
|
|
9.0.21.25109
patch
|
9.0.21.25109
patch
Dependencies (2)
|
|
9.0.21.20919
patch
|
9.0.21.20919
patch
Dependencies (2)
|
|
9.0.21.17503
patch
|
9.0.21.17503
patch
Dependencies (2)
|
|
9.0.20.26607
patch
|
9.0.20.26607
patch
Dependencies (2)
|
|
9.0.19.27110
patch
|
9.0.19.27110
patch
Dependencies (2)
|
|
9.0.19.26217
patch
|
9.0.19.26217
patch
Dependencies (2)
|
|
9.0.19.24819
patch
|
9.0.19.24819
patch
Dependencies (2)
|
|
9.0.18.24102
patch
|
9.0.18.24102
patch
Dependencies (2)
|
|
9.0.17.26056
patch
|
9.0.17.26056
patch
Dependencies (2)
|
|
9.0.16.28051
patch
|
9.0.16.28051
patch
Dependencies (3)
|
|
9.0.15.27526
patch
|
9.0.15.27526
patch
Dependencies (3)
|
|
9.0.14.26746
patch
|
9.0.14.26746
patch
Dependencies (2)
|
|
9.0.13.20846
patch
|
9.0.13.20846
patch
Dependencies (2)
|
|
9.0.12.25153
patch
|
9.0.12.25153
patch
Dependencies (1)
|
|
9.0.11.16660
patch
|
9.0.11.16660
patch
Dependencies (1)
|
|
9.0.10.23413
patch
|
9.0.10.23413
patch
Dependencies (1)
|
|
9.0.9.22148
patch
|
9.0.9.22148
patch
Dependencies (1)
|
|
9.0.8.18398
patch
|
9.0.8.18398
patch
Dependencies (1)
|
|
9.0.7.23564
patch
|
9.0.7.23564
patch
Dependencies (1)
|