English French German Italian Portuguese Russian Spanish

How to give a different publishing options to different users in Drupal

15
Nov

This week, I have been making a news website for the Somalian's community. The client wants different users to have different publishing abilities.

Eg.
1) Trusted member can publish news without approval
2) Normal member can publish news / post, but it has to be approved by admin before it could be shown on the web.

The challenge for that is drupal only allows one default option in the "publish" box for all users.

Here is how I solve the problem:

1) Untick Publishing box in the "Publishing box". It means by default, all post are set to "unpublished" after it's submitted.

2) Download Install the rules & Token modules
3) Go to Trigger rules and add a new rule

- Adds role which you want to let them publish without approval
Eg. Trusted member role

Give them an action of
"Publish saved content" under the condition "before the new content is saved"

Therefore, whenever member with "trusted member role" makes a post, it will be saved as "unpublished" by default and then the "trigger rule" will convert it to "published" and show on the web immediately.

On the other hand, post by normal user will be saved as "unpublished" and Admin needs to approve it before it's shown on web.

--
The next thing I did was to add extra "rule" to notify admin for the new unpublished post. It can also be easily done by "rule" module, but you need token module in order to have a sophisticated mail like those URL link to the post, post date etc.

I found this post quite useful too, http://drupal.org/node/550716

Tips. I suggest using the RULE-DEV cos some users including me found the "tokenised email" doesn't work with the Rule-6.11 version

No comments available.

Post new comment

The content of this field is kept private and will not be shown publicly.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.
X
You may login with either your assigned username or your e-mail address.
The password field is case sensitive.
Loading