Normally, topic links execute jumps to the top of the target topic. However, often you will also want to create jumps to some point inside a topic. This is done with "anchors" (sometimes also referred to as "bookmarks" in books on help), which are named "targets" that you insert at any position within a topic so that you can jump to them with a link.
Anchors in Help & Manual do not have captions. They are identified by an anchor icon in the editor. |
OR
Type in a descriptive ID for the anchor in the Anchor ID: field. This will be displayed in the link dialog when you are creating links so it should be easy to identify. You cannot use spaces or special characters.
Like topic IDs, anchor IDs can be up to 255 characters long. However, since you need to view anchor IDs in dialog boxes it is advisable to keep them relatively short. |
To quickly create a link to an anchor in the current or another topic just create the link with Drag & Drop and then double-click on the link to select the target anchor in the dialog. |
When you create a hyperlink to a topic containing a linked snippet any anchors stored in the snippet will not be displayed the drop-down anchor list next to the Target: field. (This does not apply for snippets inserted in Copy mode, of course, which become part of the current topic like normal pasted text.)
|
You can also create URL links from your application or from other web pages to anchors in Webhelp pages so that users are taken directly to a specific point in a topic when they use your links. The syntax is exactly the same as the standard HTML syntax for URLs containing anchor references: index.html?topicname.htm#anchorname The topic name is simply the Topic ID of the topic, plus the extension .htm. The entire URL must be written in lower case because Help & Manual automatically converts all file names to lower case in HTML output for compatibility with Unix and Linux servers. See Context calls to Webhelp for some more details on this. |
You can also associate index keywords with anchors. Selecting these keywords in the help index will then jump to the anchor instead of the top of the topic. See Keywords and Indexes more information on using keywords and Using keywords with anchors for more information on using keywords in combination with anchors.
It is possible to have the same keywords in both the topic's keyword list and in one or more anchors in the same topic. However, if you want your index entries to enable jumps to the anchor without confusing the user it is better to avoid this. |
You can edit an anchor and its ID by double-clicking on it. However, it is better not to change anchor IDs after creating them. Unlike topic IDs, links to anchor IDs are not updated if you edit them. This means that editing an anchor ID can create dead links and links to "dead" anchors are not highlighted. The link to the page will still work, of course, but the jump to the anchor will not. How to locate and correct dead anchor links Dead anchor links are not listed in your project reports. However, you can locate them by publishing to any HTML-based output format (HTML Help, Webhelp, eBooks, Visual Studio Help). The compiler report will list all topics containing links to undefined anchors with links to the topics so that you can edit them and correct the anchor reference. Tip: If you have the Professional edition of Help & Manual the easiest way to locate an anchor is to search for the anchor ID in the XML Source Code tab. You can then either edit it directly there or switch back to the editor tab and edit it there. |
See also:
Page url: http://www.helpandmanual.com/help/index.html?hm_working_links_anchors.htm