Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
When typing a title more than 115 characters, I get an error page. Is there a way to change that size limit?
I know that the best practice is to have titles lower than 60 characters but our organization requires us to have titles that are sometimes longer than 115.
What data type do you use for the title? Is it a textbox?
It is the default textbox for the Umbraco page name in the back office content structure. Please see the image for more details:
public class ContentEvents : ApplicationEventHandler
protected override void ApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext)
ContentService.Saving += ContentService_Saving;
private void ContentService_Saving(IContentService sender, SaveEventArgs<IContent> e)
//remove the linq for all
foreach (var node in e.SavedEntities.Where(x=> x.ContentType.Alias.Equals("MyAlias")))
if (node.Name.Length > 100)
e.Cancel = true;
e.Messages.Add(new EventMessage("Validation", "my error message", EventMessageType.Error));
I will try that when I go back to the office.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted