Skip to main content
michal_PL
Inspiring
November 13, 2024
Answered

Table of contents does not include headers defined by Parent pages

  • November 13, 2024
  • 2 replies
  • 1158 views

Hey, I have a problem - Table of contents does not include Headers defined by Parent pages.

 

I set up document with a couple of parent pages, containing headers, that shall be included in Table of contents. Unfortunately, none of headers placed thanks to parent page are included in ToC. If I insert standard text paragraph next to the one applied by parent, and asign the style that should be included in ToC - it works (such a header will be included in ToC).


I set up section markers but this doesnt seem to change anything in problem - if I create a header outside of Parent page, it will fetch Section marker as the one from parent page, but the independent one  will be included in table of contents, and parent-placed one not.

 

Any tips how to solve this?

 

Additional question - if I have pages with no place for header, but would still like to have this page included in table of contents, with some title, can I just add White title at the bottom of such a page, and include such a paragraph style as another Lvl1 to be included in ToC? Ir is there a better way?

This topic has been closed for replies.
Correct answer Eugene Tyson

If it's part of the parent page and can't be selected on the normal page that's likely the issue.

 

What you can do is 'soft-break' it away from the Parent Page by overriding the Parent Page item - but don't change anything else about it. 

 

On the pages with the headings - hold down the modifier keys on your keyboard 

https://www.youtube.com/watch?v=nqfTOV92qJo

 

If you don't make any changes to position, font, size etc. - just unlock it - it should pick it up.

But by doing it this way it should still be adjustable on the Parent Page and the changes should reflect on each page.

 

I'm pretty sure how it works - not at the computer at the moment but give it a try and see if it resolves your issue.

2 replies

Willi Adelberger
Community Expert
November 13, 2024
  1. A TOC entry can only target a single point. Parent page content is insteadn to use for several pages. That is why it is not possiblr to target to parent pages.
  2. On parent pages you should not put real content, never. Use text variables which will take content from an applied page automatically and show instead of the placeholder of the parent page. This will help you to reduce the number of parent pages to a minimum possible as you use for different chapters the same parent page.
michal_PL
michal_PLAuthor
Inspiring
November 13, 2024

Thanks @Willi Adelberger  - I paired this with section markers, so there was no real content on parent pages indeed, but these variable headers still were not included in ToC if they were connected with parent. Disconnecting headers worked as per Eugene's recommendation.

Thank you for all the tips!

Willi Adelberger
Community Expert
November 13, 2024

Personally I recommend not to override master page content as it can cause problems, when you later want to apply a different master.

Eugene TysonCorrect answer
Community Expert
November 13, 2024

If it's part of the parent page and can't be selected on the normal page that's likely the issue.

 

What you can do is 'soft-break' it away from the Parent Page by overriding the Parent Page item - but don't change anything else about it. 

 

On the pages with the headings - hold down the modifier keys on your keyboard 

https://www.youtube.com/watch?v=nqfTOV92qJo

 

If you don't make any changes to position, font, size etc. - just unlock it - it should pick it up.

But by doing it this way it should still be adjustable on the Parent Page and the changes should reflect on each page.

 

I'm pretty sure how it works - not at the computer at the moment but give it a try and see if it resolves your issue.

michal_PL
michal_PLAuthor
Inspiring
November 13, 2024

Thanks @Eugene Tyson , it worked!

 

It got completely disconnected though.

Do you think it is bug? Because as for feature it is not explained at all.

Ragarding the second question - do you think there is a better way to include in ToC page without visible header, than to create invisible header?

Use case: I'm creating book that includes some full-page posters, and i would like to have this poster included in ToC. I wonder if I should create white(invisible) header beneth the poster or this is not recommended?


Community Expert
November 13, 2024

I don't think it should completely disconnect. I tried a sample file here, and set a text frame on the parent page.

Then went to page 1 and used CMD SHIFT Click to select the frame. 
I went back to the Parent Page and moved the item and moved ok. 

 

In what way is it disconnecting for you?

 

Anyway - you can't have TOC pick up text from Parent Pages, it has to be live text on the pages.