Community & Support

Looking for a way to create related content types that reference each other

I have two types of content that are both created with CCK:

1. Opportunity
2. Proposal

We first create a new opportunity node and fill the details. We work the opportunity until we create a proposal, and then create the proposal.

A) I am looking for a way that while viewing an opportunity we can have a button that says something like: "Create Proposal" and have that take us to create a proposal that will be related to the opportunity we started from.

B) We are wanting to list at the bottom, or on a sidebar the proposals for an opportunity that we are viewing.

C) Similar to B, we would like to show the related opportunities to the proposal we are viewing.

I hope this makes since, and somebody may be able to give me a little bit of direction to accomplish this.

Thank you in advanced!

Comments

Try the relativity module

You should give the relativity module a try:
http://drupal.org/project/relativity

It allows you to create parent-child relationships. Once the relationship between the parent type and the child type has been set up, you can create child nodes from the parent, you can navigate from the parent to its childs and the other way around.

Groen

Thank you

Thank you for the suggestion, had never heard of that module. I have installed it, working on figuring it out right now.

_

you may wish to look into using using the cck nodereference field (part of the core cck package), and optionally the nodereferrer and nodereference_url modules. Node references seem to be moving away from all these one-off implementations (relativity, node2node, etc) in favor of standard nodereferences. With views 2 you really don't need anything else. You may also want to look at the views_attach module as well (for placing a view of referenced nodes on the referencing node).

_
Don't be a Help Vampire - read and abide the forum guidelines.
If you find my assistance useful, please pay it forward to your fellow drupalers.

nobody click here