Search found 82 matches

by scott
Thu Jan 01, 2009 12:17 pm
Forum: Styles, Stylesheets and XML
Topic: Setting Drop-down Text to Open Expanded
Replies: 50
Views: 106029

Re: Setting Drop-down Text to Open Expanded

Hi Mike,
In this case, "take a look" involved looking at Flare's JavaScript code to see if we can reuse it. Here's what I did:

* Previewed a topic with a drop-down, right-clicked, and selected View Source.

* Looked through the XHTML to see how drop-downs are coded.
I found that drop-down links ...
by scott
Tue Dec 30, 2008 7:48 pm
Forum: Styles, Stylesheets and XML
Topic: Setting Drop-down Text to Open Expanded
Replies: 50
Views: 106029

Re: Setting Drop-down Text to Open Expanded

Hi Mike,
That script will work fine if you call it when you open your topic--it assumes all of the links are closed.

Calling the script from a link and checking to see if the drop-down is open or closed is harder, but I think it can be done. Let me take a look.
by scott
Tue Dec 30, 2008 4:58 pm
Forum: Styles, Stylesheets and XML
Topic: Setting Drop-down Text to Open Expanded
Replies: 50
Views: 106029

Re: Setting Drop-down Text to Open Expanded

Hi Mike,
No problem. This short script (from the post above--no changes) will open a specific drop-down and change its icon:

<a href="javascript:document.links[1].click()">Click here</a>

This slightly revised script will open all drop-downs -and- change their icons:

function showDropDowns ...
by scott
Tue Dec 30, 2008 2:01 pm
Forum: Styles, Stylesheets and XML
Topic: Setting Drop-down Text to Open Expanded
Replies: 50
Views: 106029

Re: Setting Drop-down Text to Open Expanded

Do you mean the drop-down's icon (the default arrow that points right or down), or are you creating your own link icon that you want to change? In my test topic, the drop-down's arrow changes when you click the link. It should change for you, too. The code "clicks" the link just like a user might ...
by scott
Tue Dec 30, 2008 1:13 pm
Forum: Styles, Stylesheets and XML
Topic: Setting Drop-down Text to Open Expanded
Replies: 50
Views: 106029

Re: Setting Drop-down Text to Open Expanded

Hi,
You can open a drop-down using its ID or its position in the topic. Since Flare assigns the IDs when you preview a topic or build a target, I don't think you should use the ID. Using the link's position in the topic isn't perfect--you will have to change the code if you add links or even if you ...
by scott
Wed Dec 24, 2008 3:29 pm
Forum: Styles, Stylesheets and XML
Topic: Setting Drop-down Text to Open Expanded
Replies: 50
Views: 106029

Re: Setting Drop-down Text to Open Expanded

Hi Mike,
This script finds all of the div tags and checks each one to see if its ID includes "MCDropDownBody" (Flare places your drop-down content in a div that is named "MCDropDownBody" plus a unique number). If "indexOf" is -1, the div's ID does not contain "MCDropDownBody."

"Block" means to ...
by scott
Wed Dec 24, 2008 1:31 pm
Forum: Styles, Stylesheets and XML
Topic: Setting Drop-down Text to Open Expanded
Replies: 50
Views: 106029

Re: Setting Drop-down Text to Open Expanded

No problem. I made a new script you can use to open all drop-downs from a link.

You won't need to use the onLoad event to call the script from the body tag, so you can leave it as <body>.

Set up your link to open the script:
<a href="javascript:void(0)" onClick="showDropDowns()">Show all</a ...
by scott
Wed Dec 24, 2008 12:40 pm
Forum: Styles, Stylesheets and XML
Topic: Setting Drop-down Text to Open Expanded
Replies: 50
Views: 106029

Re: Setting Drop-down Text to Open Expanded

Hi!
I've written a JavaScript for you that will open all of the drop-downs when the page loads.

First, change your body tag to call the script:
<body onLoad="openDropDowns()">

