0

I have a Content Type called locations. I need to be able to assign these to Drupal users. Some users will have multiple locations.

Is there a module that will let me do this, or what are some suggestions you all might have?

2 Answers 2

2

There is a way but it may not be ideal depending on how far you are along in your site development. The way you would link content to content is through the node_reference field that comes with the CCK module. The problem is that this doesn't work with Drupal profiles in 6.x, only nodes. One solution is to install the content profile module

http://drupal.org/project/content_profile

which allows you to create a new content type for your profiles. From there, you would just add a field of type 'node_reference' to your new profile content type and connect it to 'locations', and allow the user to make multiple selections, etc.

Of course this is less than ideal if you already have a significant number of profiles on the system but there is a migration path from the core drupal profile data to the new type in another module:

http://drupal.org/project/profile_migrate

0
1

Disclaimer: It's been a while since I worked in Drupal 6, so there may be a more elegant way to do it.

My method basically consists of 2 steps:

  1. Use the Content Profile module to build user profiles as nodes
  2. Use the Content Construction Kit module and specifically the NodeReference part of it to associate a profile with a location from your custom content type.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.