Is it possible to set "default values" in fields on an element-type? I have a base element-type, with a number of fields, and I inherit from this with several more specific element-types. On these more specific element-types, I'd like to have some of the field values "pre set" to values specific to their usage.
Thanks - I did start looking at the INotificationHandler pattern. I'll give it another shot.
I am used to working in another cms called Sitecore, and here it is possible to set up "standard values" on its version of document-types. I thought Umbraco might have something similar built in.
Default values
Is it possible to set "default values" in fields on an element-type? I have a base element-type, with a number of fields, and I inherit from this with several more specific element-types. On these more specific element-types, I'd like to have some of the field values "pre set" to values specific to their usage.
Hello Peter,
Not sure if this is what you are looking for, but maybe it helps to point you in some direction.
Example: https://github.com/dawoe/umbraco-journey-into-the-unknown/blob/master/App_Code/EditorModelEvents.cs
Or a different example could be: https://docs.umbraco.com/umbraco-cms/reference/notifications/editormodel-notifications
Kind regards, Danny Paul van Iersel
Thanks - I did start looking at the INotificationHandler pattern. I'll give it another shot. I am used to working in another cms called Sitecore, and here it is possible to set up "standard values" on its version of document-types. I thought Umbraco might have something similar built in.
is working on a reply...