How to setup a "bookmarks" tab on each user's profile page
Last updated on
30 April 2025
This module provides a default view, "My bookmarks". But it might be that you want to allow users to see other users' bookmarks.
If you want to setup a "user/%/bookmarks" tab on each user's profile page, these instructions are for you:
- Start a new view. (Make it a node-type view if you're flagging nodes; a user-type view if you're flagging users, etc.)
- As usual, pick a name, and possibly a description, for your view.
- Add a Page display.
- You may wish to style your view as a Table. Add the Node: Title field.
- Our tab needs a URL. Type
user/%/bookmarksin the Path setting (You can replace the "bookmarks" word with whatever you wish). - In the Menu setting choose "Menu tab" and type a short label into the Title
- Add the desired "Flags: Node flag" relationship (if you're flagging users, or comment, adjust accordingly). In this relationship settings form, choose by "Any user" to show all the flagged nodes (we'll filter them when we add the Argument).
- Add the "Flags: User" relationship.
- Add the "User: Uid" argument. In its "Relationship:" dropdown pick the "Flag user" relationship.
- You may want to type
Bookmarks for %1into the argument's Title box.
You're done.
Some refinements:
- You may want to type "This user hasn't bookmarked anything." into the Empty Text box.
- You may want to add the "Flags: Flagged time" field and let the user click-sort the table by it as well.
Help improve this page
Page status: Not set
You can:
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion