Skip to main content
Known Participant
December 19, 2007
Question

conditional TOC in .chm

  • December 19, 2007
  • 2 replies
  • 519 views
I want to create different TOC for different .chm layouts in the same project. Using RHX5. Anyone have any suggestions?

This was easy to do in .hlp, you just put a different .cnt file in each SSL. I don't see how to do this in .chm.
This topic has been closed for replies.

2 replies

Peter Grainge
Community Expert
Community Expert
December 21, 2007
Sorry Ted. I was thinking RoboHTML. Same trick but with the cnt file.
Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
Peter Grainge
Community Expert
Community Expert
December 20, 2007
You have to do it on the creation side.

Create one TOC. Using Windows Explorer, copy projectname.hhc to a location outside the project.

Now go back to your project and change the TOC to the way you want the second TOC. Again, save a copy of that so that you know which projectname.hhc is which.

Just drop the required TOC in before you open the project and compile.

How different are the two TOCs? Could you not apply conditional tags to the contents so that you can include / exclude whatever you want.

You might also want to consider RH7 where you can have many different TOCs within the project.

Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
Jaco_TooAuthor
Known Participant
December 20, 2007
Peter,

Sorry, what's an hhc? Don't see it anywhere in my project or in RHX5 help. I do, however, see a .cnt in the top level folder. (This is an old project going back to early version of RH. For this revision I needed to create .chm for Vista.)

Ted