Drupal is a registered trademark of Dries Buytaert

bssb_link_modifier

1 sites No security coverage
View on drupal.org

The Better Social Sharing Buttons Link Modifier module extends the functionality of the Better Social Sharing Buttons module by allowing customization of the shared URL. It enables site administrators to select a preferred URL source from available node fields, ensuring that shared links reflect the most relevant content.

Features
  • Integrates seamlessly with Better Social Sharing Buttons.
  • Allows administrators to specify a preferred URL field via configuration.
  • Supports additional URL sources from social installed modules.
  • Ensures compatibility with patched versions of better_social_sharing_buttons.
Additional Requirements
  • better_social_sharing_buttons (Version 4.1.0 or higher)
Installation

Version 4.1.0 of better social sharing buttons will need to be patched so it can include the support for items alter hook, modify your composer.json to include these patches

    "patches": {
            "drupal/better_social_sharing_buttons" : {
                "3495121, Allow enabling/disabling the sharing buttons per node": "https://git.drupalcode.org/project/better_social_sharing_buttons/-/commit/8500c57098fea0b3979e2002317356ae06a86037.patch",
                "3495121-2, Allow enabling/disabling the sharing buttons per node": "https://git.drupalcode.org/project/better_social_sharing_buttons/-/commit/7d8967568ef591aa8afb95b8557cab0f91985567.patch",
                "Replaces isset check with null coalescing operator": "https://git.drupalcode.org/project/better_social_sharing_buttons/-/commit/e4c1fcddabe47ad076fe4700a51d4794eacbbe1d.patch",
                "Add a custom hook to allow overriding buttons items": "https://git.drupalcode.org/project/better_social_sharing_buttons/-/commit/e7c0e985c6349c1e8e06ca71f77b2a883024ac00.patch"
            }
}

Use composer to install
composer require drupal/bssb_link_modifier
Then enable the module as per normal
drush en bssb_link_modifier

Head to the configuration page ../admin/config/services/better_social_sharing_buttons/config to adjust settings

Activity

Total releases
2
First release
Feb 2025
Latest release
1 year ago
Release cadence
1 day
Stability
100% stable

Releases

Version Type Release date
1.0.1 Stable Feb 13, 2025
1.0.0 Stable Feb 12, 2025