How to display only those nodes created by users in thier account ?

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
tejaspmehta's picture

Hello Everyone,

This sounds too basic question but i did not get solution from sometime so i am asking this one.

I need to create one view in which user can see only those nodes which are posted by himself. means there are 5 nodes in which 2 nodes created by user1 and 3 nodes created by user2 then when after login user1 check this view it will display those 2 nodes only which are posted by him only. And for user2 3 nodes will be displayed.

I did try few filters but didn't get any idea and even argument and relationship also didn't helped.

Thank you
Tejas Mehta

Comments

If I want to display a given

caschbre's picture

If I want to display a given content type for the logged in user, I use an argument.

Argument: User: Uid
Provide default argument --> User ID from logged in user

That should do it.

Thank you caschbre. You saved

tejaspmehta's picture

Thank you caschbre.
You saved my day. I did try this but it didn't worked but i have selected another argument. Do not remember which i had. Thank you once again.

Thank you
Tejas Mehta

Views Developers

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week