Then, add the script to your topics:
<script>
function openDropDowns() {
//<![CDATA[
for (i=0;i<document.links.length ...
by scott
Wed Dec 24, 2008 12:18 pm
Forum: Styles, Stylesheets and XML
Topic: Setting a Toggler to Open Expanded
Replies: 10
Views: 7841

Re: Setting a Toggler to Open Expanded

Hi all,
I've written a script that you can use to open togglers as expanded.

See http://forums.madcapsoftware.com/viewto ... f=6&t=7876
by scott
Tue Dec 23, 2008 9:52 am
Forum: Printed Documentation Targets
Topic: heading levels not displaying in PDF output
Replies: 13
Views: 7513

Re: heading levels not displaying in PDF output

lol!

Definitely try the new TOC as a test. You don't have to add everything.

If the new TOC test doesn't change anything, Distiller or (possibly) Flare 4.1 could be the problem. Check to see which version of Distiller you have. I have 8, and it seems to work well. You might need to upgrade ...
by scott
Tue Dec 23, 2008 9:07 am
Forum: Printed Documentation Targets
Topic: heading levels not displaying in PDF output
Replies: 13
Views: 7513

Re: heading levels not displaying in PDF output

How about creating a new TOC as a test? Try including a few of your "intro" topics and some of your chapter topics and building your PDF.

The potential causes that come to mind (in order) are your stylesheet, page layout, TOC, Distiller, and Flare. We can focus on each one till we find the culprit ...
by scott
Tue Dec 23, 2008 8:43 am
Forum: Printed Documentation Targets
Topic: heading levels not displaying in PDF output
Replies: 13
Views: 7513

Re: heading levels not displaying in PDF output

Can you temporarily "turn off" the main_page page layout in your TOC (take out the chapter break) and see if everything appears again?
by scott
Tue Dec 23, 2008 8:25 am
Forum: Printed Documentation Targets
Topic: heading levels not displaying in PDF output
Replies: 13
Views: 7513

Re: heading levels not displaying in PDF output

It could be your TOC and/or your stylesheet.

At the point in your TOC where it starts showing only h1s, are you using a different page layout?

Also, are you using the same stylesheet for all of your topics? A style property named mc-heading-level in the printsupport group specifies how a style ...
by scott
Mon Dec 22, 2008 3:17 pm
Forum: Printed Documentation Targets
Topic: heading levels not displaying in PDF output
Replies: 13
Views: 7513

Re: heading levels not displaying in PDF output

Hi!
The "Use TOC depth for heading levels" option on the Printed Output tab is an interesting option. It reformats the headings in your topics to match their TOC level.

For example, using this TOC:
TOC book that links to Overview.htm
...TOC book that links to Topic1.htm
......TOC page that links ...
by scott
Mon Dec 22, 2008 3:02 pm
Forum: Web-based Outputs
Topic: WebHelp Quick Search: how to find partial match?
Replies: 1
Views: 1670

Re: WebHelp Quick Search: how to find partial match?

Hi Carl,
That's a great idea for a feature request: https://www.madcapsoftware.com/bugs/Submit.aspx.

I like how Google Chrome and Firefox start highlighting as you type. Maybe MadCap can make the quick search do that as well.
by scott
Mon Dec 22, 2008 12:29 pm
Forum: Styles, Stylesheets and XML
Topic: display all toggles when page loads ...
Replies: 20
Views: 20107

Re: display all toggles when page loads ...

No problem:

1) Open a text file (Notepad's fine).
2) Paste:
//<![CDATA[
for (i=0;i<document.links.length;i++) {
if (document.links[i].className == 'MCToggler') document.links[i].click();
} //]]>
3) Save it as a .js file (such as "openTogglers.js").
4) Copy the js file into your Content folder.
5 ...
by scott
Mon Dec 22, 2008 10:34 am
Forum: Flare's General Discussion
Topic: Applying Page Layouts to Specific Topics
Replies: 1
Views: 3333

Re: Applying Page Layouts to Specific Topics

Hi Ryan,
Page layouts work with TOCs. To set up your print target to use a page layout:

* Right-click a TOC book or page and select Properties.
* Select the Printed Output tab.
* Select Start a new chapter document.

