Hi,
I am trying to display a user's bookmarks on their profile page (visible to all, not just to the user). It's almost exactly this:
http://drupal.org/node/282024
But instead of displaying the view as a page, I want to display it as a block, in a panel. I am totally lost. Views defeats me every time.

I get that I can make user/$arg/favorites my URL (and it works!), but can I do something similar with block so I can display in a panel? (Do I need to make use of the UserID context in some way?)

(Also, please let me know if this is totally the wrong place to ask this.)

Thanks for any insight you may be able to offer --
Eileen

Comments

mooffie’s picture

I get that I can make user/$arg/favorites my URL (and it works!)

That's good, so you're half there.

but can I do something similar with block so I can display in a panel?

You don't need to mess up with blocks. Just enable the "Views panes" module and you'll be able to define a new pane that shows that view.

The only "challenge" left is how to pass the UID argument to the view. I explained this to a user here:

http://drupal.org/node/290808

(Also, please let me know if this is totally the wrong place to ask this.)

It's ok to ask it here. But you should know that the question actually has nothing to do with the Flag module. The question at hand is "How do I show a view in a pane, and how do I pass it some argument?" --it's worth to know this so that one doesn't chase a red herring.

mooffie’s picture

Status: Active » Fixed

I'm closing this. Please re-open if you have questions/problems.

chadchandler’s picture

Adding to anyone interested. All you need to do if you want this in panels is to add the required context (user) as a view pane, and then insert it with a mini-panel.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

Anonymous’s picture

Issue summary: View changes

This might be a bit late but will help someone for sure.

This is how to create a bookmark link in a block using views (Drupal 7 and 8):

  1. Create a custom Views using content and fields
  2. Go to Advanced -> Contextual Filters -> Add
  3. Search for ID and add it ... should be ID Content (NOT UUID)
  4. WHEN THE FILTER VALUE IS NOT AVAILABLE
  5. Tick -> Provide default value
  6. Type -> Content ID from URL
  7. WHEN THE FILTER VALUE IS NOT AVAILABLE
  8. Tick -> Specify validation criteria
  9. Validator select -> Content
  10. Multiple arguments -> Single ID
  11. Add -> RELATIONSHIPS (Advanced)
  12. Add -> Content flag
  13. Fields -> Add -> Flagging: Flag link

Have fun