Forum Discussion
Skip the Into Page > Immediately Start Course
Here's my revised hack for exporting without a start page. I revised it after I realized that when you publish it to an LMS, the Rise content bookmarks the latest viewed page/block with a different hash in the URL, and my previous hack always overrode this. It's similar but takes a couple extra steps. For those who can't manipulate the code before being sent to the LMS folks, you're out of luck and at the mercy of the Articulate gods to save us.
- open your exported site and click on the "Start Course" button and in the address bar, copy everything after index.htm and save it for later (including the hash mark)
- rename the exported index.html file to index_target.html
- create a new index.html file with only the bare necessities:
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Rise Redirect</title>
<script>
preferredHash = '#/lessons/NQOrewsdLmW1234xri8bAXqBrluuBO07';
if(window.location.hash) {
vHash = window.location.hash;
if(vHash.indexOf('/lesson') !== -1) {
preferredHash = vHash;
}
}
location='index_target.html' + preferredHash;
</script>
</head>
<body>
</body>
</html>
- edit the javascript you just created to use the url string you copied earlier (keep the hashtag after ".html")
- Now open the index.htm file like you did before and the start screen is bypassed.
- But wait, there's more! The course title in the upper-left part of the menu is a hyperlink to the start page (bummer, right?). So do a search and replace of the \scormcontent\lib\main.bundle.js file like so:
- open the \scormcontent\lib\main.bundle.js file in Notepad++ (don't even try in regular notepad)
- search for:
createElement(S.b,{to:"/",className:"overview-sidebar__title"
Note: the variable names might change from course to course, so you might have to search for just:to:"/",className:"overview-sidebar__title"
and make sure it's the only instance in the whole file. - replace with
createElement("div",{to:"/",className:"overview-sidebar__title"
(this makes it create a div instead of an A tag)
- And to further complicate things, when you're on the first actual page of the course/site and scroll up, there's a link to "Home" (AKA, the dreaded Start page)
- Search for className:"previous-lesson__link",to:"/"
- Replace with className:"previous-lesson__link pleasehideme ",to:"/"
- Open the \scormcontent\lib\main.bundle.css file in Notepad++ (don't even try in regular notepad)
- add:
a.pleasehideme{display:none !important};
to the very beginning of the css, so the css on line 7 will look something like:*/a.pleasehideme{display:none !important};.clearfix:after{clear:both;display:block;...
There you go, that's what I'm currently doing. I'm actually doing several other modifications to the files to make Rise look and behave like I want.
Hey Bill! Thanks so much for sharing this :) Do you happen to know if this still works? I get an error when I try to upload the SCORM package into the LMS! Thanks!