Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

RoleLayerRule.OrchardCore is an Orchard Core CMS Module that provides a role layer rule for displaying a layer based on user role.

License

NotificationsYou must be signed in to change notification settings

stantoxt/RoleLayerRule

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RoleLayerRule.OrchardCore is an Orchard Core CMS Module that adds aGlobalMethod, calledrole. The method returnstrue if the current user is in the specfified role, otherwisefalse.

role("Administrator")

This method can be used as part of a layer rule to specify that widgets in a layer only be displayed to users in certain roles.

Status

Build statusStatus

Getting Started

Add the NuGet package,RoleLayerRule.OrchardCore, to the Orchard Core CMS Website. Launch the website and sign in as an administrator to enable the module from the dashboard underConfiguration ->Modules.

RoleLayerRule.OrchardCore

Create a new layer and specify that widgets in the layer are only visible toAdministrators using the newrole layer rule.

Role Layer Rule

Create a widget in a visible zone and specify that it is in the restricted layer created above. In this case, I created aliquid widget in theContent zone and placed it in the newAdmin layer.

Orchard Core CMS Widget

Browse to a route displaying the zone and verify that the widget is only displayed to users in theAdministrators role.

Bugs

There are no known bugs.

Road map

There are no plans to add any additional features.

Credits

RoleLayerRule.OrchardCore is created and maintained by David Hayden.

About

RoleLayerRule.OrchardCore is an Orchard Core CMS Module that provides a role layer rule for displaying a layer based on user role.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C#100.0%

[8]ページ先頭

©2009-2025 Movatter.jp