Refreshing Experience (Page) Editor after using Edit Frames or Buttons
Frustratingly when editing an component in Sitecore 8 using either edit frame (or a Custom Experience Editor Button) the component datasource does not refresh, you need to click the save button afterwards to refresh the page and see your changes. Content Editors could find this confusing, especially if they have just added some items to a multi-list (e.g a list of products) in the modal window and the new/updated products do not show on the product listing component. Someone on the Sitecore Slack Channel also needed to solve this issue this week which prompted me to write this up. Google didn’t turn up any solutions so I set out to try and figure out how to make the page refresh and show the changes. After trying a couple of different approaches I settled on overriding two standard Pipelines under : Sitecore.Shell.Applications.ContentManager.ReturnFieldEditorValues.SetValues and Sitecore.Shell.Applications.ContentManager.ReturnFieldEditorValues.ReturnAndClose To get the code for these I … Continue reading Refreshing Experience (Page) Editor after using Edit Frames or Buttons