Generating a list of headings in a single topic

This forum is for all Flare issues related to the HTML5, WebHelp, WebHelp Plus, and Adobe Air Targets

Generating a list of headings in a single topic

Postby rjplano on Fri Oct 16, 2020 9:50 am

I have a large project with many long topics. These long topics each contain up to a dozen or more h3 headings. I would like a list of links (cross references) to the h3 headings within a single topic at the top of the topic that contains those headings. Is there a way to do that automatically?

Mini-TOC doesn't work because that looks at the actual TOC, List-of Proxy would find all the h3's in the entire output, after that I'm out of ideas other than manual entry.

Thanks.
rjplano
Propeller Head
 
Posts: 17
Joined: Tue May 05, 2020 10:08 am

Re: Generating a list of headings in a single topic

Postby rjplano on Fri Oct 16, 2020 10:02 am

OP here.

I see now this question was asked ten years ago and a javascript answer was provided by a forum member. https://forums.madcapsoftware.com/viewtopic.php?t=11199&p=63842. Our friend Nita suggested at the time to submit a feature request as many people are looking for that capability. I guess MadCap determined this request was not worth addressing. :( Either that or they've hidden the solution quite well.
rjplano
Propeller Head
 
Posts: 17
Joined: Tue May 05, 2020 10:08 am

Re: Generating a list of headings in a single topic

Postby Nita Beck on Fri Oct 16, 2020 10:29 am

The forum post you linked to is 10 years old, and MadCap has since added the functionality you seek to Flare.

Use a menu proxy and associate the proxy with "Headings" rather than a TOC file.

For more info, https://help.madcapsoftware.com/flare2020r2/Content/Flare/Proxies/Menus/Creating-Topic-Menu.htm.
Nita
Image
Content Strategist / Information Architect / Flare Consultant: http://beck-communications.com
Manager, Rochester Flare User Group: http://www.facebook.com/RochesterFlareUserGroup
Nita Beck
Senior Propellus Maximus
 
Posts: 3361
Joined: Thu Feb 02, 2006 9:57 am
Location: Pittsford, NY

Re: Generating a list of headings in a single topic

Postby rjplano on Fri Oct 16, 2020 1:10 pm

Thanks, Nita! I was not familiar with the Menu Proxy before you pointed it out.

I did note in my follow-up post that the post I saw was ten years old. After more searching I didn't find a solution other than the javascript implementation provided by a user, so I assumed it had it not been addressed by MadCap. I'm certainly glad to see that it has been.
rjplano
Propeller Head
 
Posts: 17
Joined: Tue May 05, 2020 10:08 am

Re: Generating a list of headings in a single topic

Postby rjplano on Fri Oct 16, 2020 1:39 pm

The menu proxy is only listing the h1 and h2 headings, even though the Levels to Show is set to (all). I need the h3 headings to be listed. Any hints? Is there a way to show only the h3 heading text?

Thanks again.
rjplano
Propeller Head
 
Posts: 17
Joined: Tue May 05, 2020 10:08 am

Re: Generating a list of headings in a single topic

Postby Psider on Sun Oct 18, 2020 7:16 pm

Maybe check that the H3 doesn't have mc-heading-level set to 0 (zero) in your stylesheet?
Psider
Propellus Maximus
 
Posts: 649
Joined: Wed Jul 06, 2011 1:32 am

Re: Generating a list of headings in a single topic

Postby rjplano on Mon Oct 19, 2020 10:47 am

Psider wrote:Maybe check that the H3 doesn't have mc-heading-level set to 0 (zero) in your stylesheet?


That was it! Nice catch Psider.

Thanks.
rjplano
Propeller Head
 
Posts: 17
Joined: Tue May 05, 2020 10:08 am


Return to Web-based Outputs

Who is online

Users browsing this forum: No registered users and 9 guests