uSync-Legacy icon indicating copy to clipboard operation
uSync-Legacy copied to clipboard

Umbraco 7.15 usync macro key issue umbraco

Open zivkos opened this issue 5 years ago • 2 comments

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

zivkos avatar Aug 06 '19 23:08 zivkos

+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

glombek avatar Aug 19 '19 08:08 glombek

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

pauloya avatar Dec 20 '19 11:12 pauloya