naboo / craft-siteduplicate

Site Duplicate let's you duplicate entries across Sites in Craft CMS. It even works when section entries aren't set to propagate across site sections making it easy to duplicate entry data between Sites.
MIT License
4 stars 1 forks source link

Craft 3.4: Matrix Field Content will not be duplicated #3

Open miro94 opened 4 years ago

miro94 commented 4 years ago

After update craft 3.3 to craft 3.4, content in a matrix field will not be copied. Other fields will be copied correctly. Craft Version: 3.4.8, Plugin Version: 1.0.3

image

naboo commented 4 years ago

Noted @miro94. I'll try and look into this asap.

miro94 commented 4 years ago

Any update on this? We really like this plugin, so it would be great if we can use it with craft 3.4 too. Best, Miro

naboo commented 4 years ago

Hi @miro94 totally forgot about this tbh. It's probably not working due to the new delta-updates P&T released in the 3.4.x versions. I can't give you any ETA I'm afraid but I'll see what I can do next week.

MatthiasGrandl commented 4 years ago

@naboo any news on this? To be honest I am dumbfounded a feature as essential as this doesn't exist in upstream Craft yet.

naboo commented 4 years ago

Sorry that this has taken forever. I just haven't had the time.

So I've fixed the general issue with Site Duplicate not even working with Craft 3.4 or larger. The v1.1.0 release fixes that.

But it doesn't fix the duplication of Matrix entries. Somehow this has changed. I need to look into, or even ask P&T, why it doesn't The code Site Duplicate uses is the same as Craft when duplicating an entry. Site Duplicate just swaps in the new siteId from the dropdown on the entry model. But I'm guessing the Matrix field is handled a little different. I'll keep you updated once I know more.

ArtDepartmentMJ commented 4 years ago

Any update on this? I have a site that basically runs on matrix fields and I really need to copy all the content over.

MatthiasGrandl commented 4 years ago

@ArtDepartmentMJ There is a feature in the newest Craft versions, that might make using this plugin unnecessary, if your usecase is similar to mine. You can specify propagation method for your section to "Let each entry choose which site it should be saved to", which basically eliminated my need for this plugin.

ArtDepartmentMJ commented 4 years ago

@MatthiasGrandl Great stuff thanks for this info, worked a treat