How can I add a link to another element within the same topic?
You can use the Link icon and manually edit the attributes to insert a link to another element.
Symptom
I want to link to another element within the same topic.
Problem
I do not know how to link to another element.
Solution
Perform the following to insert a link to another element.
Note: This solution
requires DITA 1.3 and a 2.x OT.
- Add an ID to the element you want to link to. For example,
<p ixia_locid="6" id="link-para">
- Place your cursor where you want to insert the link.
- In the Oxygen editor, click .
- Click Cross Reference.
- In the Location drop-down list, select the current topic.
- In the Select the target element section, select the ID to link to.
- Click Insert and close. The xref is inserted as
<xref href="#hqm1517240717943/link-para" format="dita"/>
- Right-click the
xref
element. - Click Edit Attributes.
- Edit the
href
attribute to remove the topic ID and replace it with a period:<xref href="#./link-para" format="dita"/>