Closed (cannot reproduce)
Project:
Views (for Drupal 7)
Version:
6.x-3.0-alpha3
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
20 Jul 2010 at 01:51 UTC
Updated:
1 Jan 2011 at 11:16 UTC
Hi everyone,
I want to create a views block in a user content profile which shows relevant users based on cck fields in the logged on user or possibly the profile being viewed. I know I should use relationships or arguments. However, I don't know how to use them. So please advise on what to do.
Also I tried looking & found a couple of similar questions, but still can't figure it out.
http://drupal.org/node/444528
http://drupal.org/node/199078
Thanks a lot
Comments
Comment #1
dawehnerI explain profile being viewed.
Therefore add a argument user:uid with "provide default argument" user: uid from url.
If you use now relationships you can filter by certain fields related to the current viewed profile.
Sadly "relevant users" isn't a clear definition.
Comment #2
adityakg commentedDo you mean that you have user reference CCK field for listing relevant users in Content Profile? If yes then try to play with:
- CCK User Reference relationship and
- Node: Content Profile relationship
Comment #3
zak_umich commentedThanks a lot dereine!
Sorry for being unclear: relevant users is basically filtering using fields in the profile viewed.
When I follow your directions, I can view the profile of the userid (url or logged on) if I choose the content profile relationship & use that on the fields nothing happens.
Please advise.....
Thanks
Comment #4
zak_umich commentedThanks adityakg,
If you refer to my post #3 for more clarification on what I wanted.
One questions though, will the Node: Content Profile relationship link the filters used to the logged in user profile?
Best,
Zak
Comment #5
esmerel commentedComment #6
WorldFallz commentedif you can be more explicit in exactly what you're trying to do (ie "view x,y,z fields from core profile and a,b,c fields from content profile with the same values as the logged in user"), i can try to give more specific advice.
Comment #7
esmerel commentedno activity for 30 days