Bookmarks
Security covered
📑 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.
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
Releases
| Version | Type | Core | Release date | |
|---|---|---|---|---|
| 1.0.x-dev | Dev | Jul 12, 2024 |