Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
Here's the trick: https://world.episerver.com/documentation/Items/Developers-Guide/Episerver-CMS/9/User-interface/Context-sensitive-components/
dojo.publish("/epi/shell/context/request", [{ uri: "<id-of-asset>" }]);
Hi,
I have a custom field type with a Dojo editor associated with it. The field revolves around imagery. I am trying to generate a link to take the content author directly to an image asset for editing, as we have stored Alt Text on image assets.
In a nutshell, I am trying to render this from my dojo editor (where 146 is the ID of a Media asset):
However, when following this link by clicking on it, you receive this error when trying to publish changes to the image:
However, if I use the Assets gadget and navigate to the image in this way, then everything is fine.
What is the proper way to generate the editing link to a media asset? Should I be using some epi api to perform the navigation? I notice when you navigate via the Assets gadget there is no server reload- so something special is happening to perform this navigation correctly.
Thanks!