• Register
Welcome to the in5 Answer Exchange! This a place to get answers about in5 (InDesign to HTML5) and make requests.

Export Page Names for a Table of Content

0 votes
we are searching a way to get the article name into the "html content meta tag". at the moment the title of the publication is there.

or we want to export the article names in a json file: for example:

...

contents" [

"0001.html" name="first article" thumbnail="assets/images/pagethumb0001.jpg"

or maybe just an idea to export the indesign toc within in5?
 

did anybody has an idea?

thanks

Stephan
asked Jan 31 in feature_requests by stephan (570 points)
edited Feb 1 by stephan
    

1 Answer

0 votes

Hi Stephan,

This be done with a custom script tailored to your workflow.

Since InDesign Articles are linked to pages (rather they're linked to a series of stories that can span multiple pages), there isn't a good "one size fits all" way to approach this via the Articles panel.

However, another approach might be to name each page with an InDesign Bookmark.

If you make any changes in the Resources section of the in5 dialog (even just clicking one of the "append" buttons), in5 will export a bit of extra metadata, including a data-bookmarks attribute on the "page" node that will include any bookmark names on that page.

See these answers for context:

answered Feb 5 by justin (135,050 points)
...