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.
Although not technically (external) social media, I believe the site RSS feed icon would be nice to have along with the FB, Twitter, Google+ icons etc.
It would be convenient to allow the user to specify a feed URL in the corresponding screen, in a similar fashion to the follow module.
Thank you
Comments
Comment #1
dddave CreditAttribution: dddave commentedThat would be pretty cool!
Comment #2
TomDude48 CreditAttribution: TomDude48 commentedI added this to the latest dev release. You can specify a default RSS feed or add multiple rss buttons and specify a feed for each one.
Comment #3
marktheshark CreditAttribution: marktheshark commentedThanks, I'll take a look and get back to you.
Comment #4
dddave CreditAttribution: dddave commentedSeems to be working fine. Thanks!
Comment #5
areikiera CreditAttribution: areikiera commentedHello! Thanks for adding the RSS option! I had a couple questions, and possibly a feature request if there's not a way around it.
On the default widget set 'socialmedia_profile-default', the RSS icon code is output like this:
2 things:
Thanks for any guidance! I can create a new issue if this should be reported separately. Just let me know!
Comment #6
areikiera CreditAttribution: areikiera commentedUpdating to 'Needs work' for the issues mentioned above, and changing version to beta11.
Comment #7
TomDude48 CreditAttribution: TomDude48 commentedareikiera,
I changed the alt text. As far as changing the feed name. You can go to the Widgets admin, edit the widget set and select the RSS widget to edit. The edit form will allow you to edit the feedname. Note: you will probably need to override the widget set to make changes.
Comment #8
marktheshark CreditAttribution: marktheshark commentedHello again,
Thanks for implementing this feature request.
I would like to make an additional recommendation:
Currently the module allows the admin to specify one feed location, however some people may have different feeds per language. For instance /rss.xml is my default language feed, but /en/rss.xml is the English feed. Per current design, selection of the correct language does not work properly.
My suggestion would be to evaluate the RSS path always as relative to the site root (as is done for menus) and pass the link to the 'l' function which I believe handles the language automatically.
Thank you
Comment #9
TomDude48 CreditAttribution: TomDude48 commentedI have added a call using the url function. I don't have a multi language setup right now. Can you verify this fixes the issue.
Comment #10
lsolesen CreditAttribution: lsolesen commentedThe rss feed icon is added even when no rss feed has been specified, e.g. for users. Therefore it still needs work.
Comment #11
sjhuskey CreditAttribution: sjhuskey commentedJust reporting that the issue mentioned in #5 above where the site name doesn't show up in the title of the link is still not resolved. I had to just change the code in socialmedia.widgets.inc from this:
$stitle2 = t("Subscribe to !varfeedname via RSS", array('!varfeedname' => '[?profile_username=[socialmedia:sm-rss_feedname]?]'));
to this:
$stitle2 = t("Subscribe to MYFEEDNAME via RSS");
That will break if there's an update to the module, of course, but I don't know what else to do. Suggestions?