Allowing non-authenticated users to submit content to create a node?
Request Type:
Feature Request
Forums:
Issue/Request:
Currently we accept Class Notes from alumni via a webform here: https://divinity.yale.edu/alumni/class-notes/submit-your-class-notes
A student worker gets the webform results, then copy/pastes the text sent into the usual drupal node creation overlay using a content type: https://divinity.yale.edu/alumni/class-notes/submit-your-class-notes#ove…
Our alumni office would like to streamline this procedure so that the outward facing webform produces the content directly into the drupal workflow so the student worker or alumni staff just review then publish the content, more like how the blog comment system works without the copy/paste in-between.
Is this currently possible or is this something we can request as a module or have built?
Thank you!
Hi Campbell,
We’re looking into this.
Best,
Alyssa
HI Alyssa,
Great to hear! Is there any general deadline or time goal for this project? I just need to communicate with our head of Alumni Relations about what to expect.
Campbell
We can probably get this done by the end of the week. I’ll give you an update if it needs to take longer.
Alyssa
Oh that’s great. Thanks for the quick work. I look forward to hearing from you.
Hi Campbell,
I figured out a way to achieve this: anonymous users (and authenticated users) will be able to fill out the form for class notes. After they hit save, a node of type Alumni Class Note will be automatically created for your student workers to view by looking through the content in the admin interface. These nodes will be set to be Unpublished by default. If needed, I think that we can set up email alerts upon node creation.
Am I understanding correctly that this is what you had in mind?
Best,
Alyssa
With this solution, the webform won’t be necessary. We will only need the Alumni Class Note content type with a few additional fields, and we will link to that node edit form. So it will look as if you are editing the node as an admin user, except for anonymous users.
Alyssa,
That sounds perfect. Please go ahead and implement it and let me know what I need to do on my end.
Also, this wouldn’t have any impact on our existing class notes that are on the site here and archived: https://divinity.yale.edu/alumni/class-notes right?
Campbell
The existing nodes won’t be affected, and that particular page is generated by a view that is contingent on certain fields being filled in, so these shouldn’t affect that view until they are published.
I will let you know when it’s set up so you can see it before disabling the webform.
Great! Thanks so much.
You should see a second “submit class note” link under the original link in the menu: https://divinity.yale.edu/alumni/class-notes. As an anonymous user, please let me know if you are able to see the node creation form and then submit a test one if you’d like. It will be unpublished by default and an admin will be able to publish them after review. If this is OK, then I’ll disable the original link.
I was able to submit a class note as an anon user. So that’s successful!
Hold off on doing anything else for a bit. I want to poke around and make sure this is how we want everything to work.
Also, is there a way to prevent bots from submitting? Can we turn on a CAPTCHA for this form?
Yes, we can add CAPTCHA to this content type as we do with webforms.
Alyssa,
I’m looking over the content fields on the form and I realized parts of it will be confusing for anon users or are fields that we use internally but don’t want them to change.
Is it possible for you or me to hide certain fields from anon users?
The fields I would want to hide are:
Thank you for your ongoing help in this.
Campbell
Yes, I just hid those fields from anonymous users.
Oh that’s much better. Let’s remove the Revision Information field at the very bottom and add in the CAPTCHA. I think that’s the last that needs to happen.
Okay, this should be all set. Can you confirm?
I see the CAPTCHA check box at the bottom of the form now when I look at the form when not logged in.
I think that’s all we needed to do. Let’s go fully live.
Great. I removed the webform link from the submenu so now just this version displays. Do you also want to unpublish the original webform?
I went ahead and unpublished the form.
Thanks for all your work on this! Thanks!