File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
Umbraco.Core/Models/ContentEditing
Umbraco.Web.UI.Client/src/views/components Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ public class PropertyTypeBasic
2525
2626 [ Required ]
2727 [ RegularExpression ( @"^([a-zA-Z]\w.*)$" , ErrorMessage = "Invalid alias" ) ]
28+ [ MaxLength ( 255 , ErrorMessage = "Alias is too long" ) ]
2829 [ DataMember ( Name = "alias" ) ]
2930 public string Alias { get ; set ; } = null ! ;
3031
Original file line number Diff line number Diff line change 2525 title ="{{ngModel}} "
2626 focus-when ="{{!locked}} "
2727 umb-select-when ="{{!locked}} "
28- ng-blur ="lock() " />
28+ ng-blur ="lock() "
29+ ng-maxlength ="255 " />
2930
3031 </ div >
3132
4647 ng-if ="serverValidationField.length > 0 "
4748 ng-message ="valServerField "> {{lockedFieldForm.lockedField.errorMsg}}
4849 </ div >
50+ < div class ="umb-validation-label "
51+ ng-class ="{ '-left': validationPosition === 'left', '-right': validationPosition === 'right' } "
52+ ng-if ="ngModel.length > 255 ">
53+ < localize key ="general_invalid "> Invalid</ localize > < localize key ="content_alias "> alias</ localize >
54+ </ div >
4955 </ div >
5056
5157</ ng-form >
You can’t perform that action at this time.
0 commit comments