distributor icon indicating copy to clipboard operation
distributor copied to clipboard

Make it easier to denote a post as "distributed" on the front end

Open jakemgold opened this issue 8 years ago • 3 comments

Right now, I don't think there's any "easy" way (without figuring out the post meta) to show that a piece of content (post) has been syndicated / reposted / distributed on the front end, which I would think is a common use case on the front end.

I envision two parts to this (open to feedback).

(1) Create PHP function(s) to output this information. I'd imagine a "the_" type function which prints out the link site named and a preface that can be overridden with an optional parameter, like "Distributed from" (would not return anything if it was forked – maybe that can also be set with an optional parameter - or wasn't distributed). I'd also imagine a "get_the_" type function which could return an array of information: the name of the site it was distributed from, the link to the original, and maybe some other information like whether it was forked.

(2) In a later version, I can imagine an optional setting (off by default) that injects this information, for someone who doesn't want to edit code on each site. For example, it might "take over" the author byline (instead of "Post by [linked author name]" it could say "Post by [Site Name linked to original]", or be injected at the top of the post.

jakemgold avatar Dec 10 '17 19:12 jakemgold

I'm envisioning the same thing. (1) will be an easy add. (2) we can plan out a bit for a future release.

tlovett1 avatar Dec 11 '17 14:12 tlovett1

Press Forward does something similar to this. When an item is pulled via their bookmarklet from one site to another in a Multisite instance, the source of the post is appended to the bottom of the content, which links back to the original. It's effective without being intrusive, and because it's just appended to content, can be easily removed by the end user if it's not suitable directly from within the editor.

2017-12-11_12-14-36

mrjarbenne avatar Dec 11 '17 17:12 mrjarbenne

@tlovett1 @jakemgold we have merged changes for the first part. Do we want to keep this open for the second or close this out?

ryanwelcher avatar Apr 12 '18 14:04 ryanwelcher