I have installed the advanced profile kit module. I am definitely enjoying the use of the module. However, I am experiencing a small problem, which I hope to receive some help on.
I am using the user relationships module too. And I have more than one user relationship set-up, such and friend and spouse. The problem is, if a member has more than one user relationship, such as friend and spouse, with the other user, then that user shows up twice in the friends gallery on the profile page.
I am trying to edit the following (to get it to only display one), however, I am having trouble with it:
admin/build/views/edit/apk_ur_friends_gallery
Can someone suggest a method to only have a user show up once, in the friends gallery, even though they might have multiple user relationships with the other member? Thanks!
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | desing freinds-gellery.jpg | 89.79 KB | poli |
Comments
Comment #1
michelleThis isn't something I can help with. I don't have multiple relationships enabled on my site and don't know what's involved in making that work with Views. Moving this over to UR's queue to see if he can help you make the view you want.
Michelle
Comment #2
alex.k commentedThe problem is that the view is of type "user relationship", so it will display as many records as the user has relationships. In order to eliminate the duplicates, the view has to be of a "user" type, so that the distinct option can work. I am not certain this situation is generic enough to warrant changing the default view in APK. For example, someone may instead want to group by relationship type, or to filter to a certain type. Thoughts?
Comment #3
michelleThe view in APK is just supposed to be a simple "Friends" view like you see on Facebook. If you need something more complicated, that's getting into a custom view. APK is a kit... It's not necessary to use all the pieces. Someone with more complex needs can just replace the view on the page.
Michelle
Comment #4
alex.k commentedComment #5
ukrdrupal commentedI think the response by Michelle and Alex is a cop out, personally. You can say that it is too custom and APK is just a simple friends and just a kit, etc. But that just shows that it is barely extensible. Sad to see such responses.
Comment #6
alex.k commented@ukrdrupal you can create a new view and use it in place of the default one. No changes to either module are necessary. Per #2 you need to start with a view of type "User", then add views relationships so that you can bring in data about the other end of your user relationship. All the pieces to do this are already in UR-Views.
Comment #7
michelleIf it's a cop out that I won't create a view for you, for free, that I have no need for and that the other 6K users of the module have not asked for, so be it. I'm sorry that my free service hasn't been adequate. You're welcome to your money back.
Michelle
Comment #8
poli commentedHello,
I'm starting construction site and would love to have a board please.
I try to harmonize the presentation of the gallery "Content Pane", with that of the "Page".
I work with the panel for kit page profile.
When I click on "see all friends" and the page opens I would like to re-create the same template for this page.
Someone have already solved this problem? All paths welcome
Thank you in advance for your help.
See screenshot
Comment #9
mrf commentedpoli, you can create that with views as well, no additional customizations needed.