How can I link to an external URL in my relationship table?

You can link to an external URL using keys.

Description

I want a relationship table entry to link to an external URL but the href value for a topic is not available.

Solution

  1. In the DITA perspective, in DITA Map view, add a new key to your map. Right-click the map, click Insert Element > keydef.
  2. Right-click the keydef and click Edit keydef.
  3. In the Edit keydef dialog box, in the keys field, type a name for the key.
  4. In the Edit keydef dialog box, in the Links to section, select href and enter the URL to link to.
  5. From the scope down-down list, select external.
  6. Click OK.
  7. For HTML outputs, do the following:
    1. Click on the newly added topicref.
    2. In the Properties view, set the format to HTML.
  8. In the Reltable Editing perspective, add a topicref element to the reltable row that contains the topic to link to.
    Relationship table insert topicref
  9. Click on the newly added topicref. In the Properties view, set the keyref to the name of the keydef.