By neoib on
Hi,
following problem. In views, how do I create a query which shows the content of a node from a particular user. Aim is to implement this form into the user panel.
Example:
1) I created a CCK form where the user can enter his birthdate and his gender.
2) John and Jane Doe enter their specific values
3) I want to create a view which is based on the user ID, so that the output of the view shows only Jane Does gender and birthdate
4) This view is then shown in the user profile
I am desperately looking for a walkthrough or a tutorial. Can anyone please help me on this matter?
Many thanks,
Neo
Comments
block view
create a block view with the filter on Gender and display the appropriate block to the user.
yashesh bhatia
Yashesh Bhatia
User ID Argument
You'll want to add an Argument for "User: Uid" and in the options select "Provide Default argument" and "User ID from URL". So when you're on Jane Doe's page (user/2) it will supply the proper user ID to the other parts of the view and show only Jane Doe's information (gender, birthdate, etc.)
Where did you create the CCK
Where did you create the CCK form?
If I'm understanding correctly. the simplest way is to enable the core Profile module and add a couple of fields to it. The content will then be shown automatically in the user profile with no need for CCK, Views, etc. Details at http://drupal.org/handbook/modules/profile
Sorry
there is another problem... with one field the content relation works fine... as soon when I add two panels, the input of the second field is not shown... any workaround?