uSync-Legacy
uSync-Legacy copied to clipboard
Umbraco 7.15 usync macro key issue umbraco
Previously (in Umbraco 7.14) macro key was part of the XML root node now it come as separete attribure and IMacro handler not importing macro. Example from uSync/data folder for Macro - this is what uSync generate when creating macro..
Details post below https://our.umbraco.com/forum/templates-partial-views-and-macros/98341-umbraco-715-usync-macro-key-issue-umbraco
+1
Here's a quick Powershell script to do the workaround if you have more than a few macros to import https://gist.github.com/glombek/46074c539bc1699969feba08ae9a801e
We noticed that having the key as an XML element breaks the ability to import added macro parameters to DB. We had to manually remove the key element from the .config file and the macro properties were added correctly. Removing parameters seemed to work though.
Versions: umbraco 7.12.4 usync 4.0.14 usync.Core 6.0.14 uSync.ContentMappers 4.1.8