Closed rtpHarry closed 6 years ago
Docs page is here: http://docs.orchardproject.net/en/latest/Documentation/Managing-widgets/#adding-a-layer
But should probably be moved to its own page as Orchard.Layouts supports these rules to control the display of Elements (#289)
Also missing culture rules: https://github.com/OrchardCMS/Orchard/blob/dev/src/Orchard.Web/Modules/Orchard.Localization/Conditions/CultureConditionProvider.cs
And WorkContext: https://github.com/OrchardCMS/Orchard/blob/dev/src/Orchard.Web/Modules/Orchard.Conditions/Providers/BuiltinCondition.cs
When documenting double check if these conditions are enabled out of the box or if they require modules / features to be turned on.
You can actually use a layer rule which targets roles, but it isnt documented:
https://github.com/OrchardCMS/Orchard/issues/6912#issuecomment-225914292