We have a large v13 site with more than 1000 pages, all built on nested content with RTE macros in almost all of them. Both of these features are removed in v14.
The plan is to use usync to help migrate Nested Content to Block Lists. That seems viable on the surface.
I cannot find any information on how to migrate Macros to the new RTE Blocks.
And the way we converted our RTE Macros was by writing some conversion code that would be executed during an import on our migration package. (inside of an IDocTypeMapping in our package)
The conversion code would find the macros inside of the RTE string values, loop through them and generate the new equivalent block JSON, and then finally it would replace the macro, with the new block markup, in the RTE string value.
Unfortunately, this conversion code ended up being very specific, and we had to tailor it to the individual macros/blocks in each of our client projects; therefore I don't have any generic examples that I can share at the moment, but I'll make sure we add some examples to the docs on our package repository sometime soon.
(Note, our package is for migrating from 1 Umbraco site to another, so it may not be appropriate if you need to convert stuff in place on an existing site.)
Migrating Macros to RTE Blocks
We have a large v13 site with more than 1000 pages, all built on nested content with RTE macros in almost all of them. Both of these features are removed in v14.
The plan is to use usync to help migrate Nested Content to Block Lists. That seems viable on the surface.
I cannot find any information on how to migrate Macros to the new RTE Blocks.
Any guidance here?
Did you find anything for this? We have the same issue.
For our migration projects, we've used our own migration package, which we've made available here: https://github.com/Method4Ltd/Method4.UmbracoMigrator.Target
And the way we converted our RTE Macros was by writing some conversion code that would be executed during an import on our migration package. (inside of an IDocTypeMapping in our package)
The conversion code would find the macros inside of the RTE string values, loop through them and generate the new equivalent block JSON, and then finally it would replace the macro, with the new block markup, in the RTE string value.
Unfortunately, this conversion code ended up being very specific, and we had to tailor it to the individual macros/blocks in each of our client projects; therefore I don't have any generic examples that I can share at the moment, but I'll make sure we add some examples to the docs on our package repository sometime soon.
(Note, our package is for migrating from 1 Umbraco site to another, so it may not be appropriate if you need to convert stuff in place on an existing site.)
Another option would be the uSync Migrations package, although I don't have any experience using that. https://github.com/Jumoo/uSyncMigrations
Hope that helps a little :)
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.