0

How can I give relation once content type to other. Eg If I have a product and the product sub items. I need to make a product content and a product_sub_item content type. Also need to select the product while creating the sub item. How to achieve this relation

4 Answers 4

2

Check out the module "References". It allows you to create a field where you can reference on other content types and nodes.

1

In addition, you might also want to take a look at the module Relation which looks to have a brighter future in terms of active maintenance and integration with other Drupal contribs. Another module that will come handy is Rules.

For both modules there are good introductory screencasts available by Johan Falk on http://dev.nodeone.se/sv

1

I discuss some of the different options available here: http://drupal.org/node/1293792#comment-5275780

This discussion is particularly relevant if you care about back-references. For your use case, perhaps references & cnr would give the best user experience.

0

Using node_references cck module we can achive this. In manage fields need to create a new field and select the type node reference and the parent type to be referenced

1
  • When you ask a question, you should specify whether you mean Drupal 6 or Drupal 7. This answer is for Drupal 6; the other answers above all presumed Drupal 7. Dec 12, 2011 at 17:58

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.