Forum Discussion
Relative File/URL Links
So, to add a link to a pdf that will not break if we pass the project over to another developer, this is what we are doing:
- add the pdf to the course via the resources tab
- Create a button/link to the pdf in the course to open url/file
- Manually type in the following: story_content/external_files/MyFile.pdf in the trigger wizzard
- Override showing the resources tab with above custom Javascript if we don't want it to show in the player
This works, however, only if the resources tab is made active in the player, hence why we need to hide it with javascript again.
This method has the advantage of keeping the pdf files within the project, so when we pass it around the team we don't have to include a folder of pdf files that need to be manually relinked.
Yes, a relative link would be useful but you would still need to provide a folder of files that Storyline could find before a second developer republished the course, surely? I prefer this self-contained method as it's more bulletproof.
My only negative is there's no option to pick/select the uploaded file via the trigger wizzard which is annoying. I would like an option that allows Storyline to display any uploaded resources in the dropdown so you don't have to type it in manually?
- JohnBowyer-Smyt2 years agoCommunity Member
Yes, that's what we have been doing. It also has the benefit of avoiding a bug within Storyline where not all the linked resources are added to the scorm pack when you link to resources directly using the Open URL/File trigger.
- KurikoA2 years agoCommunity Member
I followed your clear instructions, but unfortunately the 'Resources' tab still appears for about 2 seconds before the Javascript hides it. Does this not happen for you?
I tested it using the modern player in Storyline 360 and I applied the Javascript to the slide master for all slides rather than just the first slide (in case people resume the course from partway through).