We have moved!

You are currently looking at documentation for Umbraco 8 and older versions.
An automated guess is that docs.umbraco.com/umbraco-cms/reference/events/editormodel-events/index-vpre-7_4_0 could be the link to the new documentation for Umbraco 9 and newer versions.

    Pre-EditorModel Events solutions

    Before Umbraco version 7.4, there was no real way of interfering with the "model" requested by Angular.

    You would set default values after the content created event.

    Using e.g. an event handler class something like the following:

    public class InitializeNewMyDocumentTypeContent : ApplicationEventHandler
    {
        protected override void ApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext)
        {
            ContentService.Created += ContentCreated;
            base.ApplicationStarted(umbracoApplication, applicationContext);
        }
    
        private void ContentCreated(IContentService sender, NewEventArgs<IContent> e)
        {
            if (e.Entity.ContentType.Alias == "MyDocumentType")
            {
                e.Entity.SetValue("pageTitle", "Untitled");
                sender.Save(e.Entity);
            }
        }
    }