Table of Contents

Previous

Next


Customizing Table of Contents Icons in FrameMaker

By default, the Contents tab in a Microsoft HTML Help, Oracle Help, and WebWorks Help uses book and page icons to identify entries. By default, the Contents tab in Sun JavaHelp uses folder and page icons to identify entries. You can also customize the table of contents icons.

For example, if you want to make new topics stand out by using a unique icon specific to new books, pages, or folders, you can insert a marker into a topic and specify the icon you want to display for the book, page, or folder in your help system table of contents.

To customize a table of contents icon, your Stationery and template must have the following items configured:

You can customize the appearance of table of contents icons for topics in Microsoft HTML Help, Sun JavaHelp, Oracle Help, and WebWorks help.

The following procedure provides an example of how to customize table of contents icons for topics in Adobe FrameMaker source documents using unstructured Adobe FrameMaker 7.2. Steps for customizing table of contents icons for topics in Adobe FrameMaker may be different in other versions of Adobe FrameMaker.

To specify a custom table of contents icon in an Adobe FrameMaker source document

  1. If you want to specify a custom table of contents icon for Microsoft HTML Help, identify the number of the image you want to use for the table of contents image for the topic in the .hhp file for your Microsoft HTML Help project by completing the following steps:

  2. On the View menu, click Output Directory.

  3. Open the ProjectName folder, where ProjectName is the name of your project.

  4. Open the ProjectName.hhp file where ProjectName is the name of your project.

  5. On the Contents tab, select a table of contents entry, and then click the Pencil icon.

  6. On the Advanced tab, in the Image index field, use the up and down arrows to identify the table of contents image you want to use for the topic.

  7. Note the number of the image you want to use for the table of contents image for the topic.

For example, if you want to use a question mark icon with a red star for the table of contents icon for new topics, note that the number for this icon is 10.

  1. Close HTML Help Workshop.

  2. If you want to specify a custom table of contents icon for Oracle Help or Sun 'JavaHelp, create the graphic file for the custom table of contents icon in .gif format. The default graphics used as Sun JavaHelp or Oracle Help table of contents icons are 17 x 17 pixels. The custom graphics you create for Sun JavaHelp or Oracle Help table of contents icons should also be 17 x 17 pixels. You can assign any name to the graphic files.

  3. If you want to specify a custom table of content icon for WebWorks help, create graphics files containing the collapsed and expanded versions of the icons you want to use, then save the graphic files in .gif format. The default graphics used as WebWorks Help table of contents icons are 17 x 17 pixels. The custom graphics you create for WebWorks Help table of contents icons should also be 17 x 17 pixels. You can assign any name to the graphic files.

  4. Copy the graphic files you want to use as icons in the table of contents into the following folder:

Note: If the folder does not exist, first create the folder using the specified folder structure and then copy the graphic files you want to use as icons into the folder. You do not need to perform this step when specifying custom table of contents icons for Microsoft HTML Help.

ProjectName\Formats\Oracle Help\Files\images folder, where ProjectName is the name of your project.

ProjectName\Formats\Sun Java Help 1.1.3\Files\images folder, where ProjectName is the name of your project.

ProjectName\Formats\Sun Java Help 2.0\Files\images folder, where ProjectName is the name of your project.

ProjectName\Files\wwhelp\images, where ProjectName is the name of your project.

  1. In your Adobe FrameMaker source document, locate the topic where you want to use the custom table of contents icon.

  2. Insert your cursor into the heading for the topic.

  3. On the Special menu, click Marker.

  4. In the Marker Type field, select the appropriate TOCIcon marker type from the drop-down list.

  5. If the appropriate TOCIcon marker type is not on the list, check with the Stationery designer to obtain the name of the marker type the Stationery designer created to support this functionality and then use the marker type specified by the Stationery designer. For more information, refer to “Implementing Online Features in FrameMaker”.

  6. In the Marker Text field, type the following text:

  7. If you are generating Microsoft HTML Help, type the number of the icon that you want to use for the table of contents image.

For example, if you want to use a question mark icon with a red star for the table of contents icon for new topics, type 10.

images/TOCIcon.gif

where TOCIcon.gif is the name of the table of contents icon you want to display for the topic.

c=”collapsed.gif” e=”expanded.gif”

where collapsed.gif is the name of the icon you want to use when the table of contents entry is collapsed, and expanded.gif is the name of the icon you want to use when the table of contents entry is expanded. If the table of contents entry is for a page instead of a book, the entry will never be expanded, so you can omit the e=”expanded.gif” portion of the entry for pages.

For example, you might create a special icon to highlight books that are new for a particular release of your WebWorks Help system. If you named these icons newbookopen.gif and newbookclosed.gif, you would type the following text into the Value field:

c=”newbookclosed.gif” e=”newbookopen.gif”

  1. Click New Marker.

  2. Save your Adobe FrameMaker source document.

  3. Generate output for your project. For more information, see “Generating Output”.

  4. In Output Explorer, verify ePublisher created the table of contents using the table of contents icon you specified for the topic. For more information about viewing output files in Output Explorer, see “Viewing Output in Output Explorer”.

ePublisher/2010.2/Help/03.Preparing_and_Publishing_Content/1.54.Preparing_FrameMaker_Files (last edited 2010-07-22 20:22:42 by BenAllums)