selfoss icon indicating copy to clipboard operation
selfoss copied to clipboard

More "Share To" destinations

Open davimack opened this issue 8 months ago • 2 comments

I would like to ask for a slight rearrange and additional sharing options, at the bottom of the page. Currently the bottom menu presents:

Open Share on Twitter Share on Facebook Save to Pocket Share on Diaspora Share using email Next

I would like to have something like this, instead:

OpenNext
Share
Bluesky Diaspora
Discord Email
Facebook Mastodon
Pocket Slack
Twitter Whatsapp

By moving "Open" and "Next" together at the top, it's easier to ignore the expanded sharing options. It also brings the two most commonly used options closest to the article.

Ideally, the user could configure whether these individual sharing options were presented, adding or removing at will. I am certain that those options I use will be different than those used by others, for example.

I believe that this code lies in client/js/templates/Item.jsx

davimack avatar Mar 30 '25 20:03 davimack

Thanks for the suggestion. Since there is Next button, I assume you mean the share buttons on mobile?

I agree that moving the Next button before the sharers makes sense.

Having exactly two sharers per line might be difficult as the labels have varying lengths in different languages. Though we might use different text, or move the share buttons into a pop-up dialog.

Ideally, the user could configure whether these individual sharing options were presented, adding or removing at will. I am certain that those options I use will be different than those used by others, for example.

You can use the share option in config.ini. The share buttons will appear in the order they are listed in the option.

Though we currently do not support Bluesky, Discord, Slack or Whatsapp. Since I do not use any of those, someone who does would have to contribute them. See https://github.com/fossar/selfoss/pull/1421 for an example how to do that.

Also note that you can just have share=a which will use the Web Share API so you will get your system’s (e.g. Android) share dialog.

jtojnar avatar Mar 30 '25 23:03 jtojnar

Having exactly two sharers per line might be difficult as the labels have varying lengths in different languages. Though we might use different text, or move the share buttons into a pop-up dialog.

True, on the per lines requirement. I'm just thinking how to get more into that space without taking up a huge amount of real estate. Although it's not really a big deal, as it's at the end, after all.

I'll certainly check out the config.ini and item 1421. I'm happy to contribute there, if I can. I believe they're just hyperlinks, but am not sure what level of support the various apps have (discord, slack, whatsapp, bluesky, mastadon).

davimack avatar Mar 31 '25 00:03 davimack