Select to view content in your preferred language

Custom Scripts / UI

116
0
3 weeks ago
Bernd_Loigge
New Contributor III

Hi,

We are in the need to show a custom banner whenever a storymap is opend (specially those who are shared public). The banner will have an Accept and a Decline button regarding accepting Cookie tracking (in case an iframe is embedded) and additionally links to our imprint and data-protecting side is shown. 

Our current solution is to hook into the ArcGIS\Portal\apps\storymaps\router.html file and add a custom script to the end (called banner.js) that will show the banner set a cookie if accepted (so the banner is not shown again on a revisit) and will do all the HTML injection.

This is working so far, the problem we have is on every patch or enterprise upgrade we need to see if our custom code has been overwritten and if we need to inject it differently if the logic has changed etc.

My question: Is there any "generic" way of injecting custom code into ESRI out of the box applications?

 
 
Tags (1)
0 Replies