Duplication of Parent-child module

I have 2 modules which have parent-child relation. When Im trying to duplicate parent module, it's not duplicating all connected child items as well. Is it expected? Or I missing something?
No description
2 Replies
pauldwight
pauldwight2mo ago
Pretty sure it only duplicates the item you selected, however, you can overwrite the afterDuplicate method to then also loop through your child items and duplicate them if you want. https://twillcms.com/docs/modules/repositories.html#content-duplicating-content
Twill
BATYA
BATYAOP2mo ago
Thank you for answer!

Did you find this page helpful?