Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/JeffDarchuk/SxaGlobalFieldValidator
an SXA module to validate fields at a site level rather than at the template field level
https://github.com/JeffDarchuk/SxaGlobalFieldValidator
Last synced: 3 months ago
JSON representation
an SXA module to validate fields at a site level rather than at the template field level
- Host: GitHub
- URL: https://github.com/JeffDarchuk/SxaGlobalFieldValidator
- Owner: JeffDarchuk
- Created: 2018-10-25T14:26:44.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-25T15:02:46.000Z (about 6 years ago)
- Last Synced: 2024-01-24T04:14:30.691Z (10 months ago)
- Language: C#
- Size: 44.9 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- Awesome-Sitecore - Global Field Validator - An SXA module to validate fields at a site level rather than at the template field level. (SXA (Sitecore Experience Accelerator))
README
# SxaGlobalFieldValidator
an SXA module to validate fields at a site level rather than at the template field levelBy default validation rules are applied on the template field item under the template. This means that every other template that inherits yours will automatically get the validation rules applied to it.
My solution is to pull the validation rule definitions optionally out of the template field and into a global library of items that contain a template to template field mapping.
## To install
### Recommended
1. Clone this repo
1. Copy the project to your website's project
1. Change the namespaces to match your website
1. Add publishing capabilities in your perferred method
1. Install the Sitecore package found in the root of the repo
1. Track the items found in the package with your favorite filesystem serialization tool (Unicorn/TDS)
/sitecore/system/Settings/Foundation/Experience Accelerator/Content Validation/Content Validation Site Setup
/sitecore/templates/Foundation/Experience Accelerator/Content Validation/Global Field Rule
/sitecore/templates/Foundation/Experience Accelerator/Content Validation/Global Field Rule FolderThen install the "Content Validation" module on your site and under settings you will find an item for "Global Field Rules" where you can build your field validation to template mapping.
### Alternative
1. Install Sitecore package found in the root of the repoThen install the "Content Validation" module on your site and under settings you will find an item for "Global Field Rules" where you can build your field validation to template mapping.