Hi Fabrice,

The following gives the desired result, as Hans pointed ou:

\setuppagenumbering[alternative=]

\setupfootertexts[Page \pagenumber\ sur\ \lastpage][]

\starttext

\dorecurse{5}{\input knuth.tex \page}

\stoptext

Best regards: OK

On 10 Aug 2017, at 11:28, Fabrice Couvreur <fabrice1.couvreur@gmail.com> wrote:

Hi Hans and Pablo,

\setuppagenumbering[alternative=]

\setupfootertexts[Page \pagenumber\ sur\ \lastpage][]

The behavior is not that expected:

Page 1 sur 0
Page 2 sur 0
Page 3 sur 0 ....

Thanks
Fabrice

2017-08-10 9:57 GMT+02:00 Hans Hagen <pragma@wxs.nl>:
On 8/9/2017 11:42 PM, Fabrice Couvreur wrote:
Hello,
With Latex, I did this :

\usepackage[colorlinks=true,pdfstartview=FitV,linkcolor=blue,citecolor=blue,urlcolor=blue]{hyperref}
\rfoot{\scriptsize{\textsf{Page~\thepage{}~sur~\pageref{LastPage}}}}


With Context, I tried this unsuccessfully ;

\setupinteraction
     [state=start,
      style=,
      color=\darkred,
      contrastcolor=]

  \setuppagenumbering
         [alternative=,
          location={footer,right},
          command={Page\,\pagenumber\,sur\,\lastpage } ]
\setuppagenumbering[alternative=]

\setupfootertexts[Page \pagenumber\ sur\ \lastpage][]

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
       tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________