Hi Guys,
this is my current problem: I have a document in the resource tree having a TV with a modx grid attached (migxdb). Now i want to copy this resource including ALL the data that also should include the migx tv.
But when calling the "Duplicate Resource" function on the document, the resource is copied but the grid has not been copied and is empty!
Question 1
Is there a way to make migx copy the gridcontent when performing a duplicate action on the original resource (maybe using some handlers?)
Question 2
If Question 1 is not solveable, what would be the best way to copy the whole griddata of a tv into another resource? I found the "export current view" function in the grid which exports all data als CSV. But there is no way back to IMPORT that data again. Any hints to solve this?
Thanks a lot!
Regards,
Norbert
[ed. note: Bruno17 last edited this post 11 years, 5 months ago.]
This would be possible with a custom plugin listening for 'onResourceDuplicate'
Keep in mind, that it needs to loop also all original children and duplicated children and duplicate all db-entries(with new resource_ids) for all of them.