Relative File/URL Links

Jan 25, 2017

Our organization is fairly large and getting everyone on the same PC file structure for projects would be fairly difficult. Once inside a project folder, our files are all the exact same so a relative link to local files would be optimal.

When Storyline files are passed around, links to external documents with absolute paths continually break. Is there a way to set a relative path to local documents?

16 Replies
Kevin White

Hi Leslie, I've read your work around and it's really not a work around designed for the environment that Joseph, I and other designers in large corporations encounter. The problem is, that with out an relative linking compatibility within the compiler, another designer assisting or updating materials would still have identify and locate all absolute links to locate files another designer has created and relink the asset to the project via the triggering mechanism due to the variations in UserIDs. In large and complex projects this can be quite a task, almost impossible without addition time lost or instruction. The only real solution I see, is a compiler that accepts relative linking in all triggering mechanisms wherever possible. Without this feature our creativity is somewhat limited. This is a real obstacle and limits the use of other robust tools we have within the Storyline 2 environment. I would like to see these programming modification considered sooner rather than later. Please keep me posted on your progress toward this necessary functionality. Regards, your friendly SL2 promoter and coach, Kevin. I've requested that feature to your development team. Let's hope that forth coming soon. Thank you Leslie!

prakash dayani

Strange! This thread started 2 yrs. back and same problem we are still having in Storyline 360. Imagine if your course has a 10s or 20s or more of external file linked and everytime each author will have to link all those files again and again. And if he just focuses on any given bug/s and forgets to do the linking part to external files then that will result in missing file bug/s. 
Though I haven't yet tried the Resource way by Ashley but going throught the given procedure  I think there should be more simpler way to link the files ie to create relative paths.

Chris Ansari

Does anyone know of a solution for this?

It would be great if, when linked to, local files were attached to the .story file like when adding images and videos. I understand this can be done by adding them to the Resources tab in the player, but more often than not I need to omit the Resources tab and keep files only linked to from specific slides.

Blended Learning

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:

  1. add the pdf to the course via the resources tab
  2. Create a button/link to the pdf in the course to open url/file
  3. Manually type in the following: story_content/external_files/MyFile.pdf in the trigger wizzard
  4. 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? 

Kuriko A

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).  

Jürgen Schoenemeyer

another method to use the resource tab without a visible resourse button is

deactivate "resources" global BUT add one slide - which never be reached and activate "recources" only for this one slide

if you use the menu function, you have to remove this slide from the menu

you need no javascript

 

result:

 

Tessa Burman

I found a different workaround to hide the Resources tab that also does not require Javascript.

You need to have Resources turned on in the Player, but then you can do a Select All of your entire project (all the slides) and then under Slide Properties > Player Features, change the dropdown from "Player defaults" to "Custom for the selected slides." Then uncheck the Resources box (which will hide it from every slide). I tested this for multiple projects and it worked. When I preview the project in Player, it still shows the Resources tab, but when we put the file in our LMS (Absorb) it correctly hides the Resources tab from every slide.

This entire thread has been invaluable. We had been struggling for so long with this problem of broken links when passing files between developers, and the suggested workaround worked really well for us.