\startcomponent c-contents
\product prd-dd23
\project proj-dd23

% \setuppagenumber[state=stop]
% ------------------- Frontmatter ----------------------
% This part of the document is reserved for the table of contents
% This structure ensures that the TOC is not listed _in_ the TOC
% and that TOC doesn't get page numbers
% \startfrontmatter


% stops header texts from showing in toc, but leaves the
% the header space blank
\setupheader[state=stop]


% This inserts the TOC with the heading "Table of Contents"
% \myContents{Table of contents} doesn't seem to work
\title[toc]{Table of contents}
\placelist[chapter,section,subsection]%[criterium=text,extras={6.0=page}]
% \placecontent[extras={6=page}] % adds page break, i.e. forces section 6 to go to next page (so 6 and 6.1 end up on the same page...)

% \stopfrontmatter
% ---------------------------------------------------------------


% page numbering starts here from 1
% i.e. the TOC pages really are not numbered
% \setuppagenumber[state=start]

%Turns header on
\setupheader[state=start]


\stopcomponent
