0

We are using Sitecore 9 with SXA. As per my understanding, it was designed to have a path with local:/ for certain reasons. But, as per our business requirements, we need to update rendering with a data-source id as the authors requires to change the data-source item names frequently. So, Is there any way that we can update the data-source path (local:/data/item) with item-id while saving the page in experience-editor?

enter image description here

-1

The below link exactly answers your requirement -

https://community.sitecore.net/technical_blogs/b/sitecorejohn_blog/posts/convert-data-source-paths-to-ids-using-the-sitecore-asp-net-cms

Its a little old post but the fundamental idea driving the programming logic for your requirement can be driven from here.

1
  • Link-only answers will be removed. – Mark Cassidy Feb 13 '20 at 9:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.