Skip to main content
Known Participant
May 6, 2025
Question

FrameMaker not producing Mini TOC in HTML5

  • May 6, 2025
  • 1 reply
  • 377 views

Hi,

I can't get FrameMaker to generate Mini TOCs in HTML5 output.

 

I have a normal TOC that works fine, as well as Mini TOCs in each chapter that come out fin in PDF.

I have added the following to the HTML Template (other customizations work fine, so it is properly imported):

<!-- MiniTOC starts here-->
       
    <div data-type="minitoc" data-type-after="Body Heading_1 Heading_2">
      <p data-type="minitoc-level1"></p>
      <p data-type="minitoc-level2"></p>
    </div>
        
<!--MiniTOC ends here-->      

 

Yet when the HTML is generated, the Mini TOC section is empty:

    <!-- MiniTOC starts here-->

    <!--MiniTOC ends here-->   

 

I have tried with and without the 'data-type-after' attribute, as well as all combinations of FM styles, HTML styles, with and without quotes, etc. It just doesn't produce anything.

 

Does anyone have any suggestions before I give up?

    1 reply

    Community Expert
    May 6, 2025

    Hi,

    Did you check the forum archive?

    Here are some related threads:

    https://community.adobe.com/t5/framemaker-discussions/mini-toc-hypertext-link-issues-in-html5/m-p/14610057

    https://community.adobe.com/t5/framemaker-discussions/how-to-change-appearance-of-mini-toc-in-html5/td-p/10857708

    Therefore it seems that a mini TOC can be converted to HTML5.

    Best regards, Winfried

    Known Participant
    May 6, 2025

    Thanks,

    Yes, I have checked those links. I'm not worried about changing the appearance yet. At this point I just want the Mini TOC to be generated in the output.

    I know that it can be done. It's a documented feature and I feel like I'm using it correctly. I'm trying to figure out why it's not working and how to get the Mini TOC output.

    Jeff_Coatsworth
    Community Expert
    Community Expert
    May 6, 2025

    First link has your answer I think - "I figured it out. I had to manually define a mini TOC in the HTML template for it to show up on HTML5. Thanks for your help!"