Hi,
Using this (but it's not exactly what I want) it works
test-1.tex %%%%%%%%%%%%%%
\setuppagenumbering
[alternative=doublesided,location=]
\definelayout
[1]
[header=10mm]
\setuplayout
[header=0pt,
height=middle]
\setupbackgrounds
[header]
[text]
[frame=off,bottomframe=on,
framecolor=lightgray,rulethickness=1pt]
\starttext
\dorecurse{5}{\samplefile{lorem}}
%\dorecurse{1}{\samplefile{lorem}}
\stoptext
%%%%%%%%%%%%%%%%%%ù
Using this (almost what I'm trying to do) without success
test-2.tex %%%%%%%%%%%%%
\setuppagenumbering
[alternative=doublesided,location=]
\setupbackgrounds
[header]
[text]
[frame=off,bottomframe=on,
framecolor=lightgray,rulethickness=1pt]
\startsetups[header]
\doifelse{\totalnumberofpages}{1}
{\setupheadertexts[\setups{header}]}
{}
\stopsetups
\starttext
\dorecurse{5}{\samplefile{lorem}}
%\dorecurse{1}{\samplefile[lorem]r}
\stoptext
%%%%%%%%%%%%%%%%%%%
Fabrice