Flare Tip: Controlling the Look-and-Feel of PopupsIn this Flare tip, you will learn how to create an alternate master page for your popup topics and then apply the alternate master page to those specific popup topics using your stylesheet. Setting the Background Color for Popup TopicsHow do you make your topic popups look like traditional WinHelp/HTML Help popups in Flare? The key is changing the background color of the popup topics to make them appear with a faded yellow background color. The easiest way to control the background of popup topics is using master pages. To create a new master pageFirst, you need to create a new master page for the popup topics.
Creating a Style ClassNow you need to apply the popup master page to the popup topics. The easiest way to do that is to create a class for the html tag in your stylesheet. Why would you use the html tag?The HTML tag is the highest level tag in the topic and is the place where you can specify a specific master page to use for a topic. Why not just edit the HTML tag directly?If you specify a master page directly in the html tag, the master page would be used by all topics in the project because they all use the html tag. You could create a class of the HTML tag and use that class to assign the color to your popup topics, but using the master page approach gives you greater control over what appears in the topic.
To create a subset of topics that use a special master page, you can create a class of the html tag. What is a class?Classes are like substyles. They belong to the parent tag but change (or override) some of the attributes associated with that tag. In Flare, classes are the way you create your own custom tags. The most obvious way to add classes is using the Stylesheet Editor. To add a class using the stylesheet editor
Hint: You can select Topic Styles from the list at the top of the Stylesheet Editor to filter the list of styles.
Applying a Class to a TopicNow you need to assign the newly created class for the html tag to your popup topics. To apply a class to a topic (with the topic open)
To apply a class to a topic (with the topic closed)You can also apply a class to a topic through the Topic Properties.
Hint: You could use the topic properties in conjunction with the File List feature to assign the class to multiple topics at the same time. Creating a Topic Popup LinkTo finish the process, you need to create the topic popup link. To create a topic popup link
Testing Your Popups and Alternate Master PagesNow generate your primary target and test the popup link.
Note: You have to generate the help to test the changes you made because the Preview will not show you the alternate master page when you click on the topic popup link. |
|||||
|
|||||