使内容仅对 Drupal 中的作者可见

发布于 2024-12-20 18:48:53 字数 157 浏览 5 评论 0原文

我想允许 Drupal 网站的成员将自己的内容上传到该网站(例如博客文章或调查问卷),但只有他们自己可见(对具有相同角色的其他成员隐藏)。其想法是让他们存储一些其他成员不需要查看的个人内容,但只有作者成员在使用网站时需要查看(或有权访问)。

我需要使用哪些模块?或者我该如何进行设置?

I want to allow members of a Drupal website to upload their own content to the site (something like a blog post or questionnaire), but have it visible only to themselves (hidden from other members with the same role). The idea is to have them store some personal content that other members don't need to see, but that only the author member would need to see (or have access to) when using the site.

What modules would I need to use? Or how could I go about setting that up?

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

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

发布评论

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

评论(3

我不是你的备胎 2024-12-27 18:48:53

您可以使用 http://drupal.org/project/content_access 轻松完成此操作

You can do this easily with http://drupal.org/project/content_access

赴月观长安 2024-12-27 18:48:53

我不知道您是否已经解决了这个问题,但我最近在 Drupal 7 中的共享博客上做了类似的事情。我希望用户同时拥有私人和公共博客帖子。我使用“保存草稿”模块(http://drupal.org/project/save_draft)向内容编辑屏幕添加一个额外的按钮,我将其称为“保存(未发布)”而不是“保存草稿”——我使用了字符串覆盖模块来实现这一点(http://drupal.org/project/stringoverrides)。在权限管理面板中,经过身份验证的用户被授予查看和编辑自己未发布项目的权限。因此,用户可以以其他人看不到的方式保存他们的博客文章。然后我使用视图 (http://drupal.org/project/views) 创建一个列表视图,该视图使用条件内容类型 = 博客、状态 = 未发布和内容作者 = 当前用户。这为用户提供了他们未发布的博客文章的列表。

I don't know if you've already solved this problem, but I recently did something similar with a shared blog in Drupal 7. I wanted users to have both private and public blog posts. I used the Save Draft module (http://drupal.org/project/save_draft) to add an extra button to the content editing screen, which I called Save (Unpublished) rather than "Save Draft" -- I used the String Overrides module to make that happen (http://drupal.org/project/stringoverrides). In the admin panel for permissions, Authenticated users were granted to right to view and edit their own unpublished items. Users could thus save their blog posts in a way that others could not see them. Then I used Views (http://drupal.org/project/views) to create a list view that used the criteria content type = blog, state = unpublished, and content author = current user. This gives users a list of their unpublished blog posts.

夜光 2024-12-27 18:48:53

https://drupal.org/project/view_own 模块完全按照您正在寻找的方式处理此问题。

The https://drupal.org/project/view_own module handles this exactly the way you are looking for.

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