Rich Text 'Macros > Blocks' migration
# help-with-umbraco
o
Hi all, with the removal of Macros in v14, and the addition of Blocks in the RTE in v13, I'm starting to look into how we can migrate our old RTE Macros to Blocks. I can't find much discussion about this topic online at all, so I was wondering if anyone here has started looking into this too?
d
Have you found anything on this? We are looking to do the same
t
I'm also looking to do the same but can't find anything. Any tips?
o
For our migration projects, we use our own migration package that's available here: https://github.com/Method4Ltd/Method4.UmbracoMigrator.Target And, for the RTE Macros, we ended up writing a bunch of custom code that would find the macros in the rte string value to be migrated, loop through them, generate the equivalent block json and replace the macro with the block markup. I don't have any examples that I can share at the moment, as it's all very client specific, but I'll make sure we add some examples on how to do it to the examples folder on our package repository asap!
t
This looks great. Thanks for releasing it! Does it only work on the v8 zip snapshots? I'm already on v13 and need to move from nested content to block lists for ~1000 pages AND transform macros into RTE blocks. I was going to try using usync for the first task and then your package for the macros, but I guess I won't be able to produce the zip to start?
o
There is a v10 version of the Source package so it shouldn't be too difficult to get it to work on v13, I'll have a look into getting a v13 version released sometime this week 🙂
t
Excellent. Appreciate it.
o
Hey, sorry it took a while, but I've just released a v13 version https://www.nuget.org/packages/Method4.UmbracoMigrator.Source/13.0.0-beta1
d
Thank you for posting this! I see that the package uses uSync. Umbraco Support told me to remove uSync as it was causing issues with Cloud Deployments. Have you used this tool on a Cloud project that's Live?
o
Only the sample site in the repository uses uSync, the package itself does not (except for some modified serialiser code). I've never tried using it on cloud myself, but I can't think of any reason why it wouldn't
21 Views