开发者

content permission in drupal

How do I set content permission so that sp开发者_如何学Pythonecific nodes are only visible to the admin user, while other nodes of the same content type may be visible by all users.


D6: Go to admin/user/permissions and make sure access content is unchecked for all roles.

D7: Go to admin/people/permissions and make sure View published content is unchecked for all roles other than Administrator


Best way would be to use Content Access module as it provides admin/structure/types/manage/content-type/access page to manage permissions.

There you can check PER CONTENT NODE ACCESS CONTROL SETTINGS to enable content level permission for different nodes of same content type.

Now you can go to node/node-id/access page to provide permission for particular node and only assign view any content permission to admin user.


If you don't want to go to the trouble of installing a new module you could just unpublish the content, then only administrators will be able to view it

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