Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Views Bootstrap 5.5.4 — Minor update available for module views_bootstrap (5.5.4). Release: Rightup theme 1.0.3 — Minor update available for theme vartheme_bs5_rightup (1.0.3). Release: CommentOn 1.0.6 — Minor update available for module commenton (1.0.6). Release: ChatGPT Ads 1.0.3 — Minor update available for module chatgpt_ads (1.0.3). Release: Opensolr Search 5.1.3 — Minor update available for module opensolr_search (5.1.3). Release: ServiceM8 Webform Integration 1.2.1 — Minor update available for module servicem8_webform (1.2.1). Release: PostfixAdmin 1.0.0 — Initial release available for module postfix_admin (1.0.0)! Release: ip_analyser 1.0.3 — Minor update available for module ip_analyser (1.0.3). Module Revived: Swagger-PHP OpenAPI 3 documentation generator 1.0.0 — Module swagger_php updated after 10 months of inactivity (1.0.0). Security Coverage: Microsoft Azure AI — Module ai_provider_azure now has official Drupal security advisory coverage.

📑 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)

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.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Jul 2024
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

Version Type Core Release date
1.0.x-dev Dev Jul 12, 2024