Copied to clipboard

Flag this post as spam?

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


  • Gordon Smith 21 posts 103 karma points
    Mar 30, 2023 @ 08:23
    Gordon Smith
    0

    Deploying to Umbraco Cloud - preserve embedded media when Id numbers change

    How do we deploy our site to Umbraco Cloud and preserve the relationships between content and the embedded images?

    We inherited a site (Umbraco 8.18.3) which has properties such as embedded images using image pickers. They store the chosen image as an the Id of the image node.

    We are attempting to deploy our site to Umbraco Cloud for the first time.

    When we deploy the media, the keys stay the same, but the Ids have changed, meaning all the references in our documents to the embedded images are broken (not just missing images, but in many cases, pointing to the wrong image entirely).

    PS: there are 10s of thousands of such references. It is not feasible to rebuild the whole site from scratch.

    Obviously there must be a way to deploy our site to Cloud but I'm just not seeing it. Thanks in advance.

  • Søren Kottal 702 posts 4497 karma points MVP 5x c-trib
    Mar 30, 2023 @ 09:51
    Søren Kottal
    0

    I guess the image pickers are custom pickers, not the OOTB ones?

    You could add your own ValueConnector for Deploy to handle these correctly (as in - set the right Id value in the pickers on your target environment).

    There is a bunch of community ValueConnectors you can take inspiration from: https://github.com/umbraco/Umbraco.Deploy.Contrib/tree/v2/main/src/Umbraco.Deploy.Contrib.Connectors/ValueConnectors

  • Gordon Smith 21 posts 103 karma points
    Apr 06, 2023 @ 12:21
    Gordon Smith
    0

    Yes you are right. The company that built the custom pickers wrote them to store Media IDs instead of keys. The Umbraco Cloud deploy system destroys all our data by reassigning new IDs.

    Umbraco Cloud support said that we cannot do a straightforward SQL database import which would be appropriate in our case.

    We don't have time or budget to rearchitect the site or develop new software to overcome this.

    So although the website is very simple and straightforward, we have concluded that Umbraco Cloud is not compatible with it. :-(

Please Sign in or register to post replies

Write your reply to:

Draft