As the title suggests, I am reading LOTS about how to add slide numbering into slides on Storyline. However, I am just so confused about the one way to do this, as a lot of the discussions seem left very open to interpretations.
Can someone (sorry to be a pain) please outline the steps I need to go through as its confusing the life out of me and I really need this instruction as soon as possible. A lot of the code doesn't follow through when you click previous on a slide as it subtracts 1, but if the variable is already adding 1, the numbering doesn't end up working.
Simplest way to do it is to create a variable called slideID and assign it with an initial value of 1. Edit your master slide and add a text box. In the text box add the variable reference %slideID%. This will display the value of slideID on every slide. Now on each slide you can add a trigger to give slideID a value such as 2 on page 2, 3 on page 3 etc. When you scroll through using next and back then the text box on the master slide will update and show the corresponding slide number.
If you know the total number of slides then you could add a totalSlides variable and have the slide numbering reflected as for example '1 of 15'.
This is the most basic way to number slides and assumes a fairly straightforward linear progression. If you need something more complex then describe your situation and I'm sure someone can help out.
You could add a condition to the master slide trigger on the prev button to only subtract 1 if pageNum is greater than 1. Then it won't go into minus numbers. Or disable the prev button on slide 1.
I've added the conditions to Wendy's original file and attached it here. Also added a condition based on new 'totalSlides' variable to prevent over counting on the next button.
Kudos to Wendy for a far more elegant solution that my suggested 'hack'!!!
I think we should have a big Articulate Global Community meeting, and I will be happy to provide the chocolate for you all!!! :) I hear Vegas is a great place for conference!!
Hi everyone, its me again!! With another query!! And more virtual chocolates! This solution has worked perfectly for me. Its easy and simple to follow, until this new question. Is there any way in which we can connect this to the menu? If I navigate using the the menu (i.e. going back to a different slide), it doesnt correspond to the slide number anymore. Do you think its better to just remove the navigation menu?
16 Replies
Simplest way to do it is to create a variable called slideID and assign it with an initial value of 1. Edit your master slide and add a text box. In the text box add the variable reference %slideID%. This will display the value of slideID on every slide. Now on each slide you can add a trigger to give slideID a value such as 2 on page 2, 3 on page 3 etc. When you scroll through using next and back then the text box on the master slide will update and show the corresponding slide number.
If you know the total number of slides then you could add a totalSlides variable and have the slide numbering reflected as for example '1 of 15'.
This is the most basic way to number slides and assumes a fairly straightforward linear progression. If you need something more complex then describe your situation and I'm sure someone can help out.
Steve
This post was removed by the author
Here is a sample story file and video
You guys are amazing! Thank you!!!!
Wendy I noticed this tutorial is limited to a linear piece of learning. If you go back it ends up in minus numbers.
You could add a condition to the master slide trigger on the prev button to only subtract 1 if pageNum is greater than 1. Then it won't go into minus numbers. Or disable the prev button on slide 1.
I've added the conditions to Wendy's original file and attached it here. Also added a condition based on new 'totalSlides' variable to prevent over counting on the next button.
Kudos to Wendy for a far more elegant solution that my suggested 'hack'!!!
Good one Steve - it was a quick and dirty sample ;-) thanks for updating it.
Really excited to have a look through!
Kudos to everyone for pitching in! Sachin, let us know how you make out! And also, I'm sad to have missed the opportunity for free chocolate. :(
Oh yeah Sachin where are the promised chocolates ;-)
I think we should have a big Articulate Global Community meeting, and I will be happy to provide the chocolate for you all!!! :) I hear Vegas is a great place for conference!!
See you at DevLearn in LV in November Sachin!
Ha! I hope to see you guys too!
Hi everyone, its me again!! With another query!! And more virtual chocolates! This solution has worked perfectly for me. Its easy and simple to follow, until this new question. Is there any way in which we can connect this to the menu? If I navigate using the the menu (i.e. going back to a different slide), it doesnt correspond to the slide number anymore. Do you think its better to just remove the navigation menu?
Hi Sachin!
Looks like I just addressed a similar question here.
I found system variables that permit you to use the built-in page numbering. Check out this discussion thread.
This discussion is closed. You can start a new discussion or contact Articulate Support.