Glossary, TOC and Page Layouts, oh my...

This forum is for all Flare issues related to styles, stylesheets and XML.
Post Reply
Pamb10
Sr. Propeller Head
Posts: 126
Joined: Wed Feb 01, 2006 2:08 pm
Location: Florida
Contact:

Glossary, TOC and Page Layouts, oh my...

Post by Pamb10 »

I am in a quandry right now about how to adjust my project to encompass these things together to work as needed.

I am building a template that all Flare documentation writers will use to create corporate styled PDF output. Here is the problem I am running into and cannot seem to figure out a way around.

Chapter First page use a chapter page layout first page with a decoration (blue bar) with chapter number inside it. This is working perfectly.
Next I need to have and About page, Index and Glossary pages. These pages all have their own page layouts and htm pages.

Let me take one as an example to show my problem.

The glossary proxy page has an H1 with the word Glossary and the Glossary proxy.
The glossary page layout has the blue bar decoration, with text of Glossary.

With this layout, I get the word glossary within the blue bar, however I also get another instance of the word glossary (i assume from the H1 instance on the page).

If I remove the H1 Glossary from the page, it looks good, but the page does not show in the TOC.

What can I do to get this both to show in the TOC but also look correctly on the page. Hope this makes sense.

Bad Layout:
You do not have the required permissions to view the files attached to this post.
LTinker68
Master Propellus Maximus
Posts: 7247
Joined: Thu Feb 16, 2006 9:38 pm

Re: Glossary, TOC and Page Layouts, oh my...

Post by LTinker68 »

Try this. Create a new h1 class called GlossaryTitle, or something like that. Leave the mc-heading-level set to 1 so that it shows up in the TOC, but set its display attribute to none (in the stylesheet). Apply that class to the glossary topic's heading and build the output. It should show up in the TOC (mc-heading-level:1;) but be hidden in the topic (display:none;).
Image

Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
Pamb10
Sr. Propeller Head
Posts: 126
Joined: Wed Feb 01, 2006 2:08 pm
Location: Florida
Contact:

Re: Glossary, TOC and Page Layouts, oh my...

Post by Pamb10 »

OMG! That is wonderful!

Ok, that worked beautifully except the glossary terms, are now adjusted upwards and are too high since the h1 is not displayed.
You do not have the required permissions to view the files attached to this post.
Pamb10
Sr. Propeller Head
Posts: 126
Joined: Wed Feb 01, 2006 2:08 pm
Location: Florida
Contact:

Re: Glossary, TOC and Page Layouts, oh my...

Post by Pamb10 »

This is what the page layout looks like.
You do not have the required permissions to view the files attached to this post.
LTinker68
Master Propellus Maximus
Posts: 7247
Joined: Thu Feb 16, 2006 9:38 pm

Re: Glossary, TOC and Page Layouts, oh my...

Post by LTinker68 »

Well that's weird. Your glossary heading looks like it's starting in the header frame instead of the body frame.

Actually, is that a header frame at the top? It's not another body frame is it? I'm not seeing a flow line, so I'm assuming not (its label is hidden behind the decoration frame). If there's nothing in the header frame, then you might try removing it from that page layout and see if the glossary heading moves back to the correct position (if it does, then I consider having to remove the header frame a bug).

Wait a minute... Your screenshot with the h1 for Glossary also looked higher than the body frame. So either that top frame is a body frame, or you have a negative top margin specified in your body tag in the stylesheet. It seems like the body frame would take precedence, but perhaps not. So do you have a negative top margin specified for the <body> tag, either in the default medium or in the medium you're using for print outputs?
Image

Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
Pamb10
Sr. Propeller Head
Posts: 126
Joined: Wed Feb 01, 2006 2:08 pm
Location: Florida
Contact:

Re: Glossary, TOC and Page Layouts, oh my...

Post by Pamb10 »

I just got it figured out as you were posting. Yes the header was a body frame, that someone added before I took over the project. Looks like it was just used for placement of the decoration frame. I removed it and all is perfect! Thank you so much!
Post Reply