Navigation:  Basic Working Procedures > Keywords and Indexes >

Using A-keywords

Print this Topic Previous pageReturn to chapter overviewNext page
Show/Hide Hidden Text

A-keywords, also known as "A-link keywords", are quite similar to normal keywords but they not displayed in the index, they are always "hidden". What use is a keyword that isn't displayed in the index? There are two major uses for A-keywords: To create "See also" lists of related topics and to create links between help files in modular help systems.

See About A-Keywords for background information.

 

       Key Information

Note that A-keywords are a Microsoft help technology that is only supported in the Microsoft Winhelp (HLP) and HTML Help (CHM) formats. A-keywords are irrelevant in all other output formats, including Webhelp.

How to make an automated See Also list with A-keywords

This method creates links that display a list of related topics. It works in both HTML Help and the obsolete Winhelp format. It will not work an any other output format.

Step 1: Enter the A-keywords

1.Select a topic and display its  tab.
2.Enter one or more keywords in the A-Keywords: section, one keyword per line. Note that sub-keywords are not supported with A-keywords!
3.Repeat for all topics you want to "associate" with one another, adding the same A-keyword to each topic.

Step 2: Create the link

The link that displays the list of See also: topics is created using the Winhelp ALink macro. The syntax of this macro is much simpler than its HTML Help equivalent and so Help & Manual automatically translates it when you output to HTML Help.

1.Select Insert > Link in Write > Insert to create a hyperlink.
2.Select the Script/Macro option in the Insert Hyperlink dialog, then select Winhelp macro as the type of hyperlink.
3.Enter Alink() in the Script: field and type the keywords you want to link to between the parentheses. If you enter more than one keyword separate them with semicolon (;) characters, like this:

This example will create a link that displays a list of all topics that contain the A-keywords "troubleshooting" or "solutions".

Note that when you are working in HTML Help you can only enter keywords as the argument for the Winhelp macro. You cannot enter the other parameters for the Winhelp A-Link macro because they are not translated into HTML Help code!

How to link between help modules with A-keywords

Use this method to create links between the help files of modular help systems if there is a possibility that the help files containing the target topics may not be present when the help is viewed. This can happen when you use runtime merging and choose not to include one or more of the help files in your distribution. It can also happen if you are using conditional output to exclude modules from publish-time merged HTML Help and Winhelp projects.

This technique works both in HTML Help and the obsolete Winhelp forma but not in any other formats. Please study Working with Modular Help Systems before trying to use this method!

Step 1: Prepare the alternative topic in the master project

The alternative topic should be in the master project because this is the only help file that is always present in a runtime-merged modular help system.

1.Open the master help project and choose or create the alternative topic that you want the user to be able to view when the other help file module containing the target topic is not available.
2.Select this alternative topic, select the  tab and enter a unique A-keyword in the A-Keywords: field. The A-Keyword must be unique it should not be used anywhere else in your projects! If it is, all the topics where it is used will be displayed when the A-Link hyperlink is clicked.

Step 2: Prepare the target topic in the child project

1.Open the child project and select the topic you want to link to.
2.Select the  tab and enter the same unique A-keyword as above in the A-Keywords: field.

Step 3: Create the link

1.Open the project module in which you want to create the link. This can be a master module or another child module.
2.Select Insert > Link in Write > Insert to create a hyperlink.
3.Select the Script/Macro option in the Insert Hyperlink dialog, then select Winhelp macro as the type of hyperlink.
4.Enter Alink() in the Script: field and type the keyword between the parentheses. If your keyword is "about widgets" the dialog would look like this:

If the target help file is not present when the user clicks on the link the alternative topic will be displayed automatically. If the target topic is present a dialog will be displayed in which the user can select either the target topic or the alternative topic.

This is just a very simple example to show you how this solution works in principle. In practice you can also make more complex solutions, using more alternative topics and more keywords. If you use multiple keywords remember to separate them with semicolons, like this:

Alink(about widgets;troubleshooting;widget solutions)

Note that when you are working in HTML Help you can only enter keywords as the argument for the Winhelp macro. You cannot enter the other parameters for the Winhelp A-Link macro because they are not translated into HTML Help code!

See also:

About A-Keywords (Reference)

 


Page url: http://www.helpandmanual.com/help/index.html?hm_working_keywords_akeywords.htm