Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Release: Opensolr Search 4.5.0 Minor update available for module opensolr_search (4.5.0). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: Video.js (HTML5 Video Player) 10.0.0-alpha1 First alpha version released for module videojs (10.0.0-alpha1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Better social sharing buttons link modifier

1 sites No security coverage Drupal 10–11
View on drupal.org

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

Depends on

Dependencies of the latest stable release

  • better_social_sharing_buttons Drupal core >=4.1.0

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Feb 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 2
Maintenance
Dormant

Releases

Version Type Core Release date
1.0.1 Stable 10–11 Feb 13, 2025
1.0.0 Stable 10–11 Feb 12, 2025