-
Notifications
You must be signed in to change notification settings - Fork 63
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
Duplicate content on same entry from one site to another #744
Comments
There shouldn't be any need to delete the blocks belonging to Other than that, your code should work - I've just tested a content migration based on your code to duplicate blocks from the same entry between sites, and that worked. If it isn't working for you after removing the old block deletion code, is there an error that occurs or does the target site just end up with no blocks? Also, which Craft CMS and Neo versions are you using? |
@ttempleton thanks for quick reply.
In some cases blocks getting duplicated, if we don't clean it before copying. Not sure what can cause this and it is hard to investigate that, because different users has different plugin versions
Is there any chance to check it on drafts? For example we have 4 sites (languages) and we create 4 drafts for each language, to keep changes for each language in separate draft (but each draft has version for all languages) But for some reason other drafts not getting updated when we do apply one of them (I mean Neo blocks are not getting updated):
What is happening: First draft merged and content applied to entry Neo is 2.12.5 (draft issue reproducible on 2.13.16 also) |
Hmm, your reply makes me think the draft blocks are losing track of their canonical blocks. If you change the above-linked line to set |
What question would you like to ask?
Hi all,
We are working on copy content functionality.
Could you please help me to understand, is there anything wrong what we do when we try to duplicate content on same entry from one site to another. We use this code:
We're delighted with the Neo plugin for Craft CMS! Thanks for developing this fantastic tool that has greatly improved our content management capabilities. Your hard work is truly appreciated!
Thanks in advance!
The text was updated successfully, but these errors were encountered: