Overview

I have a product page I created with CCK. I also have a review page I created with CCK. The products gets their reviews from the review page as the review pages are comments for the product page. I also have a CCK ImageField attached to the product page so users can upload a picture of the product to the product page. The review page shares this ImageField and reviewers can upload pictures of the product with their reviews as well.

The Problem

I am trying to use Views 2 to display all the pictures associated with that specific product (pictures from the product ImageField and pictures from the reviews ImageField). This is what I'm doing in Views: I add a Field and select the ImageField. This now displays every image for all of the products and all of the reviews. I can add an Argument and choose the Node Id From URL. This now shows only the pictures associated with that specific product at that URL and none of the pictures from node comments. (Which makes sense since the node comments have a different node id). If I go to Relationships and add the Parent Comment ID relationship, I can associate this relationship with my argument. Now the View only shows the pictures associated with each review for that URL and none of the pictures from the product page.

How do I Solve This?

How do I get Views to display the pictures from both the product page and the review page when I'm trying to sort by the node id of the URL?

Thank you,
-Aaron-

Comments

zroger’s picture

You should be able to add a field to your view and select "Node" as the relationship.

Hope this helps.

zroger’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.