Forum Discussion
story.html changes on new publishings?
I have a specific project with a continuous soundtrack running, and to get that working I inject some new tags and js in the story.html, and it takes some work and time to do. My question is: when I make some change inside storyline and publish the project again, the published story.html will be the same? It would be pretty nice to keep a story.html backup and just override it every time I need to publish the project again, it would save me precious time!
Thanks in advance!
- Jürgen_Schoene_Community Member
>My question is: when I make some change inside storyline and publish
>the project again, the published story.html will be the same?yes, if you use the same storyline version to publish, so you can reuse your patched version
Hello Juliano,
Happy to help!
When you publish a Storyline 360 project file, it will automatically create a new story.html file which will overwrite the existing one. One way to reduce the work of recreating the tags and Javascript in the story.html file is to place all of your Javascript in one .js file and then including this file to the newly created published output by adding something like this in story.html:
<script src="html5/data/js/nameofyourscript.js"></script>
Don't forget to include the folder 'html5/data/js' for your Javascript code to work.
I'm not well-versed in Javascript so there might be better ways to include your code in the published output without have to recreate everything from scratch. I'll let other members of the community chime so they can share suggestions that might help you with your design requirement!