Skip to main content
tagging, clarity edit
Source Link
Shawn Conn
  • 26.9k
  • 15
  • 49
  • 73

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 theretheir current profile page. The problem is when an admin views a normal user profile page its showing the admins content not that users content. I have created a content type that my users can make for projects. However, I want to change the view so that should an admin view a users profile it willto show that usersthe 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 uuiduid of the profile page rather thenthan 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

my Provide default value is set to User ID from logged in user as this works for normal users will not work for an admin looking at the profile of a normal user.

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 there current profile page. The problem is when an admin views a normal user profile page its showing the admins content not that users content. I have created a content type that my users can make for projects. I want to change the view so that should an admin view a users profile it will show that users content not the admins content. Is there a way to set the view to get the uuid of the profile page rather then the logged in user?

the settings I have right now are:

CONTEXTUAL FILTERS
   Content: Author uid
RELATIONSHIPS
   Content: Author

my Provide default value is set to User ID from logged in user as this works for normal users will not work for an admin looking at the profile of a normal user.

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
added 179 characters in body
Source Link

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 there current profile page. The problem is when an admin views a normal user profile page its showing the admins content not that users content. I have created a content type that my users can make for projects. I want to change the view so that should an admin view a users profile it will show that users content not the admins content. Is there a way to set the view to get the uuid of the profile page rather then the logged in user?

the settings I have right now are:

CONTEXTUAL FILTERS
   Content: Author uid
RELATIONSHIPS
   Content: Author

my Provide default value is set to User ID from logged in user as this works for normal users will not work for an admin looking at the profile of a normal user.

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 there current profile page. The problem is when an admin views a normal user profile page its showing the admins content not that users content. I have created a content type that my users can make for projects. I want to change the view so that should an admin view a users profile it will show that users content not the admins content. Is there a way to set the view to get the uuid of the profile page rather then the logged in user?

the settings I have right now are:

CONTEXTUAL FILTERS
   Content: Author uid
RELATIONSHIPS
   Content: Author

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 there current profile page. The problem is when an admin views a normal user profile page its showing the admins content not that users content. I have created a content type that my users can make for projects. I want to change the view so that should an admin view a users profile it will show that users content not the admins content. Is there a way to set the view to get the uuid of the profile page rather then the logged in user?

the settings I have right now are:

CONTEXTUAL FILTERS
   Content: Author uid
RELATIONSHIPS
   Content: Author

my Provide default value is set to User ID from logged in user as this works for normal users will not work for an admin looking at the profile of a normal user.

Source Link

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

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 there current profile page. The problem is when an admin views a normal user profile page its showing the admins content not that users content. I have created a content type that my users can make for projects. I want to change the view so that should an admin view a users profile it will show that users content not the admins content. Is there a way to set the view to get the uuid of the profile page rather then the logged in user?

the settings I have right now are:

CONTEXTUAL FILTERS
   Content: Author uid
RELATIONSHIPS
   Content: Author