exhibits
exhibits copied to clipboard
Create a share function for social media
From: "Angana Chatterji" [email protected] (creator of: https://exhibits.stanford.edu/conflict-sasia) It would be very nice to have a share function for e-mail and social media. Is that something you would kindly consider? Thank you so much! My best regards, Angana
@caaster Need to know which social media platforms to target.
Social media platforms to target, in order of preference:
To be clear, we want all 3, but if if there isn't enough time to configure for all 3, that is why they are listed in order of preference.
We think we can supply opengraph information on the page so that if someone shares an exhibit link it will form a nicer shared view of the item/page on the platform. Opengraph might not be supported by all the platforms, but there may be other ways to supply info for them we should explore.
It looks like opengraph information is already supplied. https://github.com/projectblacklight/spotlight/blob/d167c89dd724c00018d8f3fc57c79280f4c5b1d7/app/views/layouts/spotlight/base.html.erb#L20-L21.
Where is this share going to go? Should be mirror what we have in earthworks? Should it be a dropdown?
@dnoneill I do see some opengraph meta tags on exhibits item pages. I think the thing to do is to check which opengraph fields twitter, facebook and linkedin will use if supplied and verify we're including all the information we could. All I'm seeing in exhibits is og:site_name
, og:title
, og:image
-- maybe there are additional tags we can configure?
Sorry I wasn't clear. The pages have specialty opengraph tags as well that are configurable if we want to update for our version. https://github.com/projectblacklight/spotlight/blob/d167c89dd724c00018d8f3fc57c79280f4c5b1d7/app/helpers/spotlight/meta_helper.rb#L44-L53