Class MacroDisplay
The macro display model
Namespace: Umbraco.Cms.Core.Models.ContentEditing
Assembly: Umbraco.Core.dll
Syntax
public class MacroDisplay : EntityBasic, INotificationModel
Constructors
View SourceMacroDisplay()
Initializes a new instance of the Macro
Declaration
public MacroDisplay()
Properties
View SourceCacheByPage
Gets or sets a value indicating whether the macro should be cached by page
Declaration
public bool CacheByPage { get; set; }
Property Value
Type | Description |
---|---|
System. |
CacheByUser
Gets or sets a value indicating whether the macro should be cached by user
Declaration
public bool CacheByUser { get; set; }
Property Value
Type | Description |
---|---|
System. |
CachePeriod
Gets or sets the cache period.
Declaration
public int CachePeriod { get; set; }
Property Value
Type | Description |
---|---|
System. |
Notifications
This is used to add custom localized messages/strings to the response for the app to use for localized UI purposes.
Declaration
public List<BackOfficeNotification> Notifications { get; }
Property Value
Type | Description |
---|---|
List<Back |
Parameters
Gets or sets the parameters.
Declaration
public IEnumerable<MacroParameterDisplay> Parameters { get; set; }
Property Value
Type | Description |
---|---|
IEnumerable<Macro |
RenderInEditor
Gets or sets a value indicating whether the macro should be rendered a rich text editor.
Declaration
public bool RenderInEditor { get; set; }
Property Value
Type | Description |
---|---|
System. |
UseInEditor
Gets or sets a value indicating whether the macro can be used in a rich text editor.
Declaration
public bool UseInEditor { get; set; }
Property Value
Type | Description |
---|---|
System. |
View
Gets or sets the view.
Declaration
public string View { get; set; }
Property Value
Type | Description |
---|---|
System. |