I built out a custom control that needs a mapper to migrate its data from one environment to another. Unfortunately, there is a gap in the functionality of NestedContentMapper, as it has a GetExportValue implementation, but no GetImportValue implementation. Since my custom control is inside a nested content element, it doesn't get properly imported due to this.
This also appears to be an issue in the v9 branch of usync.
Nested Content is missing GetImportValue implementation
I built out a custom control that needs a mapper to migrate its data from one environment to another. Unfortunately, there is a gap in the functionality of NestedContentMapper, as it has a GetExportValue implementation, but no GetImportValue implementation. Since my custom control is inside a nested content element, it doesn't get properly imported due to this.
This also appears to be an issue in the v9 branch of usync.
I ended up creating a fixed version of NestedContentMapper to handle this issue. The code is as follows for anyone that runs into this problem.
I just extended the NestedContentMapper to add in the missing GetImportValue method. Then I needed to remove the existing NestedContentMapper with
in a composer (my code is for umbraco 8, so the syntax will be a little different when working in umbraco 9).
is working on a reply...