Closed (fixed)
Project:
Flag
Version:
5.x-1.0-beta4
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
18 Oct 2008 at 22:17 UTC
Updated:
21 Nov 2008 at 14:03 UTC
Jump to comment: Most recent file
Comments
Comment #1
ibexy commentedI have the same problem. Any way of making flagged content appear on Profile page?
Comment #2
mooffie commentedMy mind-reading abilities aren't as good as they used to be, but I think Dan wants to put a flag/unflag link there (this is a "content type", in Panel's lingua), whereas you, ibexy, want to embed a view there. You embed a view listing flagged content in the same way you embed any other view (There's a "Views panes" module you need to enable).
Comment #3
ibexy commentedYes I created a flag for bookmarks and I succeded in embedding the view in the Profile but the currently logged user's in bookmarks shows for every profile page I visit. I have tried with the argument section of the view but its just not working. I know its the UID thing but I cant get it to work.
Comment #4
mooffie commentedibexy,
- First you need to construct a view that gets as an arguent the user ID by which to filter the flagged nodes (and lists these nodes).
- Then, make sure this view works.
- Then, you need to use the "Views panes" module to embed your view in a panel. You need to pass the view the user ID argument.
I explained the third step a couple of times here, but the search engine is crap and I can't find it. I'll start a handbook page sometime soon (if you're impatient, search this issue queue for "panels" or "panel" --but for some reason I don't get results). I'll also have to explain how to construct a view. (If you're using Drupal 5, a similar view is explained in the handbook.)
Comment #5
mooffie commentedI'm marking this "needs info" because I want Dan to explain what he meant.
Comment #6
mooffie commentedI've started an Intergrating with Panels 2.x section in the handbook. Ibexy, you'll find your answer there.
Comment #7
typehost commentedmooffie
I really appreciate your documentation with this - excellent, but for some reason I am still not getting the result.
Views with Drupal 5.12:
page view
url: user/$arg/bookmarks
table view
table fields - same as tracker
Argument: Flags 'Bookmarks' for UID
--> have tried empty text, summary, display all - does this matter?
Filters:
1. node published - yes
2. Flag: Bookmarks - is flagged by "any user"
This should really do it - I create a views pane for the view
Panels 2:
select "from context" on the argument
required context - user
Basically, with "flagged by any user" I am getting all bookmarked pages on all profiles, and with "flagged by logged in user" I am getting the logged in user's flags on every profile - for some reason the argument doesn't seem to be applied.
I am going to attach screenshots of both configurations, maybe you have an idea as to what I am missing here.
Thanks in advance.
Comment #8
mooffie commentedTypehost, does the view itself work?
When you go to ?q=user/3/bookmarks, do you see the bookmarkings of user #3 only?
When you go to ?q=user/7/bookmarks, do you see the bookmarkings of user #7 only?
However, note that there's a little problem here. If you're using the same URL (user/$arg/bookmarks) for both your view and your panel then I don't know what would happen. I don't know if it's the panel or the view that you'll see on screen. So first change your view's URL to something else, say
person/$arg/bookmarks, and please answer the above questions but with the new URL.In other words, we should first verify that your view is OK. If, and only if, it works as expected, we can continue to the next step (Panels).
Comment #9
typehost commented?q=user/3/bookmarks (or any number for user) is showing all of the bookmarked pages for the site, including one that has been bookmarked by two users.
Comment #10
mooffie commentedTypehost, please change the view's URL to
person/$arg/bookmarks. Now, does ?q=person/3/bookmarks shows the bookmarkings for user #3 only?(Sorry if I seem nagging.)
Comment #11
typehost commentedI have done that and there is no change - same with ?q=person/3/bookmarks
or clean urls: person/3/bookmarks
All the site's flagged posts display regardless of user number.
Comment #12
mooffie commentedTypehost, please remove the 'Flag: Bookmarks' filter (it's the one having "Is Flagged By ... Any User" beside it) and try again.
(This filter is not supposed to affect the results, but I've just tested this on my system and I suspect our module has a bug here.)
Comment #13
typehost commentedI have removed the "Flag: Bookmarks" filter and it appears to be working correctly on both the views and the panels pages.
Comment #14
mooffie commentedTypehost, thanks for the report. I tracked down the bug and opened a new issue: #331367: Bug in D5's argument handler.
Comment #15
mooffie commentedI'm closing this issue because there's already a section in our handbook explaining the subject, and because Dan (the original poster) hasn't returned to explain himself.
Comment #16
typehost commentedmany thanks for your help in working out the problem here - I really appreciate it