By amklose on
I created a content type called RSVP so visitors can respond to event invites. I want to place a link on the event info page to add an RSVP, but I want the title inside the RSVP to automatically fill in (maybe with an argument from the URL).
For example, on the event info page for a certain event, I want to put a link with this url: http://www.example.com/node/add/RSVP?name=Founders%20Day%202010
...or something like that, and then have the title field in the content type fill in with "Founders Day 2010". Does that make any sense, and if so, is that possible? I'm new with using arguments in Drupal, so any help would be appreciated.
Comments
node reference
you should set the rsvp up with a node reference field that points to the event content type, so that the rsvp and the event have a true relationship in the database. that way you can do neat stuff like creating a block that's only visible to administrators, which lists all the RSVPs for an event on the event page itself.
take a look at these tutorials to get an idea how this would work. in your case you'd have an event instead of a gallery, and an rsvp instead of an image. same idea though. you wouldn't need to do the views_attach part unless you wanted to list the rsvps on the event page, but the node reference url module is key as that's your "autofill" feature.
http://www.lullabot.com/articles/photo-galleries-views-attach
http://mustardseedmedia.com/podcast/episode37