how do I make mini-toc use a link style?

This forum is for all Flare issues related to styles, stylesheets and XML.
Post Reply
cayennep
Sr. Propeller Head
Posts: 394
Joined: Mon Jul 26, 2010 3:42 pm

how do I make mini-toc use a link style?

Post by cayennep »

Do I have to set it up with blue, underline, etc, instead of just having it display as a link?? Suppose I can do that, but it's kinda odd
LTinker68
Master Propellus Maximus
Posts: 7247
Joined: Thu Feb 16, 2006 9:38 pm

Re: how do I make mini-toc use a link style?

Post by LTinker68 »

If you're generating online output, and you've properly positioned the mini-TOC proxy in a topic that's a level up from the topics to be referenced (i.e., the topic with the mini-TOC proxy is associated with a book and therefore has "children" topics), then the mini-TOC will automatically resolve to hyperlinks in online output, so it'll inherit the styles for your base <a> pseudo-classes, unless you specifically add mini-TOC pseudo-classes to the stylesheet and style them.
Image

Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
DurtyMat
Sr. Propeller Head
Posts: 224
Joined: Wed Aug 22, 2007 8:09 am
Location: ClrH2o, Fl

Re: how do I make mini-toc use a link style?

Post by DurtyMat »

One of the easiest ways to determine how to stylize any of the proxies (at least online) is to build it and then view the code of the topic. A miniTOC will generate something like this:

<p class="MiniTOC1"><a class="MiniTOC1" href="folder/topic_name.htm">Topic Name</a></p>

So, the style will use the a.MiniTOC1 which automatically inherits styles from <a>. If you wanted to make the MiniTOC1 look different from MiniTOC2 you would just add the MiniTOC1 and MiniTOC2 classes to the <a> style in your stylesheet. So, as Lisa said, the miniTOC will automatically look and act like your current <a> style (see base link color, hover color, and clicked color) and can be modfied seperately if needed.
Flare: I bought it ... so that means I can break it, right?
cayennep
Sr. Propeller Head
Posts: 394
Joined: Mon Jul 26, 2010 3:42 pm

Re: how do I make mini-toc use a link style?

Post by cayennep »

it doesn't, that's the trouble - it displays as bold black text, no blue, no underline

many of these 'default' things don't work as expected and it's a bit difficult to track down why.

I haven't modified either of these, but they do not display as links, as both of you suggest they should.

thanks, will get to this later (more time making things that should just work, work, o well)
lacastle
Propellus Maximus
Posts: 1028
Joined: Thu Apr 12, 2007 7:28 am
Location: Wilmington, DE
Contact:

Re: how do I make mini-toc use a link style?

Post by lacastle »

As a quick work-around, I just modified the mini-toc styles to be blue and underlined, aka to look like a hyperlink.
cayennep
Sr. Propeller Head
Posts: 394
Joined: Mon Jul 26, 2010 3:42 pm

Re: how do I make mini-toc use a link style?

Post by cayennep »

that's what I said in the first place, that I could do that - but it _should_ be based on the <a> class/style, instead of me just modifying the look.
NorthEast
Master Propellus Maximus
Posts: 6426
Joined: Mon Mar 05, 2007 8:33 am

Re: how do I make mini-toc use a link style?

Post by NorthEast »

It's Flare's "default" styles; basically Flare adds a bunch of styles in a separate stylesheet (MadCap.css), and that includes a.MiniTOC1:link (etc.) which is setting the colour to black and no underline. You have to add some styles in your stylesheet to counteract this - see my post here: http://forums.madcapsoftware.com/viewto ... 000#p67000
Post Reply