I've installed the following modules into Drupal 6:
Views 2
Panels
Advanced Profile Kit
Content Profile
Using views I've managed to create a list of nodes submitted by all users.
Also, using the arguments feature in Views.module, I've been able to create dynamically generated pages listing the nodes by the username included in the URL, e.g. www.mydomain.com/nodes/user-a will display all the nodes by user-a
Separate of this, I'm using Using Advanced Profile Kit, Content Profile and Panels to replace users' profiles with a dynamically generated panels page.
My problem is that if I place the node list view I've created into a panel, how do I use arguments or relationships to tell the view that I want to list the nodes for the user whose profile it is? I've tried so many different combinations, but I either get no nodes or everyone's nodes.
Any help/guidance would be appreciated.
Thanks,
Alex
Comments
Anyone have any ideas? I've
Anyone have any ideas? I've tried using basically every option I can think of based on arguments and relationships to link the embedded view to the username of the person whose profile panel is being displayed, but either I get a list of all the nodes or none at all, I simply cannot find the way to list just the nodes created by the person whose profile it is.
Thoughts?
Thanks,
Alex
I subscribe!
I'd love to find out how to do this too.
Same as you : I have a list of users, each have profile pages, then I want to use a single view, that I will display on the profile pages. That view will list the content created by this user.
I want to avoid creating a single view for each user, if that's possible!
Thanks
This seems like it should be easier... HERE'S THE ANSWER!
This seems like it should be easier.
It's been explained the author to node relationship is baked in for legacy purposes... so I don't think you need to explicitly call it out.
On the "User: Uid" Argument click "Provide default argument"
Then select "User ID from URL"
I went ahead with Validation on "User" and chose: "Only allow numeric UIDs"
Yay!
This was found in the Views2 Documentation: http://views-help.doc.logrus.com/help/views/argument
You're welcome for answering questions MerlinOC :)
I got it, thanks!
I got it, thanks!
Great that you achieved it!
Great that you achieved it! I'm still having problems...
How are you creating your user's URL? I'm doing mydomain.com/username - I assume that needs some kind of variation?
Perhaps if you would be so kind you could help gives us a step-by-step recipe of all your settings in Views for achieving this, as it's safe to say many people are being driven crazy trying to get this working.
Thanks,
Alex
Doublejosh, your are the man!
Thanks, this did it for me. Plus, it helped understand arguments a bit further.
Cheers,
.
If you're using APK, why not simply use the view that comes with it and is already set to show that user's nodes?
Michelle
The one that came with APK
The one that came with APK didn't seem to work for me (just came up blank) not sure why...
AKP
Hello Michelle,
Thanks for your great module.
Could you please detail a bit more the process to display the profile created by the users with APK ?
at the moemnt , users may edit their profile but can't view the profile of other users. I think I set up the permission correctly and I use the standard APK but I see no information from the AKP in users' profile
Thanks
http://www.webstanz.be
Maybe this module
Maybe this module helps............http://drupal.org/project/user_list
If you are using APK with
If you are using APK with panels, you need to configure your panels page to provide context from the panel that contains the node, otherwise the node loaded is the panels, which doesnt have a user id
_
How do you set the panels page to provide the contex from the panel containing the node?
Content profile
If you are using Content Profile, it provides the relationship so the user page variants have both the user context and the node context of the profile node(s).
Michelle