Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
📑 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.twig
template (e.g. you can copy the example provided in this module under/templates
)
Project information
- Module categories: Content Editing Experience, Developer Tools
- Ecosystem: Flag
- 158 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.
Releases
1.0.2
released 31 July 2022
Works with Drupal: ^8 || ^9 || ^10
✓ Recommended by the project’s maintainer.
First version for D8/9/10
Install: