Change image file paths in Umbraco Content section
Hi,
I have a situation in developing CN site using EN site.
In EN site all images are saving in DB as \en\media\1014\image.png path. Since we are using same EN site to develop CN site, all these image are still pointing to the same path. So I tried below queries:
update [SembcorpWCMSCN].[dbo].[cmsContentXml] set xml=replace(cast(xml as nvarchar(max)),'/en/','/cn/') where xml like '%/en/%'
update [SembcorpWCMSCN].[dbo].[cmsPreviewXml] set xml=replace(cast(xml as nvarchar(max)),'/en/','/cn/') where xml like '%/en/%'
update [SembcorpWCMSCN].[dbo].[cmsPropertyData] set dataNvarchar=replace(cast(dataNvarchar as nvarchar(max)),'/en/','/cn/') where dataNvarchar like '%/en/%'
After executing above queries and updating umbraco.config file, Umbraco Media section and UI are updated successfully. However Umbraco content section is still pointing to old path (mainly Image cropper values).
Please let me know if you have any suggestions on how to change path in Content section.
Change image file paths in Umbraco Content section
Hi,
I have a situation in developing CN site using EN site.
In EN site all images are saving in DB as \en\media\1014\image.png path. Since we are using same EN site to develop CN site, all these image are still pointing to the same path. So I tried below queries:
update [SembcorpWCMSCN].[dbo].[cmsContentXml] set xml=replace(cast(xml as nvarchar(max)),'/en/','/cn/') where xml like '%/en/%' update [SembcorpWCMSCN].[dbo].[cmsPreviewXml] set xml=replace(cast(xml as nvarchar(max)),'/en/','/cn/') where xml like '%/en/%' update [SembcorpWCMSCN].[dbo].[cmsPropertyData] set dataNvarchar=replace(cast(dataNvarchar as nvarchar(max)),'/en/','/cn/') where dataNvarchar like '%/en/%'
After executing above queries and updating umbraco.config file, Umbraco Media section and UI are updated successfully. However Umbraco content section is still pointing to old path (mainly Image cropper values). Please let me know if you have any suggestions on how to change path in Content section.
Regards, Kalpana
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.
Continue discussion