bssb_link_modifier
1 sites
No security coverage
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