Skip navigation
Currently Being Moderated

Getting the last page number from a book

Dec 7, 2012 8:24 AM

Hello all,


On a single-document master page, I have included the <lastpage> system variable and that works fine. But now the single document is split up into chapters to allow easier modular work. The page numbering is continuous, i.e. no chapter numbers are used. I still want to use the last page number but this should now be the last page number from the entire book. I could not find this value in the available elements. Is there no such thing ? The documentation does not say anything about lastpage except the one that is only in scope within a chapter file.


Thanks for any pointers to figure this one out. I have a solution but it is a very roundabout way of handling things.



  • Currently Being Moderated
    Dec 7, 2012 8:31 AM   in reply to 4everJang

    Sounds like you'll need to xref the final page of your book in your master pages to get that "last page in book" value

    Mark as:
  • Currently Being Moderated
    Dec 7, 2012 8:58 AM   in reply to 4everJang

    I dunno...the <$pagecount> variable seems intended for a shorter single document and is more document- than book-oriented. If the content has grown to where a TOC, IX and chapter structure are helpful to you and the end user, is the <$pagecount> variable as useful as it was when the content was shorter?


    Would the longer form benefit from a footer that gives a chapnum-pagenum structure instead?




    Mark as:
  • Currently Being Moderated
    Dec 7, 2012 9:17 AM   in reply to 4everJang



    Unfortuantely, that's the way the <$lastpage> building block has always worked and has been a document level feature only. You should use the suggestions link ( 3 ) to add a request for a book level $lastpage building block to FM's wish list.

    Mark as:
  • Currently Being Moderated
    Dec 7, 2012 9:39 AM   in reply to 4everJang

    Wow, a bit of a strong response...


    I didn't mean to imply that you were forced to change anything about how you format your content. I was only pointing out that your use case is not nearly as common as what is addressed within the product.


    If that feature is important to you, the page might be your best hope of getting them to devote budget to its development. If you can convince others to post the same request, your odds go up exponentially.


    I thought I had politely suggested you revisit your formatting requirements to see if your change in content would benefit from a change in navigation. If that was taken the wrong way, I apologize.



    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points