The XML Editor and DITA provide a powerful way to link between topics. It is important to effectively manage your Content References, and that includes working with unique ID values.
Sample files that you may opt to use for this lesson are provided in the file
It is possible to create an external cross-reference by dragging and dropping a topic from the Repository into an open file. However, to avoid broken cross-references, an ID must first be defined to a value related to the parent element. This is one easy way to create a cross-reference while ensuring IDs are correctly assigned.
Open a file where you want to insert an external cross-reference.
Assign an ID to the element to be referenced.
a. Click inside the element.
b. On the Content Properties panel, choose ID from the Attribute dropdown.
c. Type a logical name in the Value field.
d. View the element and its value in Outline View if desired.
Save the topic to ensure the Repository has the updated ID.
Click the Reference icon on the top toolbar.
From the Content Reference tab, select the ID and element pairing you want to insert as a cross-reference.
The cross-reference has been added to the topic.
You can insert a link to a website within any topic. Refer to the AEM Guides Course 1 video on Linking to Websites for more information.
Some modifications can result in broken cross-references. These include deleting a topic, reorganizing a section that contains a cross-reference, or changing an ID after the cross-reference has been inserted. Note that a sample topic crossreferencesandlinks.zip is provided with this lesson that will cause several of the bulleted cross-references to internal content to break.
Navigate to the Outline View on the left panel.
Click the Filter icon.
Select Broken links.
Broken links display as clickable objects. You can identify them in red text in the topic.