0

When a user registers on my site, he/she chooses the college he attended and the course he/she studied from select list fields i created using the profile 2 module

Is there a way to create a View that displays to each user the people who attended the same college & studied the same course.

Thank you.

0

You can do it creating using Views with a contextual filter.

Profile2 has integration with views, and if you create a view's page display with a path like yoursite.com/user/[username/id]/users-with-same-college url. You get it!

Hope it helps.

Regards.

|improve this answer|||||
  • Please can you elaborate further? – seyi Oct 2 '14 at 7:33
  • Well, you have to create a view like any other, but dont forget to select users to displat, not nodes/content. Then, you have to add a contextual filter, select any field of the profile, and the users automatically are filter by this field. Maybe this link helps you: drupal.org/node/1111722 – Mario Araque Oct 2 '14 at 7:36

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.