Create a conref in the XMetaL editor
This procedure lets you automatically display text from one topic in another. Whenever the first topic is updated, the second updates automatically.
Use a conref when you want to display a block of text in another topic, or perhaps in several other topics. Conrefs are particularly handy if you know that a specific phrase or paragraph is likely to change. When you edit the source text in a conref, it will automatically be updated in all the other topics that reference it.
- Open the source document in the XMetaL editor.
- Place the cursor in the element you want to use as a conref.
If necessary, assign a value to the ID attribute of the element that contains the source text.
Note: The ID must be unique within the topic.
- Save the source file.
Right-click in the source element, then select Copy as Reference from the menu.
Tip: If you have referable-content topics set up in your repository, you can right-click one of their names in the Search Results view and then use Copy Reference to acquire the conref.
- Open the target document in the XMetaL editor.
- Place your cursor in the target document at or before the point where you want the conref to appear.
Right-click, then select Insert Reference.
The text from your conref source appears in the target document at the first valid place below the cursor position.
The XMetaL editor checks the target document for a valid insertion point for the element type you are trying to conref. If there’s no valid place for your conref, you won’t be able to insert it.Tip: You can see the source file’s ID in the Attribute Inspector when you place your cursor in the target text.