I want to fetch clicked version details in the Experience editor through programming. I tried override the OnLoad method of the GalleryVersionsForm class from the namespace Sitecore.Shell.Applications.ContentManager.Galleries.Versions in the assembly Sitecore.Client.dll. However, it is working fine for the Content editor, not for the Experience editor.

Kindly have a look at the experience editor from where i am selecting version-:

enter image description here

  • maybe for EE mode the ribbon context item is diff ,
    – Abhay Dhar
    Jul 10, 2020 at 12:56

1 Answer 1


It's completely different in Experience Editor.

When you click on any of the versions, there is a request to


It builds an url for selected version, checks if the item has presentation details and finally it calls code similar to:

  var url = ExperienceEditor.Web.setQueryStringValue(ExperienceEditor.getPageEditingWindow().location.href, "sc_version", version);
  url = ExperienceEditor.Web.setQueryStringValue(url, "sc_itemid", context.currentContext.itemId);

Everything happens in javascript. There is no way of hooking your c# code here.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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