2014年9月17日 星期三

Drupal 7 如何看與編輯未發表的節點內容

要如何查看未發表的節點內容
官網上是這樣說的
In Drupal 7, users are not allowed to view any unpublished content by default, not even content created by themselves. By enabling 'View own unpublished content', you grant users access to their own unpublished content.
The only way to allow users access to all unpublished content in Drupal 7 (without using a contributed module), is to enable the permission 'Bypass content access control'.......

但是打開Bypass content access control'會有安全上的疑慮。

所以建議使用 View unpublished 模組來查看未發表(unpublished)節點內容。
The module View unpublished allows you to grant access for specific user roles to view unpublished nodes of a specific type. Access control is quite granular in this regard. Additionally, using this module does not require any modifications to your existing URL structure.

那要如何編輯未發表的節點內容呢?
照一般的權限編輯的話,編輯未發表的節點內容的下方並不會出現如下圖




這時候得安裝Override Node Options 模組來覆寫某角色對於某個content type之published option 將其打勾即可有權限來編輯此節點的 已發表/未發表








此時在編節點文章時就有勾選已發表/未發表 的選項了。




沒有留言:

張貼留言