Info
Version: | 10.3.0.26196 |
Author(s): | Richard J. Cabral |
Last Update: | Friday, June 16, 2023 |
.NET Fiddle: | Create the first Fiddle |
Project Url: | https://constellation4sitecore.com/feature/url-friendly-page-names/ |
NuGet Url: | https://www.nuget.org/packages/Constellation.Feature.UrlFriendlyPageNames |
Install
Install-Package Constellation.Feature.UrlFriendlyPageNames
dotnet add package Constellation.Feature.UrlFriendlyPageNames
paket add Constellation.Feature.UrlFriendlyPageNames
Constellation.Feature.UrlFriendlyPageNames Download (Unzip the "nupkg" after downloading)
Dependencies
- Constellation.Foundation.Contexts(>= 10.0.0.22019)
- Constellation.Foundation.PackageVerification(>= 10.0.0.22406)
Tags
Requires Sitecore 10.3
Requires .NET Framework 4.8
Constellation is a collection of utilities for .NET CMS implementers.
This small Feature contains a Sitecore Rule Action which must be installed in order to take advantage
of this library.
The package should self-install once you build and deploy your project.
To use, an Item Saved rule must be created. The rule must have a condition that specifies that an Item is a "page" and therefore
needs an SEO-friendly URL. The rule action should be the one included in this kit. Rule options include:
- Replace Diacritics
- Clear Display Name (recommended so that marketers see the actual Item name and therefore URL slug for pages)
- Specify illegal characters to remove (Regex "\s" is a good choice.)
- Replace spaces or remove spaces from names
- Force lowercase
It is up to the implementer to determine the nature of "page" Items.
We recommend looking at Constellation.Foundation.Datasources for
rule conditions that are suitable for this specific task.
Note that the Illegal Characters option and the Replace Spaces option can conflict, a "-" will be removed if you use the "\W" regex,
resulting in behavior similar to "Remove Spaces" We strongly recommend using "\s".