Closed (fixed)
Project:
Views (for Drupal 7)
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
22 Sep 2008 at 05:31 UTC
Updated:
3 May 2010 at 20:33 UTC
Hi,
I created a view to be used in the user profile so that when user A goes to user B's profile, user A should be able to see user B's content in the view, not A's own content.
But, the problem is that there is no filter to do this job as far as I see. There are filters like "Author is Current User", or "Current user authored, or commented", but they don't do the job. If I use "Author is Current User" filter, when user A goes to user B's profile, user A sees its own content rather than user B's since user A is being the current user, not the owner of current profile.
So, in this regard, I was wondering if there is anybody, who could help me out. I appreciate any help and advice.
Comments
Comment #1
merlinofchaos commentedTo set this up as a tab on a user's profile, do this:
set the path to user/$arg/content
Tell it to provide a menu item as a tab. There's no need for a tab parent, so don't check those boxes.
Add "Argument: User ID"
Set the rest of the view up to display the content however you like.
Comment #2
trainspotting commentedThanks for your help, Earl.
It did really work! and I am thankful to you for it.
-dogu
Comment #3
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #4
cratos commentedI'm also trying this in Views 6.x-2.0-rc4.
I'm creating a Views for a Block with the same functionality that dogu wanted.
I've added the "Argument >> user id", didnt set any title. But the behavior of the view remains as if no argument was set.
Also defined a title for the argument and then added a filter and tried to filter the User ID by the title of the argument. Didnt work:(.
I feel like something is missing... Can someone help me?
Thanks
PS: Dont Know if i should post this as a new issue???
Comment #5
cratos commentedFound the answer in http://drupal.org/node/239573. DAMN.
Looks like i'm going to dive in PHP...
Comment #6
jumoke commentedsubscribing to this thread.