0

How can I display Profile2 fields in a view that has a content type as filter?

Later edit(example):

I have a view which displays a content-type X. I have a profile Y with different fields. I would like to be able to add fields from profile Y to the view which already has fields from content-type X.

1
  • How profile Y is related to content type X? If they are not related, you just have 2 independent lists. What result do you want to get?
    – kalabro
    Nov 21, 2012 at 13:40

1 Answer 1

0

First you need to add User relationship, “Content: Author” for example. After that you will be able to add new relationship “User: Profile” on base of User relationship.

enter image description here

Now you can add fields from user and user profile. You must not forget that SQL query becomes heavier with each new relationship.

3
  • this somehow works , but it does not as the way i want it. I would like to be able to get all the profiles of type x and also all the content type of type y. I tried your method and it does not work the way i expected it.
    – Vlasin
    Nov 21, 2012 at 12:31
  • Please, update your question with details.
    – kalabro
    Nov 21, 2012 at 12:37
  • just to let you know i have edited the question
    – Vlasin
    Nov 21, 2012 at 12:49

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.