It would be great to be able to set up a view that lists userspecific data inside of node profiles. E.g. when I click on the content type/node profile "list of posts of type x" under user John, I get a list of all post of type x that user John has done. I tried out but it currently does not seem to be possible to tell a view to just display data according to the user ID inside of a usernode/node profile. Maybe this is an issue for views?

Comments

fago’s picture

yep, that should be doable by using the appropriate argument for views..

Axel_V’s picture

Well this is good news. Thanks for pointing this out. I had posted this issue in the forum before and nobody answered which is always a good indicator that I was asking something totally obvious and stupid. I've tried to figure out how this argument-thingy works though before and read the article in the handbook. I just didn't get it. I'll try it again and maybe I can sort it out this time. If I find the solution I can post a little how-to here.
xl

fago’s picture

maybe I can help you a bit to get started:
In your usernode template use:

$user = usernode_get_user(node_load($nid));
//then $user->uid is the uid of your user
//build a view that lists content like you desire and choose the argument: Node Author Uid
//then call your view and give it the uid as argument, e.g.:

print views_view_page('your_views_name', $user->uid);

fago’s picture

Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)