I know, using the default profile, you can see people's favorites on their profile page. However, I'm using panels and APK, and would like to insert the everyone's own favorites into a panel on their own advanced profile page. I thought I had it, but I realized it was only for the logged-in user, so I would see my own favorites on everybody's profile pages.

Is there already a way to do this, and I'm just stupid?

Thanks!

Comments

johlin23’s picture

Status: Active » Closed (fixed)

Hey you know what? Turns out I am just stupid. I figured it out through views. Sigh.

mcload’s picture

I am trying to do the same thing. Added "favorite nodes" to profile panel, but it shows only the logged in user's profile. Could you please explain in steps how you did it?

johlin23’s picture

Sure!

So, first thing I did was add a new view called "Favorites". I made its view type: Node.
Then I added an argument, and selected "Favorite Nodes: User ID". I didn't change anything in the settings, so I just hit update.
Then, I added a field, and selected "Node: Title". I erased the label, because I wanted just the nodes showing up on the favorites list. I also checked "Link field to this node" so the list acts as a link list.
Then I saved this view.

Next, I went to Panel Pages and edited the User Profile panel page (it should be there from APK, I think.)
I hit the Content Tab, and clicked the add button. There should be a "Favorites: Defaults" option under Views.
In the first drop-down menu, "Favorite Nodes: User ID", I selected the context "User ID". If that isn't t here, then go back to the Context tab and add it as an argument.
Then save, and it should work. Hope that helps!

mcload’s picture

Yes, it is working. Thank you very much!