Hello,
This may be a very trivial question for Flare use, but I was wondering if there was a way to remove certain tags that I did not want to appear in my Table of Contents for my print based output? For example, my project uses H1, H2, H3, and H4 XML tags all throughout the project. When I generate my TOC it displays levels for all of these tags. I want my generated TOC to only display the H1, H2, and H3 tags though. Does anyone know how to go about doing this? I am able to see and edit my p.TOC1, p.TOC2, p.TOC3, p.TOC4 tags in the stylesheet but I wasn't quite sure how to delete them so they would not be generated when I generate my print based target.
What I have:
...H1
......H2
.........H3
............H4
What I want:
...H1
......H2
.........H3
Thank you to any and all in advance for help with this.
Garrett
Removing Tags for Table of Contents
-
GarrettDRussell
- Propeller Head
- Posts: 21
- Joined: Tue Jul 16, 2013 1:02 pm
Re: Removing Tags for Table of Contents
In the print medium, set the mc-heading-level attribute to 0 for those headings you don't want to appear in the generated TOC. You can still use h4, h5, and h6 in your topics, but the associated text won't appear in the TOC when you build. I believe that also hides them from the bookmark pane, too.
Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
-
GarrettDRussell
- Propeller Head
- Posts: 21
- Joined: Tue Jul 16, 2013 1:02 pm
Re: Removing Tags for Table of Contents
Awesome! That worked perfectly.
Just a heads up for anyone else that stumbles across this topic: if you are changing the mc-heading-level value, make sure you do so under the h4 style in your stylesheet and not under the p.TOC4 style in the stylesheet. Made that mistake on the first run-through but then went back and made the edits to the h4 tag and it worked. It looks exactly as I want it to.
Thanks,
Garrett
Just a heads up for anyone else that stumbles across this topic: if you are changing the mc-heading-level value, make sure you do so under the h4 style in your stylesheet and not under the p.TOC4 style in the stylesheet. Made that mistake on the first run-through but then went back and made the edits to the h4 tag and it worked. It looks exactly as I want it to.
Thanks,
Garrett