Quantcast
Channel: Question and Answer » views-contextual-filters
Viewing all articles
Browse latest Browse all 57

view list on user profile, to show content of that user

$
0
0

I currently have a view that shows on the user profile page (as a block). I got it to show results of the content for the current logged in user.

This works great for normal users as they will only be able to see their current profile page. However, I want it to show the content for the shown profile, not the current user, since admins that view other user profiles will not see that user’s content.

Is there a way to set the view to get the uid of the profile page rather than the logged in user?

These are the view settings I have right now are:

CONTEXTUAL FILTERS
   Content: Author uid
      Provide default value: User ID from logged in user
RELATIONSHIPS
   Content: Author

Viewing all articles
Browse latest Browse all 57

Trending Articles