Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
I required to add extra parameters for the urls to share. I have created a patch that does the following:
- Add an extra field to the admin form to set up the extra parameters
- Append extra parameters to the url
- Add extra check to only show widget in published nodes
I thought I should share in case someone else is looking for something similar. It is my first ever contribution, so please, treat me kindly :)
Comment | File | Size | Author |
---|---|---|---|
#2 | addtoany-add_url_param.patch | 1.58 KB | amacias |
addtoany-urlparams.patch | 3.47 KB | amacias |
Comments
Comment #1
micropat CreditAttribution: micropat commentedIncluded in 7.x-4.1! You did good, Andres. :)
Please post if there's additional interest in adding URL parameters to shared URLs, or other thoughts about how to implement (and feel free to re-open this).
Comment #2
amacias CreditAttribution: amacias commentedGreat, glad to help!
I attach the patch for adding extra urls parameters in case someone else (apart from me :) is interested.