Hi There,

I am trying to find the best way to take in anonymous content submissions, for example via a Webform. The goal is to take in content from anonymous users, upon which an email would be sent to an admin to "approve" the submission. Then it would be automatically published to an events calendar (already fed with a custom content type).

So I have my custom content type (CCK) for the calendar, and I realize that Webforms are completely unrelated... I am just wondering, is there a way to push content of this nature into a node? And furthermore, is there a way to publish it only after being approved by an admin?

Here are some of the Modules I am already using:

CCK
Views
Date
Calendar
Webform
Jquery_ui

A fallback would be to still take in the content via Webform and email an admin, who would then have to do a bit of copy + paste to enter it into the custom content type.

I would very much appreciate some advice. I have been researching a solution for a while, and decided to bite the bullet and ask. SO THANKS in advance!

Comments

amrit_b’s picture

hi marcy_sss,

i know two modules, WorkFlow and WorkSpace which can serve your needs. specially the WorkFlow module.
this module is used to approve a node by multiple roles. Like if your site has admin, moderator, then the node is first approved my the moderator (but not published). And then it goes to the admin for publishing authorization.

you have to use action and triggers to solve that e-mail notification thing.

hope this solve your problem.. and tell me you got success or not :-)

thanks

Amrit Bera

mtsanford’s picture

I second the recommendation for Workflow. There is a good Chapter in "Using Drupal" (O'Reilly) that walks through setting up a simple news site using workflow and triggers/actions, including a sending of email for approval.

marcy_sss’s picture

Thanks for the recommendations! After reading your reply, I found sections of that book online and read up on Actions + Triggers. I did install the Workflow Module, however I ended up accomplishing my task with the Rules Module.

Again, my goal was to allow anonymous users to submit content to an events calendar. To combat spam, I wanted a moderator to approve the content before publishing it (by way of a notification email).

Here's how I did it:

  • Allowed anonymous users to create content of a custom type using permissions (cck)
  • Made said content type unpublished by default
  • Rules Module --
    • Added Triggered Rule: Event (saving new content)
    • IF: content is said type
    • DO: 1) send an email to admin with link to edit page, 2) redirect to "thank you" page to avoid "access denied" error
  • Used override_node_options Module to make Publish settings expanded by default, for more straight-forward approval
  • Added a block with a link to create content somewhere on the site, and made Navigation menu visible to authenticated users only.
  • Added node type/published filters to Calendar View

I am VERY pleased with what I was able to accomplish with Drupal. It definitely has a steep learning curve, but if you stick with it, good things will come! If anyone has questions or questions, feel free to comment.

pingo’s picture

This solution works really well, thanks!

I also tried out the Workflow module first, but ended up using the Rules Mosule instead, it's really easy...

ideafarm’s picture

How did you get around the access denied page being shown to users once they created the custom node type? and what feedback did you offer users to tell them there content will be reviewed first?

ideafarm’s picture

OK I found where you can set a redirect in rules, having tested both workflow and rules I suggest that anyone else trying something similar to this tries rules first, it is much more flexible.

franharrington’s picture

How are you getting the email to link to the newly created content?

Thanks very much for your description. It's been very helpful so far.

devagaurahari’s picture

Does anyone know the answer to this?

cyberwolf’s picture

The proposed solution with the Rules module works excellent! Thanks a lot.

meenxo’s picture

I want to thank you for the detailed submission. Only if everyone submits their solution life would be little easier. Thanks :)