Modifying Popup Text

After creating your source documents, you may want to change the way the text appears for your pop-up/glossary links in WebWorks Help 5.0 output. This is helpful for setting them apart from standard hyperlinks, and it does not require the use of additional character styles in your source material. It requires two project overrides--one to define the CSS class that describes the formatting cues you'll use, and another to add a reference to that class to the XSL which creates the Popup links.

Define the CSS Class

1. Perform a project override on a file called webworks.css, located by default in your ePublisher Pro installation directory, here:

2. Once the file is copied into the appropriate directory in your project folder, open it with any text- or HTML-editing application (e.g., NotePad). 3. Add a CSS class anywhere in the document (as long as it's not within another class) for the popup anchor tags. Name the class something appropriate, like Popup or Glossary. For example:

4. Save and close webworks.css.

Edit the XSL

1. Perform a project override on a file called content.xsl, located by default in your ePublisher Pro installation directory, here:

2. Once the file is copied into the appropriate directory in your project folder, open it with any text- or HTML-editing application (e.g., NotePad). 3. Find this line of code:

4. Find this line of code:

5. Save and close content.xsl.

Finally, regenerate your project to apply the changes. Using the example provided here, you should end up with popup & glossary links which appear green with a dashed underline:

Files

See the attached files for examples of implementation:

HelpCenter/Tips/Modify_Popup_Text (last edited 2008-02-13 06:18:28 by localhost)