Skip to main content
Inspiring
March 13, 2023
Question

TOC in Responsive HTML5 from FrameMaker 2020 Publisher shows headings excluded from book.TOC

  • March 13, 2023
  • 2 replies
  • 467 views

I have an FM book with many .fm files. I want to exclude one of those files, which consists of many headings, from the HTML5 TOC for a set of users. Further, the content of that file should be available only from the GUI, using context-sensitive help; users should not be able to see that content simply by stepping through the HTML pages.

From what I understand, the TOC in HTML5 output mimics the TOC in the book file. As a test, I renamed headings in the file to be "hidden" but did not include those heading names in the book.TOC setup. I expected the TOC in the HTML5 output to exclude those headings but it did not.

Any thoughts?

    This topic has been closed for replies.

    2 replies

    Community Expert
    March 13, 2023

    Not sure I get you right but can't you just right click "Exclude" in the book file and exclude the fm you don't want in the toc/navigation?

    Bjørn Smalbro - FrameMaker.dk
    Jeff_Coatsworth
    Community Expert
    Community Expert
    March 14, 2023

    @FrameMaker-dk - I suspect doing that will also exclude the content of that doc from the output too - and @CaptLauren needs it to be in there (just not directly visible via the TOC).

    Community Expert
    March 14, 2023

    Yes, @Jeff_Coatsworth - you are right. My suggestion will remove the chapter entirely and the suggestion of removing the lines from the TOC won't work either. I did a test and the content still goes into the published output. It CAN be done though using Cross References....

    1. Open the book
    2. Mark the chapter you do not want to be part of the HTML5 TOC with Exclude (right click exclude in the book file)
    3. Generate the TOC
    4. Open the chapter previous to the chapter you do not want in the TOC
    5. Insert a cross reference to the chapter you do not want in the TOC
    6. Remove the exclude
    7. Generate the HTML5
    8. Now the content IS part of the HTML5 but not in the TOC and ONLY accessible through the cross reference in previous chapter. It will not show up in the "Next/Previous" navigation buttons. Which is probably a shame.
    Bjørn Smalbro - FrameMaker.dk
    Jeff_Coatsworth
    Community Expert
    Community Expert
    March 13, 2023

    Not sure if the Publishing route gives you that control over the output & TOC - you're looking to have the content present in the output, but hidden in the TOC, right? What happens if you edit the TOC to remove the bit you want to make inaccessible and then Publish using that modified TOC?