简体   繁体   中英

Drupal webform submission - Comments, like

We have an small internal webform setup within the business that currently collects ideas for the business submitted by users which are emailed off to single email inbox. This has been in place for a while now and has generated 100's of submissions.

The business would like to encourage more user interactivity by:

  • Allowing users to see all submissions (after they've been confirmed by the admin, perhaps pulled in via a view or into individual nodes)
  • Allowing anonymous users to comment on each webform submission
  • Allowing anonymous users to like a submission via a button

Currently it does the job perfectly well as a webform and has a lot of submissions, but not sure if webforms are flexible enough to allow the new functionality the business wants.

Thoughts were if there was a way to turn all submissions into nodes then create a view to pull in all these nodes, which would then allow commenting etc...

Could anyone suggest a best way of approaching this or what modules might work for this?

My first thoughts are create a content type with the same fields as your webform.

Then create a feed and feed importer to import the webform submissions as nodes.

You will need the following modules and dependencies:

With views data export you can create an XML feed

Feeds and Feeds extensible parsers will allow you to import the XML feed with XPath.

To allow submissions to be moderated, I would recommend:

You can use these modules to have a nice workflow of draft -> needs review -> published. This will store a revision of each edit also.

Drupal has comments built in, you may need to enable the comment module, you can also set these up so they have to be moderated first, please be advised this may require a fulltime website moderator. You could use a flag ( https://www.drupal.org/project/flag ) such as report as offensive instead allowing users to flag inappropriate comments for removal. A view could then be made showing all comments that have been flagged. Using a module such as VBO ( https://www.drupal.org/project/views_bulk_operations ) will allow you to delete multiple comments at a time.

A like button can be achieved with flags there is a module ( https://www.drupal.org/project/dlike ) however it would be just as easy to create your own flag.

If you would like any further help/further explaination please let me know.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM