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
How to prefill the document type name that I circled in the picture below?
This can be easily done using Events, on Document.New
Just create a new class (eg. UmbracoEvents.cs)
public class UmbracoEvents: ApplicationBase
Document.New += new Document.NewEventHandler(Document_New);
private void Document_New(Document sender, umbraco.cms.businesslogic.NewEventArgs e)
if (sender.ContentType.Alias == "News")
sender.getProperty("date").Value = DateTime.Today; // Set the date for a new News item to today
For More Understanding please refer below link
Document.New is deprecated! Please use ContentService.Created!
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted