Forum Discussion
Storyline and SharePoint 365
In order to publish to SharePoint Online the following must be done:
- The SharePoint site must be set up to allow scripts.
- The .html files must be renamed to .aspx
- The files that reference the .html files must be edited so that the renamed files can be found.
I was able to successfully publish a simple Storyline Articulate v3.18 story to SharePoint Online using these steps:
- Used the directions here to set the SharePoint Online site to allow scripts. (This is the English version of page that Sebastien shared in his previous post.)
- Renamed story.html to story.aspx and anayltics-frame.html to analytics-frame.aspx
- The bootstrapper.min.js file references the analytics-frame.html file, so I edited the file and replaced e.src="analytics-frame.html#" with e.src="analytics-frame.aspx#" This only occurred once in the file.
In SharePoint, scripts are disabled by default for security reasons. The article https://docs.microsoft.com/en-us/sharepoint/allow-or-prevent-custom-script gives multiple options for enabling scripts. Rather than allow scripts to be run in all user created SharePoint sites in my tenant, I opted to use the directions in the section - "To allow custom script on other SharePoint sites to grant access just to one SharePoint site that will be hosting my Storyline content.
When testing, I suggest that you put both the .html and .aspx files in SharePoint. When I was testing, I first only renamed the story.html file to story.aspx and didn't rename the analytics-frame.html file. When I opened the story.aspx file in SharePoint and started going through my "story", the analytics-frame.html file was downloaded. This alerted me to the fact that it was being referenced. I then had to search the contents of the .js files until I found the one that was referencing it. If the analytics-frame.html file had not been uploaded to SharePoint, then the file wouldn't have downloaded and I wouldn't have known that it was being referenced in the bootstrapper.min.js file.
I don't know if more complicated stories will have more .html files or have additional .js files that will need to be edited, but if during testing an .html file gets downloaded, then it is being referenced from somewhere that would need to be tracked down and edited to reference the .aspx file.