mini-TOC levels are inconsistent

This forum is for all Flare issues not related to any of the other categories.
Post Reply
LisaLiel
Propeller Head
Posts: 16
Joined: Mon Dec 02, 2024 6:32 am

mini-TOC levels are inconsistent

Post by LisaLiel »

When I insert a mini-TOC proxy, I set the TOC depth to one more than the header level of the topic (I only have one header level in each topic).
PDFMiniTOC.png
HTMLMiniTOC.png
In PDF targets, I get just the children of the given topic. In HTML targets, I get the children and grandchildren.

Why the inconsistency, and can I fix it?
You do not have the required permissions to view the files attached to this post.
Psider
Propellus Maximus
Posts: 883
Joined: Wed Jul 06, 2011 1:32 am

Re: mini-TOC levels are inconsistent

Post by Psider »

This could be because the mini-toc proxy works differently between print and online outputs.

The lt;dr is that for print, the toc depth represents the number of heading levels from the heading immediately before the mini-toc proxy. For online the number represents the number of levels below the current topic in the toc structure.

The Creating a Mini-TOC topic explains it quite well, I think. Have a look at the "How It Works" section.
LisaLiel
Propeller Head
Posts: 16
Joined: Mon Dec 02, 2024 6:32 am

Re: mini-TOC levels are inconsistent

Post by LisaLiel »

So if we want the same behavior in print and web, we have to put in two mini-TOCs and condition them? Seems like a bug to me.
AlexFox
Sr. Propeller Head
Posts: 257
Joined: Thu Oct 19, 2017 1:56 am

Re: mini-TOC levels are inconsistent

Post by AlexFox »

If you set

Code: Select all

mc-heading-level: 0
on a heading type in your Print CSS, then it shouldn't show up in any TOCs
Post Reply