Can I use Portal for the Shortlist App? I've seen other Story Map apps ReadMe files discuss about deploying an app on Portal, but I have not located any information yet regarding how to deploy a Shortlist app. Since I am not seeing too much documentation regarding deploying this app to Portal, I am thinking that I might have to add code relevant to Portal web template development. Kind of thinking out lout here...
If anyone has deployed their Shortlist app to their Portal, I would really appreciate to learn how it was done. Thanks!
Solved! Go to Solution.
Shortlist doesn't implement the full Portal/ArcGIS Online pattern like other template yet, so you can't reploy it as a template to be present in the Web Application gallery yet.
But you can to configure it to be able to use a webmap served by your Portal.
Edit main.js and add the following line before the call to esri.arcgis.utils.createMap (around line 150)
esri.arcgis.utils.arcgisUrl = "http://myportal/arcgis/sharing/content/items";
The help says:
To successfully publish your shortlist you’ll need to be able to host the application template and the photos you will use on a publicly accessible server, and you’ll also need an ArcGIS Online account (public or subscription) to author and save the map used in the shortlist.
I guess the fact that that it says you need an Online account would suggest you can not yet run it on Portal. This maybe just that it relies of the latest version of the javascript API which portal has not caught up with yet. I'm sure in future releases you will be able too.
I cannot see why you could not use your webmap id from portal in the template have you tried it? I would be interested to know if your are successful. Even online the shortlist app is not one you can choose from the share option.
Yes, I have tried our production public Shortlist app against our portal and I receive a "Map creation failed" from the console. By app default, www.arcgis.com arcgisUrl is being called by the esri.arcgis.utils class instead of our url. So I need to do some more reading regarding configuring templates to work with content from Portal and not ArcGIS.com.
Shortlist doesn't implement the full Portal/ArcGIS Online pattern like other template yet, so you can't reploy it as a template to be present in the Web Application gallery yet.
But you can to configure it to be able to use a webmap served by your Portal.
Edit main.js and add the following line before the call to esri.arcgis.utils.createMap (around line 150)
esri.arcgis.utils.arcgisUrl = "http://myportal/arcgis/sharing/content/items";
That's it! I had just added that line to my code and was able to get things working when I saw your reply come through. Thanks!
Can you also use the commented line 84 in the index.html?
// Uncomment and edit to use Portal for ArcGIS
// var DEFAULT_SHARING_URL = "http://www.example.com/arcgis/sharing/content/items";
//var DEFAULT_PROXY_URL = "http://www.example.com/arcgis/sharing/proxy";
...or is this something different?
Thanks Adam, I forgot that a configuration was possible through these two lines in index.html.
That's more simple that my previous solution so best to use it.