mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-11-28 17:32:44 +08:00
Adding a disabled layer
For convenience, so widgets can be moved to disabled rather than deleted --HG-- branch : dev extra : rebase_source : 36d5a75b58182c593ec690a015d77296c7ca02c0
This commit is contained in:
@@ -23,6 +23,8 @@ namespace Orchard.Widgets {
|
||||
_contentManager.Publish(authenticatedLayer.ContentItem);
|
||||
IContent anonymousLayer = _contentManager.Create<LayerPart>("Layer", t => { t.Record.Name = "Anonymous"; t.Record.LayerRule = "not authenticated"; });
|
||||
_contentManager.Publish(anonymousLayer.ContentItem);
|
||||
IContent disabledLayer = _contentManager.Create<LayerPart>("Layer", t => { t.Record.Name = "Disabled"; t.Record.LayerRule = "false"; });
|
||||
_contentManager.Publish(disabledLayer.ContentItem);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user