Class MacroDisplay
The macro display model
Namespace: Umbraco.Web.Models.ContentEditing
Assembly: Umbraco.Web.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
This is used to add custom localized messages/strings to the response for the app to use for localized UI purposes.
Declaration
[DataMember(Name = "notifications")]
public List<Notification> Notifications { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<Notification> |
Parameters
Gets or sets the parameters.
Declaration
[DataMember(Name = "parameters")]
public IEnumerable<MacroParameterDisplay> Parameters { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.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 |