Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • T 1 post 72 karma points
    Jan 08, 2025 @ 00:24
    T
    1

    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?

  • Donna Beger 17 posts 136 karma points
    7 days ago
    Donna Beger
    0

    Did you find anything for this? We have the same issue.

  • Owain Jones 65 posts 436 karma points MVP 4x c-trib
    6 days ago
    Owain Jones
    1

    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 :)

  • 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.

Please Sign in or register to post replies