Forum Discussion
Convert Lectora content to Storyline
You could probably isolate the certificate page in Lectora and publish it to the web. Then import it as a "Web Object" in Storyline. The tricky part is how to display the current date, as it won't be displayed initially (Lectora uses its own action to do that). I would use this script placed inside the pagexx.html before it is imported into Storyline.
<script>
function getCurrentDate() {
const today = new Date();
const month = today.getMonth() + 1;
const day = today.getDate();
const year = today.getFullYear();
return `${month}/${day}/${year}`;
}
const dateSpan = document.querySelector('.text59Font1'); // text59 will be different in your file
dateSpan.textContent = getCurrentDate();
</script>
EDITED: You can actually only reference VAR(CurrentDate) variable in Lectora where the Date text is. No need to add additional script above. And delete "Set Data" action.
Thank you for the feedback. I am working on this project whereas we would have a universal certificate that can be uploaded to previously created and newly created content without having to build out a certificate for each course.
Respectfully,
[cid:91d42868-5bb1-4776-a487-c965b5221d3c]
Tiffany Denise Allen Lyons | Senior Content & Development Specialist
(O)phone 312.786.3174| (C) phone 312.929.7545
Chicago Housing Authority | 60 E. Van Buren | Chicago, IL 60605
tlyons01@thecha.org | www.thecha.org
NOTICE: This email message, including any attachments, may contain information that is confidential and/or proprietary. If you are not an intended recipient, please be advised that any review, use, reproduction or distribution of this message is prohibited. If you have received this message in error, please completely destroy all electronic and hard copies, and contact the sender at 312.786.3174 or tlyons01@thecha.org.
Like us on Facebook | Follow us on Twitter
NOTICE: This email message, including any attachments, may contain information that is confidential and/or proprietary. If you are not an intended recipient, please be advised that any review, use, reproduction or distribution of this message is prohibited
- EricSantos4 months agoStaff
Hello Tiffany,
I'm glad that Nedim is able to help you out here! Just a quick note that replying via email includes your signature here, so you are welcome to edit the post and remove that information if you wish.