📑 Allow users to save any page of your Drupal site as a favorite.
The bookmarked link can have a custom title - and even more fields if you want to add new ones on the flag:bookmark. Indeed, under the hood favorites are simply flagging entities referencing a path_alias and are stored per user.
How to use
Install the module as you would usually do:
composer require drupal/bookmarks
drush en bookmarks
Place the block to display the link on front:
- Go to Admin > Structure > Block layout
- Add the Bookmarksin one or more regions
(optional) Customize the template with a custom Twig:
- Create a custom
flag--bookmark.html.twigtemplate (e.g. you can copy the example provided in this module under/templates)
Alternatives
- Flag provides an example bookmark flag and supporting views. However, that sub-module only supports placing the bookmark link on content entities (i.e. Node pages). Whereas, this Bookmarks module allows a user to save any page of your Drupal site as a favorite.
- Drupal's core Shortcut module allows users to create and manage customizable lists of shortcut links to important pages on their site. Shortcuts can be organized into sets, and users can create as many sets as they like. For example, users can create sets for different roles, such as moderators, administrators, and users. Users with the "Select any shortcut set" permission can choose a shortcut set created by anyone on the site. Whereas, this Bookmarks module lists favorites specific to that user only.
Project information
- Project categories: Content editing experience, Developer tools
- Ecosystem: Flag
184 sites report using this module
- Created by matt westgate on , updated
Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.



