minitoc heading

This forum is for all Flare issues related to the HTML5, WebHelp, WebHelp Plus, and Adobe Air Targets
Post Reply
pdenchfield
Propellus Maximus
Posts: 574
Joined: Tue Oct 03, 2006 7:56 am
Location: Seattle, WA
Contact:

minitoc heading

Post by pdenchfield »

Is there a way to add a heading to the minitoc proxy, something like "In this section"? Flare's Help does not seem to cover this. http://webhelp.madcapsoftware.com/flare ... iniTOC.htm

Thanks for any help you can provide.
Nita Beck
Senior Propellus Maximus
Posts: 3672
Joined: Thu Feb 02, 2006 9:57 am
Location: Pittsford, NY

Re: minitoc heading

Post by Nita Beck »

I don't think so. You'd need to add a paragraph directly above the miniTOC proxy with the phrasing you'd like.
Nita
Image
RETIRED, but still fond of all the Flare friends I've made. See you around now and then!
pdenchfield
Propellus Maximus
Posts: 574
Joined: Tue Oct 03, 2006 7:56 am
Location: Seattle, WA
Contact:

Re: minitoc heading

Post by pdenchfield »

Thanks, Nita. In this case the minitoc is inserted into a master page for my WebHelp output, and some topics don't have children topics, so I would like to show the paragraph above the minitoc only if there is a minitoc. I welcome any ideas!
whunter
Sr. Propeller Head
Posts: 429
Joined: Thu Mar 12, 2009 4:49 pm
Location: Portland, OR

Re: minitoc heading

Post by whunter »

You can do this by adding auto-number text to the MadCap | miniTocProxy style. For example:

Code: Select all

MadCap|miniTocProxy
{
	mc-auto-number-format: 'In this section:';
	mc-auto-number-class: miniTocBoxTitle;
	border-top-width: 0px;
}
I don't remember if you have to manually add the style to your stylesheet or if it's in there already.
Nita Beck
Senior Propellus Maximus
Posts: 3672
Joined: Thu Feb 02, 2006 9:57 am
Location: Pittsford, NY

Re: minitoc heading

Post by Nita Beck »

whunter wrote:You can do this by adding auto-number text to the MadCap | miniTocProxy style.
<slap_forehead>Doh! Of course.</slap_forehead>
Interesting idea; sounds like it should work!
Nita
Image
RETIRED, but still fond of all the Flare friends I've made. See you around now and then!
pdenchfield
Propellus Maximus
Posts: 574
Joined: Tue Oct 03, 2006 7:56 am
Location: Seattle, WA
Contact:

Re: minitoc heading

Post by pdenchfield »

Hmmm... no change. Any ideas?
minitoc-heading-wanted.png
CSS:

Code: Select all

MadCap|miniTocProxy
{
	margin-top: 20px;
	padding-top: 0px;
	mc-auto-number-format: 'In this section:';
	mc-auto-number-class: miniTocBoxTitle;
}

You do not have the required permissions to view the files attached to this post.
Nita Beck
Senior Propellus Maximus
Posts: 3672
Joined: Thu Feb 02, 2006 9:57 am
Location: Pittsford, NY

Re: minitoc heading

Post by Nita Beck »

Are you using Flare 10? Try the "before" pseudo class; that's new in Flare 10. I've never used it myself, so can't advise exact steps.

Read more here: http://webhelp.madcapsoftware.com/flare ... lasses.htm
Nita
Image
RETIRED, but still fond of all the Flare friends I've made. See you around now and then!
pdenchfield
Propellus Maximus
Posts: 574
Joined: Tue Oct 03, 2006 7:56 am
Location: Seattle, WA
Contact:

Re: minitoc heading

Post by pdenchfield »

Yes, I am using Flare 10. I'll take a look and get back to you. Thanks!
whunter
Sr. Propeller Head
Posts: 429
Joined: Thu Mar 12, 2009 4:49 pm
Location: Portland, OR

Re: minitoc heading

Post by whunter »

Also keep in mind that the mc-auto-number-class: miniTocBoxTitle is a span class that I defined in my stylesheet to control the styling of the "In this section" auto-number text. If you haven't done so, you would need to create your own span style and use that.
LTinker68
Master Propellus Maximus
Posts: 7247
Joined: Thu Feb 16, 2006 9:38 pm

Re: minitoc heading

Post by LTinker68 »

You also need to modify the DIV that contains the mini-TOC. Here are the styles I have in my stylesheet related to the mini-TOC. I'm including a couple for each, one that results in "In this section" preceding the entries, and one that says "In this section: How do I...". I also have a span class to control the appearance of that title. (I believe it was Dave Lee who originally documented this, so you can thank him.)

Code: Select all

MadCap|miniTocProxy
{
	margin-top: 30px;
	border-top: none;
	mc-auto-number-class: miniTocBoxTitle;
	margin-left: 0px;
	padding-left: 0px;
	mc-auto-number-format: 'In this section:';
}

MadCap|miniTocProxy.howDoI
{
	margin-top: 30px;
	border-top: none;
	mc-auto-number-class: miniTocBoxTitle;
	margin-left: 0px;
	padding-left: 0px;
	mc-auto-number-format: 'In this section: How do I...';
}

div.MCMiniTocBox_0
{
	mc-auto-number-class: miniTocBoxTitle;
	mc-auto-number-format: 'In this section:';
}

div.MCMiniTocBox_howDoI_0
{
	mc-auto-number-class: miniTocBoxTitle;
	mc-auto-number-format: 'In this section: How do I...';
}

span.miniTocBoxTitle
{
	font-weight: bold;
	color: #b88932;
}
Image

Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
pdenchfield
Propellus Maximus
Posts: 574
Joined: Tue Oct 03, 2006 7:56 am
Location: Seattle, WA
Contact:

Re: minitoc heading

Post by pdenchfield »

Thanks, Lisa! I have my minitoc heading now. :-)

EDIT: Just trying to figure out margins/padding above and below each item .... trying values for margins and padding... no luck - see my post here.
http://forums.madcapsoftware.com/viewto ... =9&t=18923
NorthEast
Master Propellus Maximus
Posts: 6426
Joined: Mon Mar 05, 2007 8:33 am

Re: minitoc heading

Post by NorthEast »

LTinker68 wrote:(I believe it was Dave Lee who originally documented this, so you can thank him.)
I thought this looked familiar.

The reason you need to include the DIVs, is because Flare ignores the mc-auto-number-format property on MadCap|miniTocProxy when it builds the output. It will include other properties from the miniTocProxy, but not the autonumber.

Therefore, you have to manually add the mc-auto-number-format property to the output styles used for the minitoc, the div.MCMiniTocBox class(es).
pdenchfield
Propellus Maximus
Posts: 574
Joined: Tue Oct 03, 2006 7:56 am
Location: Seattle, WA
Contact:

Re: minitoc heading

Post by pdenchfield »

Thanks, Dave, for the clarification on Flare use of styles for the miniTOC.
Post Reply