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?
The below link exactly answers your requirement -
Its a little old post but the fundamental idea driving the programming logic for your requirement can be driven from here.