I have added datasource version of the page through programming. When I am adding any version of the page then it will automatically add version for the datasource items in Sitecore 9.1.1.
- How to remove version of the datasource on a single click of removing version of the page (associated version of the datasource items).
- Is there any setting in Sitecore for adding/removing version for datasource when we add version of the page. By default, only page version is added and it does not add any version for the datasource.
For more information I am using SXA.