Umbraco——按会员控制对媒体的访问

发布于 2024-07-29 01:24:13 字数 171 浏览 2 评论 0原文

我需要设置对具有以下结构的媒体文件的访问:媒体文件夹被指定为属于特定成员组。 然后,下面的子文件夹需要可供父成员组中的部分成员使用。 关于如何最好地实现这一目标有什么想法吗? 我将使用用户控件呈现实际的文件下载链接,但我应该如何在后端设置此访问控制? 我需要一个成员组选择器和一个多成员选择器。 这些存在于任何地方吗?

I need to set up access to media files with the following structure: A media folder is designated as belonging to a specific member group. Then, a sub-folder below that needs to be available to a subset of members from the parent's member group. Any thoughts on how this can best be accomplished? I'll render the actual file download links with a user control, but how should I set up this access control on the back end? I need a member-group picker and a multiple member picker. Do these exist anywhere?

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

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

发布评论

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

评论(2

浮生面具三千个 2024-08-05 01:24:13

从未使用过它,但 our.umbraco 上有一个 Filtered Member Picker 项目 。 您可能还对受保护媒体包感兴趣。 我无法证明它们的质量,但它们可能会帮助指导您。

Never used it, but there is a Filtered Member Picker project on our.umbraco. You may also be interested in the Protected Media package. I can't attest to their quality, but they may help guide you.

南…巷孤猫 2024-08-05 01:24:13

这感觉就像管理页面中的自定义部分,您可以在其中创建页面来管理此嵌套层次结构。 请参阅 Umbraco.org 上的视频,了解如何创建自定义部分。

您将为自定义部分编写 aspx 页面,就像在普通 ASP.Net 站点中一样,并且可能将您的授权信息存储在自定义数据库表中。

您还将编写一个业务逻辑类,向您编写的 Web 用户控件提供此信息。 Web 用户控件包装在宏内并在模板中使用。 他们会将授权内容公开给给定的访问者。

这不是一项小工作,但如果您真的熟悉 Umbraco,您应该能够在一天的时间内接近最终结果; 然后从那里完善它。 对此没有简单的配置,您可能会找到第 3 方加载项,但这值得怀疑。 如果您可以使用标准 ASP.Net 解决此挑战,那么您可以轻松地将自定义部分添加到 Umbraco 管理页面并启动并运行类似的功能。

This feels like a custom section in the admin pages where you make a page(s) to manage this nested hierarchy. See the videos on Umbraco.org for how to create a custom section.

You'll write the aspx page(s) for the custom section like you would in a vanilla ASP.Net site and probably store your authorization information in custom database tables.

You'll also write a business logic class(es) that supply this information to a web user control you write. The web user control(s) are wrapped inside macros and used in a template. They'll expose the autorized content to the given visitor.

Its not a tiny job, but you should be able to get close to the end result in a day's time if you're really familiar with Umbraco; then polish it up from there. There is no simple configuration for this, you might find a 3rd party add-in, but that's doubtful. If you can solve this challenge using standard ASP.Net, then you can easily add in a custom section to the Umbraco admin pages and get a similar feature up and running.

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