Skip to main content
Known Participant
August 11, 2015
Question

Is there a simple way to use variables to display "Page [n] of [total n]" in slide headers?

  • August 11, 2015
  • 3 replies
  • 640 views

I'm creating one large CP8 project that's divided into many lessons. I'd like to display a caption in the slide headers with "Page of [total n]," with the total being the total number of slides for that lesson. Using variables would be nice, so I don't have to manually renumber the headers if I add, delete, or rearrange slides in a lesson.

I can easily create a variable for the total number of slides in a lesson, entering a fixed value for it. If the number of slides in the lesson changes, I'll just change the value of the variable. Is there a way to use a variable for the incrementing page numbers? Something that would look at the value of the variable on the previous slide and add one to it?  I don't think an advanced action will work, because the user won't necessarily go through the slides in order.

If there isn't a simple solution, it's probably more efficient for me to just manually change the headers when necessary. The lessons are short - the longest is 13 slides - so making manual changes is not a big deal.

-Stuart

    This topic has been closed for replies.

    3 replies

    EilmerAuthor
    Known Participant
    August 13, 2015

    Thanks, all of you, for the replies. The thing is, I'm not referencing slide numbers, I'm referencing a particular sequence of slides. For example, The first lesson is 10 slides, from slide 2 to slide 11. The lesson headers will say "1 of 10," "2 of 10," etc. The second lesson is 3 slides, from slide 12 to slide 14. Those lesson headers will say "1 of 3," etc. And so on throughout the project.

    Even if there was a way to do what I want with variables, to be worthwhile it would need to take less time than just numbering the headers manually (which is mostly done already) and then revising them occasionally when I add, remove, or rearrange slides. I could maybe use the system variables by making each lesson a separate swf file, and then aggregating them, but I think that's more trouble than it's worth, and anyway the client wants this in one big file.

    Thanks for offering your suggestions.

    -Stuart

    Lilybiri
    Legend
    August 13, 2015

    Pretty easy as well. I would create a user variable, that will replace

    cpInfoCurrentslide,.another one that keeps total number of slides in a

    sequence. Set its default value to 0, create two advanced or shared

    actions. The first will be used at the first slide of each sequence,

    reassigns 1 to that user variable, and total number in that sequence.

    Second action for the other slides, will increment that first variable by

    1. That way you can use same unique text container on master slide. Of

    course, if you allow backwards movement it would be more complicated.

    EilmerAuthor
    Known Participant
    August 13, 2015

    I thought about that approach too, but the users won't necessarily go through the slides in sequence. They'll probably do that the first time through the course, but then it will be available for reference, and we expect people will jump to particular pages.

    Thanks,

    -Stuart

    windscorpion
    Inspiring
    August 11, 2015

    I put "Slide $$cpInfoCurrentSlide$$ of $$cpInfoSlideCount$$" into a text box and have this inserted into the master slide(s)

    Lilybiri
    Legend
    August 11, 2015

    That was my answer but it got into spam.

    August 11, 2015
    Lilybiri
    Legend
    August 11, 2015

    Insert system variables in a text container that you can put on master

    slide. For current slide number it is cpInfoCurrentSlide. Have no Cp here

    on phone, you have to verify for total number of slides in Project,

    Variables. Think it is cpInfoSlideCount, not totally sure. To insert a

    variable use the X button in the Character part of the text container when

    in Edit mode.