Create Two Content Items from One Content Type: Event & Location (Possible?)

Events happening in the community are now at Drupal community events on www.drupal.org.
shinz83's picture

My organization has two types of events: (1) Events Hosted by Us (2) State-Wide Events Hosted by Member Orgs.

Our event type node references a "Location" content type in order to show a google map on the event page -- built using this tutorial

I want to allow member organizations to submit events to a calendar without having to first create a location separately.

My question is: Is there a way to allow users to create an event on one page and generate not only an event, but a location to be associated with the event, thus feeding the map capability? Or will an item from the location content type have to be created separately in order to have the map functionality?

I appreciate your consideration of this convoluted query.

Comments

Yes, you should look into how

irakli's picture

Yes,

you should look into how authors are attached to the articles. Doing it similar way would be the most straightforward way of achieving what you need, I believe.

.............................................
http://twitter.com/inadarei

Alright - I like it

shinz83's picture

I've explored some of the "Features" and it appears that the OP article feature references author the way I want OP Event to reference my new content type "Location".

I think I might have to dive into the OP Article and OP Event feature module sets in order to get a look under the hood.

What seems easy usually is, and usually takes a long time to figure out.

Help displaying locative information in Event

chinnerz's picture

I would also like to display the locative information (street address, city) in an Event node, similar to the way locative information is displayed at the end of an article in OP. Can someone suggest how this is done?

this tutorial will help you...

shinz83's picture

http://ninjagirl.com/posts/012/display-gmap-referenced-location

However, the main thrust of my post was to discover how to create a node reference to a location while creating an event. The same way you can create an author from the 'create article' page.

I am also interested in this.

UNarmed's picture

I am also interested in this. I gather that you basically want to create two different pieces of content from one content creation form and then have the one reference the other automatically? If i find anything of use i will post her.

Found anything?

muis's picture

Hi has anyone found anything? If so please share ;)

For a project I use

hanno's picture

For a project I use http://drupal.org/project/node_widget
You can add a nodereference field and in the edit form you will be able to add the referenced node directly (Might not work with all cck fields).

OpenPublish

Group organizers

Group categories

Group notifications

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