How are you creating your TOC?
Are you using the Layout > Table of Contents dialog? Links created this way depend on calling out the particular paragraph style of the TOC element.
Are you creating Text Anchors for your destinations, and then using buttons and bookmarks to go to the destination?
Are you using Cross-references? Cross-references can go to the destination by choosing either a Text Anchor or a Paragraph Style and then picking an instance of that style?
Yes, I have created the TOC through Layout > Table of contents...
The TOC content are driven by paragraph styles used throughout the document. Perhaps it's worth mentioning that each TOC element is driven by text that is inside a table cell on the given page. The TOC automatically generates a bookmark for each element. These are automatically grouped in folders in the Bookmarks window.
I've attached an image showing the top of each of the three page styles which demonstrate the links and have noted below how they were created.
1: TOC page. Example: click text 'Tap LED PCBA'. This is an auto generated bookmark which links to the Parts List page where this item is listed. [These links do not break after changing anything that updates in the TOC)
2: Parts List page. Click the illustration top RHS to skip to the Service View page of this part. I have converted the illustration to a Button in the Button window and I use the 'Go to Destination' action to link this Button with the auto generated Bookmark for the relevant Service View page. [These are the links that are breaking after changing anything that updates in the TOC)
3: Service View page. Click the illustration top RHS to skip back to the Parts List page on which that item exists. I have converted the illustration to a Button and I use the Go to Destination action to link this Button with a Bookmark I have generated for the Parts List page for the relevant Service View page. [These links do not break after changing anything that updates in the TOC)
How are you making changes? Are you in any way trying to edit the TOC itself? Or are you relying on making changes in the referenced paragraph style instances that the TOC is built from? Do you use the Layout > Update Table of Contents command? Does the updated TOC look OK in InDesign?
I am changing the text in the referenced paragraph style instances, either to make corrections or when I add a new page.
Once I make the change or addition, I go to Layout > Update Table of Contents to upate the TOC. After this update the TOC looks good in InDesign and reflects the change or new addition and any re-numbering of pages that may have occurred. I do not make changes directly to the TOC.
It sounds like you're following the right process.
In some cases (I know EPUB files), there have been cases where the TOC hyperlinks don't have a text anchor. This posting suggests turning on "Make text anchor in source paragraph." I don't know if it applies in your situation.
Thanks very much for your help Steve
I will try this out and post the results.
Yes, that was added, I think, in CS6.
I'll have to turn you over to people who do TOCs more often than me, I'm afraid.
Thanks again Steve.
If this is going to be a PDF then using the "Create PDF Bookmarks" the TOC will act as a hyperlink/button anyway within the finished document.... If you are trying to use other hyperlinks or interactive buttons these would be best placed and locked within each page/spread or master.
Also with regards to the breaking links - Do you get the yellow triangle or Red question Mark when they break?
Thanks for your thoughts.
Yes this will be an interactive PDF. Perhaps 'breaking links' wasn't the right term for me to use because I don't have any issues in the Links window (yellow triangle or red question mark) with placed objects (in this case my illustrations).
It's only the action of clicking the illustration in the exported interactive PDF (illustrations are converted to a Button in the InDesign file) which should jump to the relevant page (Bookmark created in the InDesign file) that 'breaks'.
If I set up all the Buttons and Bookmarks then export as an Interactive PDF, everything works perfectly in PDF land. But, if I go back into InDesign and edit (for example) a heading on any given page that is referenced by the TOC and update the TOC then re export as Interactive PDF, then many of the 'links' between buttons and bookmarks get broken.
One thing that comes to mind as I write this is that the 'links' that break in the newly exported PDF seem only to be those where I have a Button that 'links' (via Go to Destination action) to an auto generated Bookmark generated by the TOC. 'Links' to Bookmarks which I have created manually don't seem to break in the newly exported PDF after an updatee of the TOC in InDesign. This perhaps points to something with the auto generated TOC bookmarks.
Can you post a link to download an example of the actual InDesign file via dropbox etc?... doesn't have to be the actual one or include sensitive information.
I would agree that there seems to possibly be a flaw with the auto generated Go to destination action and I would like to work from the same/similar file to understand better the problem and solution.
Here's another thing to try: Try saving the file as an IDML file. Then reopen in InDesign. There's the possibility it could have a bit of corruption, and this should clear it out, if present.
I'll give it a go. Yes I feel like what I am doing is all correct, but something is not working as Adobe has designed.
I've had this same issue since CS 5.5. Button destinations don't stick after the document refreshes. Whether you updated the TOC or save it. Whenever it re-caches the structure, the button destinations revert to the first item on the buttons and forms list. I've made the buttons both in the spread and master pages, the same issue. Sorry I couldn't be more helpful.