• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Nested TOC in HTML5 output?

Community Beginner ,
Dec 11, 2020 Dec 11, 2020

Copy link to clipboard

Copied

I am trying to generate a nested TOC in HTML5 output. 

I have tried generating a TOC within FM and changing the TOC indentations in paragraph designer:

Heading 1

     Heading 2

 

Still not sure what more I need to do. My HTML5 output is still 1 layer; there are no nests. 

 

Views

165

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 11, 2020 Dec 11, 2020

Copy link to clipboard

Copied

That should do it - traditionally RH (the generating engine under the FM hood) used those clues in the FM TOC to build the RH one for the output. There's an Adobe Tech Comm Blog post about it someplace...

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 11, 2020 Dec 11, 2020

Copy link to clipboard

Copied

My output looks super weird, only one item (Chapter 11) is being nested after I messed around with it some more in FM:

The rest wont stay nested, not sure why. 

sweetheart21_0-1607703386945.png

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 11, 2020 Dec 11, 2020

Copy link to clipboard

Copied

What's the TOC look like in FM?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 11, 2020 Dec 11, 2020

Copy link to clipboard

Copied

sweetheart21_0-1607703929255.png

 

These are the Indentations of the two different headings:

sweetheart21_1-1607703965626.png

sweetheart21_2-1607703979923.png

 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 11, 2020 Dec 11, 2020

Copy link to clipboard

Copied

You've got something messed up in your FM TOC - I would have expected to see the Heading1 applied on "Chapter 11: Placards & Markings" - not on "11".
The other ones in your list - "Placard Install - Single Cockpit" etc. all look like they are H2's in your TOC, so they are all at the same level in the HTML5 TOC.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 11, 2020 Dec 11, 2020

Copy link to clipboard

Copied

If I want  "Placard Install - Single Cockpit" etc. to be nested inside of Chapter 11, would they all have to be the same Heading1 with different indents?

 

 

1.JPG

 

 

 

 

 

 

 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 11, 2020 Dec 11, 2020

Copy link to clipboard

Copied

No, it would have to be a Heading 2 (or something sub-Heading 1) with an indent

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 11, 2020 Dec 11, 2020

Copy link to clipboard

Copied

LATEST

Alright. 

I have renamed my headings as Header and Subheader. 

I changed the indents (as shown in the highlighted areas). The HeaderTOC has 0.0 first indent and my SubheaderTOC has a 10.0 first indent. These changes are on the TOC file.

 

Are there specific style mappings I am supposed to use as well in the Publish settings? Or can FM generate nested TOCs with just editing the TOC file? 

 

sweetheart21_2-1607710236026.png

 

 

 

sweetheart21_3-1607710259742.png

 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines