如何保护 Orchard CMS 中的内容

发布于 2024-12-20 17:08:41 字数 471 浏览 1 评论 0原文

我想使用 Orchard CMS 的角色和成员资格来限制对 Orchard CMS 中员工门户的访问。目前看来还没有开箱即用的方法来做到这一点。 我发现了许多对模块的引用,这些模块应该能够提供帮助,但似乎没有一个起作用。

Very Simple Permissions 是一些人建议的一个 codeplex 项目,现在有一个死链接,并且似乎不存在于 codeplex 上。 科学项目:每当我尝试安装缺少 dll 的问题时,Quanta 都会破坏我的网站,并且不确定它是否是我所需要的。

有谁对如何执行以下任一操作有任何指导:使用标准菜单系统或高级菜单插件根据角色显示/隐藏菜单项

,或者

根据角色限制内容可见性。如果它是一个很棒的模块,否则不要介意用一些编码弄脏我的手,但以正确的方式来实现这种 mvc 风格会很棒。我假设我需要编辑菜单模块的控制器来检查当前成员资格并相应地调整视图数据。我正在远离网络表单。慢慢地。我仍在思考框架。

感谢您入住。

I'd like to use the roles and membership ability of Orchard CMS to limit access to a staff portal in Orchard CMS. At present there doesn't look like there's an out of the box way to do it.
I've found numerous references to modules that should be able to help out but none seem to work.

Very Simple Permissions is a codeplex item suggested by some that has a dead link nowadays and doesn't seem to exist on codeplex.
Science Project: Quanta destroys my site everytime I try to install it with a missing dll issue, and not sure if its what I need anyways.

Does anyone have any guidance as to how to either: show/hide menu items based on roles using the standard menu system or advanced menu plugin

or

limit content visibility based on roles. If its a module fantastic, otherwise don't mind getting my hands dirty with some coding but a point in the right way to do this mvc style would be great. I'm going to presume I need to edit the controller for the menu module to check for current membership and adjust the view data accordingly. I'm moving away from webforms. slowly. Still getting my head around the framework.

Thanks for checking in.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

烟雨扶苏 2024-12-27 17:08:41

对于那些仍在为此苦苦挣扎的人,有一个名为 ContentPermissions 的模块,可在此处使用:

gallery.orchardproject.net/List/Modules/Orchard.Module.Orchard.ContentPermissions

安装后,您可以添加ContentPermissionsPart 到您想要保护的内容类型。

For those who are still struggling with this, there's a module is called ContentPermissions which is available here:

gallery.orchardproject.net/List/Modules/Orchard.Module.Orchard.ContentPermissions

Once installed, you can then add the ContentPermissionsPart to the Content Type you want to secure.

溇涏 2024-12-27 17:08:41

广达确实是您想要的。您可能缺少它的依赖项之一。作者 Pete 在 CodePlex 论坛上也非常活跃,因此如果您在那里提问,您会得到答案。

更新:Orchard 1.5.1(我正在编写此更新时的当前版本)支持开箱即用的内容项权限和菜单修剪。

Quanta really is what you want. You are probably missing one of its dependencies. Pete, the author, is also super-active on the CodePlex forums so if you ask there, you'll get an answer.

UPDATE: Orchard 1.5.1, the current version as I'm writing this update, supports content item permissions and menu trimming out of the box.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文