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

dawehner’s picture

Status: Active » Postponed (maintainer needs more info)

I 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.

adityakg’s picture

Do 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

zak_umich’s picture

Thanks 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

zak_umich’s picture

Thanks 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

esmerel’s picture

Status: Postponed (maintainer needs more info) » Active
WorldFallz’s picture

Assigned: Unassigned » WorldFallz
Status: Active » Postponed (maintainer needs more info)

if 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.

esmerel’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

no activity for 30 days