AI OnAI Off
Hi Mari
I'd say you need to publish a Dojo topic to inform the UI to refresh, I'd guess at /epi/cms/contentdata/updated. More info on the topic system in Dojo from the awesome Greg Wiecheć here: https://gregwiechec.com/2015/08/using-dojo-topic-publish-and-topic-subscribe/
David
Yes, David, you are right! The following did the trick:
topic.publish("/epi/shell/context/request", { uri: "epi.cms.contentdata:///" + newContentLink }, { sender: this, viewName: this.view, forceContextChange: true, forceReload: true });
Hey Mari, glad my suggestion helped and thanks for sharing your solution!
I have a dojo custom property where the content of another property on the page is edited through a web api call. The web api controller saves a new version of the page.
How can I tell epi to refresh the page? Much like autosave is triggered when changing a property on the page through the input controls.