Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). Varbase Media Header 9.2.1 Minor update available for module varbase_media_header (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Content Translation Redirect Module content_translation_redirect crossed 1,000 active installs.

This module allows site administrators to choose which node field is used for sharing links in the Better Social Sharing Buttons module. It provides flexibility in customizing the content that gets shared across social media platforms.

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
Releases (12 mo)
0 ▼ from 2
Maintenance
Dormant

Releases

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