Automated page numbering

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have collection of html pages in a web folder. The pages are arranged in
'navigation' view to allow use of navigation bars. I would like to include a
page numbers on them (e.g. 4/27 - forth page out of total of 27). How can I
outomate such numbering? Doing it manually will require editing all the
pages once another one is added. Many thanks.
 
Not the easiest way, but use an include page that has the text: 1 of ??

Include the include in each page.
Then simply update the include every time a page is added.



--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 
But how would you set the page number of on each page?

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
You could have "page 1 of" and then the included file. The only problem is
that the included file will appear on a new line. A better way would be to
use a variable: >site settings>parameters. Then insert the variable with
Insert Web Component >Included Content >Substitution. It will come out
perfect.

Wally S
 
Problem still remains - how do you automate the page number?
Page 1 of ?? sets ALL pages to page 1, which is not desirable.

One solution is to use server-side scripting and a database to create
the navigation. The page names can be stored in a database, along
with the associated sequence number, and ASP (or PHP etc.) used to
generate links to these pages. Requires the pages be named with
appropriate extensions and that the server will support the chosen
database and scripting technology, and a little programming will be
needed.
 
like this: "Page 1 of", "page 2 of" and then you put a variable with the
total number of pages. When you change the variable only the the total
number of pages will change. Like this:

<p>page 1 of
<!--webbot bot="Substitution"
S-Variable="pagetotal" --></p>

No need for scripting or databases. The "variable" feature in FP is made for
this.

Another solution: Put your page number in a format like this. ***Page 2 of
75 pages*** (I am assuming that no page will have the word "pages" followed
by three asterisks. Otherwise use something else.) Then just do a global
replace like this: replace "of 75 pages***" with "of 76 pages***".

The solution you propose seems too complex for something simple. However,
you will have to put the page number manually in each new page. That
shouldnot be much of a problem. After all, how many pages do you add at a
time? But if you want to put "page 3 of" in automatically, it will be easy
if you first edit the pages in Word.

Wally S
 
Back
Top