![](https://secure.gravatar.com/avatar/2c5e0aba13c800eca24d22bf68dbc6cb.jpg?s=120&d=mm&r=g)
3 Feb
2009
3 Feb
'09
7:50 a.m.
I am trying to use a layer to insert a page number in my document, but the page always displays page number 1. It seems nothing that I have tried has worked. I also don't know how to exclude the first page from the total number of pages count. Here is the code I'm trying to use. \setupoutput[dvipsone] \starttext \definelayer[pagenumber] \setuplayer [pagenumber] [width=\paperwidth, height=\paperheight, state=repeat] \setlayer[pagenumber][preset=lefttop,x=4in,y=5.5in]% {\framed[width=1.25in,align=middle,offset=none]{\tfx Page \getnumber[page]~of~\totalnumberofpages}} \setupbackgrounds [page] [background={pagenumber},state=start] test \page test \page test \stoptext Thanks, Mike