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.
I needed to allow multiple links from one provider (multiple Twitter feeds, etc). The attached patch adds a new checkbox on the field admin page, "Allow multiple links from the same service".
Comment | File | Size | Author |
---|---|---|---|
#4 | socialfield-allow-multiple-from-same-provider-2506361-4.patch | 1.6 KB | hargobind |
socialfield-allow-multiple-from-same-provider.patch | 1.62 KB | jlyon |
Comments
Comment #1
jenlamptonThe patch looks good, but I'm not sure this is a common use-case? Let's leave this issue open and see if anyone else needs this feature, or uses this patch.
Comment #2
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedUse cases:
I have a few twitter accounts - one personal, one work, and another for special interests
Linkedin - i have a personal, a few groups that I manage, and my company
Comment #3
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedneeds to be rerolled.
it does work!
Comment #4
hargobindI have also found a use for this. It's fairly common for my customers to have multiple websites and social media accounts.
Attached is an updated patch, along with two changes:
1) Add a note to the field itself that changing the setting won't affect existing link data.
2) There was a bug in the original patch that just made all services appear instead of the ones that were selected when configuring the field.
This patch should apply cleanly to 1.x and 1.5.