Hi Wolfgang,This may not be nicest but seems to workFabrice%%%%%%%%%%%%%%%%%%%%%%\definelayout
[1]
[header=10mm]
\setuplayout
[header=0pt,
height=middle]
\setuppagenumbering
[alternative=doublesided,location=]
\setupbackgrounds
[header]
[text]
[frame=off,bottomframe=on,
framecolor=lightgray,rulethickness=1pt]
\startsetups[header]
\doifelse{\totalnumberofpages}{1}
{\setuplayout[1]}
{\setuplayout[reset]}
\stopsetups
\starttext
\input knuth
%\dorecurse{10}{\input knuth\par}
\stoptext