Page 1 of 1

Linking a TOC entry to another TOC

Posted: Tue Jul 10, 2018 4:46 pm
by whunter
I want to split my TOC into a bunch of smaller TOCs, so that the smaller TOCs can be reused.
Let's say that one of these smaller TOCs is for Cats and it goes something like this:

Cats
---Siamese
---Persian
---Etc.

(the dashes are to indicate indents, looks like it's not keeping my spaces)

In my master TOC, I then create an item and link it to the Cats TOC. So my master TOC looks something like this:

Dogs
Cats (linking to the Cats TOC)
Horses

But, when I generate the output, my TOC ends up looking like this:

Dogs
Cats
----Cats
--------Siamese
--------Persian

Obviously I could solve this by removing the top-level Cats from my child TOC, but that means I won't have a topic associated with the top-level item. What I want is for the linked item in the master TOC to be totally replaced by the child TOC, so that the "placeholder" Cats is no longer there, and I just get the contents of the child.

Is there some way to do this that allows me to link a topic to the top-level item?

Re: Linking a TOC entry to another TOC

Posted: Tue Jul 10, 2018 4:56 pm
by whunter
Sigh...and I just found the answer.
Enable "When merging, replace node with merged TOC" on Advanced tab of TOC item properties.

Time to go home for the day!

Re: Linking a TOC entry to another TOC

Posted: Thu Feb 14, 2019 12:38 pm
by mfoulds
Thanks for posting - I had the same question and you saved me some time :)