If you are using one of the Standard Template Files rather than the out of the box documents, you will notice that there is a {@toc} placeholder for the Table of Contents data. This accesses a Microsoft Word variable and does not automatically generate the table of contents.
Option 1:
To generate your table of contents using a Standard Template File with the {@toc}:
- Download and open the document
- Right or control click on the "No table of contents entries found" statement
- Select "Update Field"
- Observe that the Table of Contents is as desired
- Optional: undo the update and consider using "Toggle Field Codes" to update the number of headers as needed
- Reupload the document to Ketryx by going to the generated document, click the history button, and then select "Upload new revision"
Option 2:
Alternatively, you can create a custom Table of Contents that will generate automatically without needing the re-upload by using itemContent, which renders a bookmark link in the background. An example of this is below (replace the {@toc} with the code below):
| {#items}{($index + 1)}. | {@ item.id|bookmarkLink:docId} | {title} | {@ item.id|bookmarkLink}{/} |
Tip: Use a table to format this as desired, but make the table lines invisible in your actual document.
If you have additional questions or need assistance with a particular document templating use case, reach out to our client operations team.
Related to
Comments
0 comments
Article is closed for comments.