Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does this work on sites with entries' propagation method is "Only save entries to the site they were created in" #7

Open
palomamtnez opened this issue Oct 11, 2023 · 1 comment

Comments

@palomamtnez
Copy link

Heya

I wanted to try this plugin because I have this issue:
I have this multisite project of 7 regions, and the propagation method for all the channel and structure entry types are set to "Only save entries to the site they were created in". However, my client would like to have all the entries from the primary site duplicated to the new site and then they will do all the modifications they need to those entries, but Im not really sure on how to clone them all with those settings.
There are around 800 entries too, so adding them manually ideally would be the last option.
The site is in in Craft 4.5.5

I tried this plugin on my local environment but it seems to work only on my entries where the propagation method is set to "Save entries to all sites enabled for this section", or in my Single entries.
Is there any support or plan to work on the entries where the propagation method is "Only save entries to the site they were created in"?

Thanks

@lukasNo1
Copy link
Member

Hey @palomamtnez

The plugin does not create new entries, it only copies data between sites on already existing entries.
So it can not help you in your use case.

One approach that would work is if you set the propagation method to "Let each entry choose which sites it should be saved to"
but then you would need to go into each of the 800 entries and add the sites manually.

You could put in a feature request in craft for a bulk propagation feature when the propagation method is set to "Let each entry choose which sites it should be saved to". So you could just go on the entry overview, select the entries and select the site where you want it to propagate to.

If you need a solution faster, there is also a hack you could try for a one time clone.
Only try this locally though, I have not tested it ;)

  1. Disable the queue (runQueueAutomatically => false in general.php)
  2. Set the section propagation method to "Save entries to all sites enabled for this section"
  3. Delete the propagation queue task if it created one
  4. in the console, use the command: php craft resave/entries --section=sectionHandle --site=siteHandle which will copy only the entires from the selected site over to the others
  5. Set propagation method back to "Only save entries to the site they were created in".
  6. Reenable the queue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants