Closed (fixed)
Project:
Node Profile
Version:
4.7.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
6 Dec 2006 at 18:30 UTC
Updated:
16 Feb 2007 at 19:45 UTC
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
Comment #1
fagoyep, that should be doable by using the appropriate argument for views..
Comment #2
Axel_V commentedWell 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
Comment #3
fagomaybe 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);
Comment #4
fagoComment #5
(not verified) commented