Hello.

If this question is posted in the wrong area (e.g. instead of views), I apologize. I should also mention that I'm new to drupal right away, and that this is more of a "why" question, than a "how" question. I got what I needed, but not how my logic would imply I should get there.

Anyway, I was trying to use views to "glue together" ed_classifieds and content profile.

I installed both modules and created the proper content profile content type with email and phone number fields. So far so good...

My final step was to get the classified listings to show up with the fields from the AUTHOR's content profile. In reading about relationships from views, I figured that I would need to create a view and:
. create a relationship to the author
. create a relationship between the author and the content profile

However, all I had to do was create a relationship to the content profile, and I was done. How is this possible? Didn't I skip a step? It looks like views "guessed" to build the query in such a way that the author's content profile was selected.

The reason I'm asking this even though it works is because this potential chaining of relationships seems very powerful, and it seems like I'm misunderstanding how to build these types of relationships. For example, I could also show the email addresses of any authors of comments to a node as well.

Thanks!
Al

Comments

captainack’s picture

Priority: Normal » Minor
Status: Active » Closed (fixed)

For anyone who might stumble upon this very old request I'd posted, here's the answer:

This is an effect of views, not content profile. The author is automatically included, and needs no explicit relationship.