Goldinteractive / craft3-sitecopy

With this plugin you can copy the content of an entry to another site.
MIT License
22 stars 6 forks source link

Always copy site X to site Y on save setting #2

Closed shoored closed 5 years ago

shoored commented 5 years ago

Thanks for this plugin! It could really solve a workflow problem we have.

The setup consists of three sites, X, Y and Z. It would be great if the plugin could provide a setting where everything in site X should be copied to site Y on save by default, and leave Z as is. And instead of enabling copy per entry, the option to disable this per entry.

Would this be possible somehow?

christianruhstaller commented 5 years ago

This workflow is quite specific. We'd need to check if there is a more general way to implement this, to reflect your workflow.

For what it seems it would go in way like that: Add a setting for which you can define some logic to activate the site copy feature for an entry based on some properties like (section, slug, even an ID, …) and define the source and target site.

This settings shouldn't be restricted to just one.

Your workflow then could be configured as this: criteria: * (Wildcard) source site: X target site: Y

If you open an entry with the source X the site copy is automatically activated and the target Y is selected. You still can disable it if you want to.

To consider:

I think this solution might solve your problem and could solve some other problems and could be quite an useful feature.

shoored commented 5 years ago

Your solution sounds awesome and is something that would be a major help in some multi-site instances. Thank you for responding and thinking with me.

christianruhstaller commented 5 years ago

@studiosyntax the first iteration of this feature is completed. We'd appreciate it if you could test it and give feedback.

shoored commented 5 years ago

@christianruhstaller Sure thing. After installing again, I don't see any AdminCP settings where I can define default options. Any additional things I need to do?

christianruhstaller commented 5 years ago

We didn't release a new version as for now. You should installed it and target dev-master.

shoored commented 5 years ago

Ah my bad. I got to that realisation last night, it was gone this morning. Will try again.

christianruhstaller commented 5 years ago

The feature was release in the release 0.3.0 (https://github.com/Goldinteractive/craft3-sitecopy/releases/tag/0.3.0)