8

I am puzzled. This was a very valuable option in D6 CCK, but since it moved into core, I can't find the option to create a noderef field (found a term reference field, though). I know it must be out there, where is it?

11

The project that maintains the Drupal 7 versions of the "node reference" and "user reference" field types is References.

Part of the code of CCK has been ported in core code, but some code is still living in third-party modules. CCK itself has a version for Drupal 7, which contains the code to update from Drupal 6 to Drupal 7 (among other things).

  • 2
    There's also the Relation module (drupal.org/project/relation) which will theoretically allow relationships between any entities (no actual release yet though). – jhedstrom Mar 29 '11 at 15:55
  • 4
    Relation builds an entity for every relation, you can add fields to the relation, make views out of the relations, etc. If this is overkill and all you want is a reference field for every entity in your site, try Entity Reference (drupal.org/project/entityreference). – Capi Etheriel Dec 5 '11 at 12:15
7

I found this summary very helpful.

I would skip References, it looks like it is on its way to being deprecated.

For simple D6 style user and node references use Entity Reference. This module is required by Drupal Commerce so as long as that project is alive and thriving so will entityreference.

If you looked at entity reference and your needs are more complicated check out Relation. You can come up with a very complicated entity relationship scheme using relation, but I wouldn't go down this road unless you know you need the flexibility.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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