VERSION 10.0 is compiled for Sitecore 10.0 use and will not work on earlier versions.
Requires Sitecore 10.0
Requires .NET 4.8
Constellation is a collection of utilities for .NET CMS implementers.
The Foundation.Mvc assembly contains enhancements to Sitecore's MVC Rendering system:
GenerateRenderingSpecificCacheKey Mvc.RenderRendering pipeline processor:
Replaces the default GenerateCacheKey processor. Includes the ID of the Rendering in the cache key, this allows for multiple renderings with different presentation
to use the same Datasource and be cached by Datasource without issues.
MinifyAndAddRecordedHtmlToCache Mvc.RenderRendering pipeline processor:
delivery time through file size reduction. The default settings are "safe" but effective, however WebMarkupMin offers far more aggressive minification settings
for the bold.
GetControllerRenderer Mvc.GetRenderer pipeline processor:
Replaces the default GetControllerRenderer. Allows the developer to rely on the name of the Rendering to locate the appropriate controller to execute
(convention over configuration). Very handy for Renderings that have a dedicated controller with one action that always produces the same output.
Provides a good base-class controller for Sitecore implementations:
* Forces the use of the Index() controller action (overrides possible)
* Provides the programmer with immediate access to the Rendering's DataSource and ContextItem (PageContext)
* Requires the programmer to assemble the model from the above Items.
* Automatically finds the View based upon the Rendering's XPath location in Sitecore
Replaces the stock MVC View, and provides methods for determining if the Page Mode "IsExperienceEditor" and "IsExperienceEditorEditing" which are
of particular use if the View needs to change behavior to support editors.
Independent engine for locating a View based on the Rendering Item's path in Sitecore. It has configuration settings that allow the programmer
to specify the location of Renderings in Sitecore and how they map to the location of the Views on disk. See the provided config file for details.
Install-Package Constellation.Foundation.Mvc -Version 10.0.2.29249
dotnet add package Constellation.Foundation.Mvc --version 10.0.2.29249
<PackageReference Include="Constellation.Foundation.Mvc" Version="10.0.2.29249" />
paket add Constellation.Foundation.Mvc --version 10.0.2.29249
Significant rewrite of ViewPathResolver to independently and explicitly support Helix module mapping, as well as site-level view overrides. See the config for details.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Constellation.Foundation.Mvc:
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 Foundation.Mvc.Patterns library is an opinionated library that provides some base Controller and Repository classes for jumpstarting a Sitecore project. The purpose is to get developers to better separate data access logic from controllers and also to hide some uninteresting concerns. Repositories: Classes which accept a context to specify the conditions for accessing data in Sitecore along with facts for use in the query. The Repository is responsible for getting the results of a query, any caching, and any transformation into ViewModel output. Base Repositories: Repository - Just the basics of setting up the relationship between the repository and the controller. CachingRepository - Adds caching of the repository's output to the mix. SingleItemRepository - Includes both of above and is centered around queries that will retrieve a single Item. ItemListRepository - Includes the first two and is centered around queries taht will retrieve multiple Items. Controllers: Classes which are responsible for handling the transition from Sitecore to the View, including setting up a Repository Context, and getting the results from the Repository for sending to the View. Base Controllers: DatasourceRenderingController - Use when a Rendering has a Datasource Item and that Item is what's being rendered. ItemListController - Use when a Rendering will present a number of Items that have to be looked up in some fashion. On Sitecore startup, this package will scan all assemblies for IController and IRepository implementations and automatically add them to Dependency Injection. This feature can be disabled/changed via the config file for this package.
This package is not used by any popular GitHub repositories.