How do I generate a table of contents on custom templated documents?

Permanently deleted user
Permanently deleted user
  • Updated

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}:

  1. Download and open the document
  2. Right or control click on the "No table of contents entries found" statement 
  3. Select "Update Field"
  4. Observe that the Table of Contents is as desired
  5. Optional: undo the update and consider using "Toggle Field Codes" to update the number of headers as needed
  6. 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

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request

Comments

0 comments

Article is closed for comments.