Picture these content types:
Organization
- name
- bunch of business info fields

Location
- name
- node reference to Organization
- location info

An Organization can have many Locations.

What I want to do is present the user with an Add New Location form with a pre-populated and locked (or totally hidden) Node Reference, so they can only add locations to their business. Anyone accomplish something like this & willing to share? I can easily provide a node ID as an URL argument, like /node/add/location/2367 where 2367 is the Node ID of the associated Organization.

Thanks!

Comments

add1sun’s picture

The prepopulate module can fill in the field for you. There is currently a patch in the queue that will allow you to hide a prepopulated field (http://drupal.org/node/252053) so if you would be interested in testing and providing testing and feedback, I'd be willing to add the feature to the official release.

Lullabot loves you | Be a Ninja, join the Drupal Dojo

Drupalize.Me, The best Drupal training, available all the time, anywhere!