I have a content type where the title is the name of a specific location. I have another content type that is used to create an event.... Now obviously an event needs a location, so within the event content type I would like maybe a dropdown menu to select the location which is the title of the location content type and also have that title (which would then reside within the event node) link to the location's node.

Anyone have any ideas?

Comments

frdesign’s picture

I did something like that a while ago using these 2 modules. Don't remember the exact details but it works something like this:

You can create a view that will give you the list of locations using filters and arguments to limit results. The CCK node reference module, which is a CCK field, lets you select a view to populate the drop down select list.

To show the selected location title within the event node you'll need another view which lists location nodes related to that event and put it in the node as a block using nid as argument.

Google "node reference" and "reverse node reference" and you should find detailed tutorials.

radler’s picture

I cannot find anything for the CCK node reference module. This isnt the first module someone's suggested to me that I couldn't locate, but I've seen references to the module when I googled it but I cannot find the module. Is it for 6.x?

marcvangend’s picture

Node reference is part of the core CCK package, so just download CCK from http://drupal.org/project/cck and you'll be fine.

radler’s picture

hahaha... I'm an idiot!

Thanks for the help!