When designing some documents, I hope I can set a global layout and another layout for the first page of all chapters. I have defined two layouts as follows:
\setuppagenumbering
[alternative=doublesided,
location=]
% global layout for the whole document
\setuplayout
[backspace=2.5cm,
width=16.5cm,
topspace=2cm,
height=25.2cm,
header=\lineheight,
headerdistance=\lineheight,
footer=0cm]
% layout for the first page of Chapters
\definelayout
[firstpage]
[height=26.2cm,
footerdistance=\lineheight,
footer=\lineheight]
\starttext
\chapter{First Chapter}
I am in the first page.
\page
I am in the second page.
\stoptext
Now the question is that how I can apply this firstpage layout to the first page of the chapter First Chapter and switch back to the global layout after the first page of this chapter?

\adaptlayoutonly checks forheightandlineskeys. However, one must use\setuplayout[reset]with care. In particular if the main layout is activated using\definelayout[name][...]followed by\setuplayout[name], then\setuplayout[reset]will reset to default layout rather thannamelayout. – Aditya Aug 05 '13 at 00:30headerdistance=1cmin the firstpagelayout, the textheight is reduced in all following pages. Is there any way to circumvent this? – tstenner May 03 '19 at 13:07\the\textheight– the frame is larger, but the area for text is shrunk for all pages – tstenner May 06 '19 at 12:54