I'm using Drupal 7.0 with the following modules:
Chaos Tool Suite 7.x-1.0-alpha2
Views 7.x-3.0-alpha1
Reference 7.x-2.x-dev
--------------------------------------------
This is my first Drupal project, so apologies if this has already been discussed. I've searched the forum, but couldn't find a suitable explanation.
Here's a basic example of my product structure:
[PRODUCT A] contains [PRODUCT 1] and [PRODUCT 2]
[PRODUCT 1] contains [PRODUCT 1 EDITION i] and [PRODUCT 1 EDITION ii]
[PRODUCT 2] contains [PRODUCT 2 EDITION i] and [PRODUCT 2 EDITION ii]
Using the References module, I've created a node reference field called "field_contains" that allows me to specify which products and contained within other products, thereby creating a hierarchy.
Now I need to display two blocks on each product page:
• CONTAINS - a list of all products that are contained within the product currently being viewed.
• CONTAINED WITHIN - a list of all products that contain the product currently being viewed.
To clarify, I want [PRODUCT 2 EDITION ii] to display [PRODUCT 2] and [PRODUCT A] in the CONTAINED WITHIN view.