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.
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. :-(
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.
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
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. :-(
is working on a reply...