carlomanf / wp-super-network

Share content between wordpress sites and create offspring networks.
https://wordpress.org/plugins/wp-super-network/
3 stars 0 forks source link

Share content between sites #1

Closed carlomanf closed 5 years ago

carlomanf commented 5 years ago

This is one of the two major features of this plugin, the other being #2.

If a post/page exists on the parent site, and the parent grants permission, any of its children sites should be able to re-publish that post/page.

Furthermore, if a child site creates a post/page, and the parent grants permission, any of the sibling sites (or the parent site) should be able to re-publish that post/page.

carlomanf commented 5 years ago

Some notes on how this will work.

When the parent initiates the share:

When the child initiates the share:

Regardless of who initiated the share:

carlomanf commented 5 years ago

When the parent initiates the share:

  • Nothing happens to the original post/page

Actually, this won't work, because then any child site should be able to re-publish anything from the parent site without the parent's permission.

What will have to happen to the original post/page is the addition of a post meta, _supernetwork_share, that indicates it is a shareable post/page. If this post meta is not present, child sites will not be able to re-publish it even if they hack their own database.

This post meta would also be added to the parent version when the child initiates the share and the parent approves it.

Related, I'm not sure that using a separate post type network_post for the child version is a good idea after all. It may be better to keep the authentic post type and just add a post meta, _supernetwork_post_parent, that confirms it is linked to a post on the parent site.

carlomanf commented 5 years ago

As of 23b7129, it's possible to add or remove the post meta _supernetwork_share to any post or page on a main site. There is not yet any functionality to it.

I will close this issue because it does not refer to any specific task, but the notes can still be used for reference and new issues can be created for specific enhancements of this feature.