Forum Discussion
Button trigger to open document will break if document has moved *and* Resources button is exlcuded from Player
Hi Joe,
Thank you for your response.
I can accept that the “Open URL/File” function expects the document to be hosted online.
However, I must emphasize the inconsistency…
The “Open URL/File” function will attempt to bundle the file inside the published package. This will happen successfully if the file has not moved before publishing. Furthermore, upon inspection of the JavaScript that is in the published package, the path to the file is re-written to: "url":"story_content/external_files/MyFile.pdf".
To clarify, I would like the file to get bundled.
The issue is that when I give the .story source file to an external agency, the file path breaks and the file is not bundled in the published package produced by the external agency. It is only bundled when I publish it.
I feel this inconsistency should be resolved with either:
1) it’s always bundled
2) it's never bundled
3) a warning is shown if the file is missing
For me, option 1 is most preferable, then option 3. Option 2 is the least preferable for me.
If you have any questions, please do not hesitate to ask.
Hello Developer Ignition,
Thanks for the additional information. Yes, I can confirm that no file validation happens for “Open URL/File” triggers, but this sounds like it would be a great feature to have.
Right now, the best solution would be to first add your PDF as a resource and then directly link to it using an “Open URL/File” trigger. This way, even if you share your .story file with another author, any file that is targeted by the “Open URL/File” triggers will always be accessible since they've already been added as a resource. I've attached a sample file which has a PDF included in it for your reference.
Related Content
- 8 months ago
- 4 months ago
- 10 years ago