Structure of an Automatically Generated Table of Contents

An automatically generated table of contents is created through a combination of standard HTML tags (for formatting the list) and NPSOBJ instructions:

<ul>
  <npsobj list="toclist">
    <li>
      <npsobj name="self" insertvalue="anchor">
      <npsobj name="title" insertvalue="var"/>
      </npsobj>
    </li>
  </npsobj>
</ul>

This code has the following effects: The entire table of contents is defined as an unordered list:

<ul>
  ...
</ul>

In the exported folder all released subfolders, documents and ressources are to be considered. All entries are placed on the page, summarized as an automatically generated table of contents:

<npsobj list="toclist">
  ...
</npsobj>

Every entry is formatted as an item of a list:

<li>
  ...
</li>

For every entry a link to the respective file itself is generated:

<npsobj name="self" insertvalue="anchor">
  ...
</npsobj>

As linked texts the titles of the files are used:

<npsobj name="title" insertvalue="var"/>

In the preview you can check at any time the way an automatically generated table of contents looks. Please note that with the toclist keyword only released and valid documents, folders and ressources appear in tables of contents. To include images as well, use children