Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
For questions related to Sitecore item and field validation rules within the Sitecore Client
2
votes
Accepted
Item validator access already stored data instead of newly inputed data
Answer is "use fatal validation result instead of critical". Or use item:saving event like described in my answer. … Alternatively, you can use item:saving event instead of validation.
Another way is using saveUI pipeline. …
4
votes
Accepted
How to prevent an item from being moved to another folder accidentally?
There is nothing like that out of the box in Sitecore. But you can easily create such a functionality on your own:
Create a new template with one field only - checkbox "Cannot be moved"
Add your han …
4
votes
Accepted
'IServiceProvider' does not contain a definition for 'GetService'
You need to add a reference Microsoft.Extensions.DependencyInjection.Abstractions.dll to your project.
It's not enough to have Microsoft.Extensions.DependencyInjection.dll referenced only.
1
vote
Accepted
Regex validator on display name for hyphen(-) value
You can just join:
date + only not hyphens pattern:
^(0[1-9]|[12][0-9]|3[01])[-/.](0[1-9]|1[012])[-/.]((19|20)[0-9][0-9])[^\-]+$
with
only not hyphens pattern:
(^[^\-]+$)
using or |
Final regex …
0
votes
Accepted
Validate Date entered is in yyyy/mm/dd format in Sitecore Forms
You just need to reorder regex parts like that:
{"regularExpression":"^((18|19|20)[0-9]{2}[/](0[13578]|1[02])[/]31)|((18|19|20)[0-9]{2}[/](01|0[3-9]|1[1-2])[/](29|30))|((18|19|20)[0-9]{2}[/](0[1-9]|1[ …
4
votes
Accepted
Sitecore validation rule at field level in multi-list value selection range
You can pretty much reuse the first regex, just instead of saying that you need 0-5 guids, you should say that you need 0 or more groups of 2 guids:
^({[^}]+}[|]{[^}]+}[|]?)*$
So in fact you use re …