Class MacroDisplay
The macro display model
Namespace: Umbraco.Cms.Core.Models.ContentEditing
Assembly: Umbraco.Core.dll
Syntax
[DataContract(Name = "dictionary", Namespace = "")]
public class MacroDisplay : EntityBasic, INotificationModel
Constructors
View SourceMacroDisplay()
Initializes a new instance of the MacroDisplay class.
Declaration
public MacroDisplay()
Properties
View SourceCacheByPage
Gets or sets a value indicating whether the macro should be cached by page
Declaration
[DataMember(Name = "cacheByPage")]
public bool CacheByPage { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
CacheByUser
Gets or sets a value indicating whether the macro should be cached by user
Declaration
[DataMember(Name = "cacheByUser")]
public bool CacheByUser { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
CachePeriod
Gets or sets the cache period.
Declaration
[DataMember(Name = "cachePeriod")]
public int CachePeriod { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Notifications
Declaration
[DataMember(Name = "notifications")]
public List<BackOfficeNotification> Notifications { get; }
Property Value
Type | Description |
---|---|
List<BackOfficeNotification> |
Parameters
Gets or sets the parameters.
Declaration
[DataMember(Name = "parameters")]
public IEnumerable<MacroParameterDisplay> Parameters { get; set; }
Property Value
Type | Description |
---|---|
IEnumerable<MacroParameterDisplay> |
RenderInEditor
Gets or sets a value indicating whether the macro should be rendered a rich text editor.
Declaration
[DataMember(Name = "renderInEditor")]
public bool RenderInEditor { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
UseInEditor
Gets or sets a value indicating whether the macro can be used in a rich text editor.
Declaration
[DataMember(Name = "useInEditor")]
public bool UseInEditor { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
View
Gets or sets the view.
Declaration
[DataMember(Name = "view")]
public string View { get; set; }
Property Value
Type | Description |
---|---|
System.String |