Keskustelualueet Keskustelualueet

Takaisin

Progress bar

Vaihda
Progress bar
Vastaus
3.7.2019 12:07
Hello!  Was wondering if someone could give some instructions on how to set up a progress bar.  I have a course that is broken up into 4 sections and would like users to know how far they are through the course.  Thanks! 
0 (0 Ääniä)

RE: Progress bar
Vastaus
3.7.2019 21:31 vastaus kirjoittajalle Scott Sheridan.
Hi Scott,
Is there one big progress bar across the whole lesson?  Or different progress bars for each section?  If there's one big one, that's pretty easy - you can create a percent tracker on a Master page, and use some of the built-in page blocks to get the information you need to do the math (see image1).  If you're on page 8 of 50, we divide 8 by 50 which gives us 0.16, and then we multiply that by 100 to get 16, which we feed into the percent tracker to show 16%.

If you have separate sections that each need their own tracker, that's a bit trickier.  You need to probably detect which section you're in (page ranges), and then figure out how far into that section they are, and the total number of pages within that section (see image2).  So a bit more of a process.  You'll likely need to play with the numbers a bit to make sure they make sense.

Hope that helps!  Let us know if there are any follow up questions.
0 (0 Ääniä)