Authoring - Using pointerpaths in hyperlinks

In creating a  hyperlink we demonstrated the behavior of a hyperlink pulled out of its context . In creating a pointerpath we have defined a context by means of an alias and a pointerpath to the hyperlink target 'About the shark' of the 'Fishes' book. Here we demonstrate the effect of using a pointerpath in the hyperlink properties.

Copying an object

Copy the 'About the shark' topic under the 'Book: Fishes'.

Pasting the hyperlink with the pointerpath

Select the topic in which you want to insert the hyperlink. In this example that would be 'Related topics' under the 'Birds' book. Put the cursor at the point where you want to insert the hyperlink and popup the menu. The 'Paste hyperlink to' menu item now shows two options. The first one is the regular hyperlink, the second one is the hyperlink in a context (having the pointerpath). The string 'Book: Fishes > About the shark' reveals that 'Book: Fishes' is the context of 'About the shark'. This is what we need here.

If the hyperlink is inserted, you can change the hyperlink text if you like.

Opening the hyperlink properties

Now open the hyperlink properties by popping up the menu on the link and selecting 'Hyperlink properties'.

The hyperlink properties

This is just to have a look at two additional options in the hyperlink's properties.

The 'Context' which is the folder to which the alias is attached.

 

The 'Pointerpath' which is assigned to the hyperlink target in Creating a pointerpath. This helps the system to locate the target (the 'About the shark') in its context (the 'Fishes' book).

 

To see the effect of this hyperlink now, preview the 'Book: Birds' and select the 'Related topics' item.

Previewing content with a hyperlink

If you click on the hyperlink its context (the 'Fishes' book) is displayed and the hyperlink target is located and preselected.

The hyperlink target opened in its scope

Pointerpaths are not mandatory to have nice working hyperlinks. As explained in creating a hyperlink there are several ways to show or jump to a hyperlink target. It is all about how valuable or workable a content object still is when it is shown on its own outside any context. In general, topics are more sensitive to this phenomenon then for example chapters and books.

In other words use pointerpaths with care because when you change the structure of your content the pointerpaths might break. So, there will be some maintenance work involved. This is explained in Detecting and correcting invalid pointerpaths.

Authoring

 About HelpServer
 Starting up and logging on
 The basic working principles
 Using the content in help and documentation systems
 Formatting the content
 Searching and replacing text
 Reusing content with shares
 Navigating with hyperlinks
 Navigating with pointerpaths
 Creating a pointerpath
 Searching for a pointerpath
 Using pointerpaths in hyperlinks
 Detecting and correcting invalid pointerpaths
 Using bookmarks and jumps
 Duplicating content with clones
 Using tables
 Including media files
 Navigating to web pages
 Using embedded chunks
 Including html code
 Navigating with menus
 Using snippets
 Spelling checking
 Using the view mode
 Creating an index
 Creating a FAQ
 Creating a glossary
 Team authoring
 Working with projects
 Setting up structured authoring
 Generating file based output
 Creating printed output
 Importing files and folders
 Loading files in the project gallery
 Converting legacy content
 Including legacy content in real time
 Transferring objects between installations
 Smartcontent
 Notification
 Feedback
 Translating
 Customizing the look and feel
 User accounts
 Security
 Working with templates
 Working with metadata
 Versioning
 Auditing
 Workflow management
 Annotations
 Using event exits
 Appendix A: The URL parameters
 Appendix B: The object indicators
 Appendix C: Play Javascript