The page layout will be used starting from this point in the document. If you ...
by scott
Mon Dec 22, 2008 9:42 am
Forum: Styles, Stylesheets and XML
Topic: display all toggles when page loads ...
Replies: 20
Views: 20107

Re: display all toggles when page loads ...

Hi Matt,
I've written a JavaScript for you that will open all of the togglers when the page loads.

First, change your body tag to call the script:

<body onLoad="openTogglers()">

Then, add the script to your topics:

<script>
function openTogglers() {
//<![CDATA[
for (i=0;i<document.links ...
by scott
Sun Dec 21, 2008 10:42 pm
Forum: Tips and Tricks
Topic: Tech Writing Tips Blog and Websites!
Replies: 26
Views: 161929

Re: Tech Writing Tips Blog and Websites!

Hi all,
I regularly post Flare and CSS tips to my website -- check out the Tips section at http://www.clickstart.net.


happy holidays!
.scott
by scott
Thu Dec 11, 2008 8:31 pm
Forum: Printed Documentation Targets
Topic: formatting miniTOC entries as a list?
Replies: 12
Views: 8771

Re: formatting miniTOC entries as a list?

Hi Bob,
All of these work for me in WebHelp (I didn't check other online formats):

p.MiniTOC1
{
display: list-item;
}

p.MiniTOC2
{
display: list-item;
list-style-image: url('../../smiley.png');
}

p.MiniTOC3
{
display: list-item;
list-style-type: circle;
}

Try defining a few levels to make ...
by scott
Thu Dec 11, 2008 11:17 am
Forum: Flare's General Discussion
Topic: MadCap Flare: The Definitive Guide
Replies: 19
Views: 131511

MadCap Flare: The Definitive Guide

Hi everyone!
I'm pleased to announce the new edition (and new title) of my book: MadCap Flare 2017: The Definitive Guide .

This 465-page book covers Flare 2017's new features, including:
* Clean XHTML target type
* Dynamic preview pane
* Pinned images
* Pinned variables
* MadCap Central ...
by scott
Thu Dec 11, 2008 11:17 am
Forum: Tips and Tricks
Topic: MadCap Flare Certified Test Review + Developer's Guide
Replies: 8
Views: 43950

MadCap Flare Certified Test Review + Developer's Guide

Hi everyone!
I'm pleased to announce my new book: MadCap Flare Certified Test Review + Developer's Guide .

The book covers all of Flare's major features and includes:
* tips and tricks
* a list of top 10 "gotchas" when converting to Flare from RoboHelp and FrameMaker
* keyboard shortcut ...
by scott
Wed Dec 10, 2008 7:14 pm
Forum: Web-based Outputs
Topic: Search Highlighting
Replies: 3
Views: 2133

Re: Search Highlighting

Hi!
The kb article might be out of date. I think it's easier to import and use the "SearchHighlight" classes to format the search highlight styles.

To format the search highlight styles:
* Open your stylesheet.
* In the Stylesheet Editor toolbat, click Options and select Import Styles.
* Select the ...
by scott
Wed Dec 10, 2008 6:41 pm
Forum: Printed Documentation Targets
Topic: formatting miniTOC entries as a list?
Replies: 12
Views: 8771

Re: formatting miniTOC entries as a list?

Hi Bob,
You can use the p.MiniTOC1 (and ...2, ...3, etc) styles to format the miniTOC as a bulleted list.

To format the miniTOC items as a bulleted list:
* Set the p.MiniTOC1 style's display property to list-item.
* Set the list-style-image to your image. Your image must be in the Reousrces\Images ...
by scott
Wed Dec 10, 2008 4:18 pm
Forum: Printed Documentation Targets
Topic: Support for Vector formats for hi-quality print
Replies: 5
Views: 4154

Re: Support for Vector formats for hi-quality print

You're correct, Lisa. These formats are not supported by most browsers.

If you use a non-Web-safe format (anything other than gif, jpg, or png), you should select the "Generate 'web-safe' images" option on the Advanced tab of your WebHelp target and select gif, jpg, or png. Flare will then ...