Thanks to some great new modules (usernode, nodeprofile, nodefamily) in connection with CCK I was able to set up some nice detailed user profiles with different kinds of node types such as "personal data", "contact data", etc.... Now I am struggeling with the following: I want to allow a specific user role to upload files. I then want a table view of the files to appear as part of the user profile. Obviously when clicking on user A's profile one should only see the list of files uploaded by user A. I don't know how to solve this. I've set up a new node type for uploading the files and I've set up a new table view for those files. But I don't know how to restrict the content of this view (as set up with the views module) to one individual user and how to display the view as part of the user profile.

Currently I display the different node types of a user profile on one page by calling them like this:

 <?php $children = nodefamily_relation_load($nid); ?>
 <?php if ($children[0]) {print node_view($children[1], TRUE, FALSE, TRUE);}?>
 <?php if ($children[1]) {print node_view($children[1], TRUE, FALSE, TRUE);}?>
 etc...

My questions are:
1. is there a way to call a specific view (as set up with the views module) as part of my user-profiles?
2. how can I restrict this view to only display the files uploaded by the user who's profile I'm looking at?

Comments

RainDruplets’s picture

Please tell me how this is done.

Regards,
rainDruplets