Class TemplateSavingNotification
A notification that is used to trigger the IFileService when the SaveTemplate method is called in the API.
Inheritance
Namespace: Umbraco.Cms.Core.Notifications
Assembly: Umbraco.Core.dll
Syntax
public class TemplateSavingNotification : SavingNotification<ITemplate>, IStatefulNotification, ICancelableNotification, INotification
Constructors
View SourceTemplateSavingNotification(IEnumerable<ITemplate>, EventMessages)
Declaration
public TemplateSavingNotification(IEnumerable<ITemplate> target, EventMessages messages)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<ITemplate> | target | |
EventMessages | messages |
TemplateSavingNotification(IEnumerable<ITemplate>, EventMessages, Boolean, String)
Initializes a new instance of the TemplateSavingNotification
Declaration
public TemplateSavingNotification(IEnumerable<ITemplate> target, EventMessages messages, bool createTemplateForContentType, string contentTypeAlias)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<ITemplate> | target | Gets a enumeration of the ITemplate. |
EventMessages | messages | Initializes a new instance of the EventMessages. |
System.Boolean | createTemplateForContentType | Boolean value determining if the template is created for a Document Type. It's not recommended to change this value. |
System.String | contentTypeAlias | This is the alias of the ContentType the template is for. This is used when creating a Document Type with Template. It's not recommended to try and change or set this. |
TemplateSavingNotification(ITemplate, EventMessages)
Declaration
public TemplateSavingNotification(ITemplate target, EventMessages messages)
Parameters
Type | Name | Description |
---|---|---|
ITemplate | target | |
EventMessages | messages |
TemplateSavingNotification(ITemplate, EventMessages, Boolean, String)
Initializes a new instance of the TemplateSavingNotification
Declaration
public TemplateSavingNotification(ITemplate target, EventMessages messages, bool createTemplateForContentType, string contentTypeAlias)
Parameters
Type | Name | Description |
---|---|---|
ITemplate | target | Initializes a new instance of the ITemplate. |
EventMessages | messages | Initializes a new instance of the EventMessages. |
System.Boolean | createTemplateForContentType | Boolean value determining if the template is created for a Document Type. It's not recommended to change this value. |
System.String | contentTypeAlias | This is the alias of the ContentType the template is for. This is used when creating a Document Type with Template. It's not recommended to try and change or set this. |
Properties
View SourceContentTypeAlias
Declaration
public string ContentTypeAlias { get; set; }
Property Value
Type | Description |
---|---|
System.String |
CreateTemplateForContentType
Declaration
public bool CreateTemplateForContentType { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |