Screenshot showing the "Add/Remove" bookmark block
Screenshot of a the default Bookmarks views, displayed in a tab on User pages.

📑 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

Releases