Inserting a form or content creation into a page?

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
morisy's picture

Hi,

Spare Change News had me add on a feature where users can, anonymously if they want, answer a given question each week with their response. Comments would have been PERFECT, but they wanted a few extra fields so I created two new content types:

Burning Question: Just basically a title and a question

Community Response: A response that is tagged to a given questions and lets users input their vendor, hometown, and first name/last initial.

I have a very kludgy version working almost the way I want it, where the responses show up below an associated question, but I'd like to embed some kind of form on this page to capture those responses, ideally picking some of the fields (like the question the response is about or the vendor the response is associated with) based on the previous page.

If that doesn't work, simply embedding the "create community response" form below it would work fine too. Does anyone have experience doing this? I couldn't figure out how to get it done in views or pages, but auto-fill from URL seemed like it might be a good fit.

Anyone have tips?

Comments

http://drupal.org/project/nod

hefox's picture

http://drupal.org/project/nodecomment
http://drupal.org/project/prepopulate

and you can add a form anywhere via a bit of php, drupal_get_form, see http://api.drupal.org/api/function/node_add/6 to add node add forms

Thank you thank you! This

morisy's picture

Thank you thank you! This looks perfect.

Web guy, SpareChangeNews.net
Twitter: @morisy / @sparechangenews

Boston

Group categories

More Specifically

Group events

Add to calendar

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week