Content Reuse
One of the main features of DITA is the ability to reuse content. It allows reuse of content from small phrases up to entire topics or maps. However, for content to be effectively reused, it must be well managed. Ensure that you have an effective Content Strategy when working with reusable information.
Create a reusable topic
When a change is made to a reusable source topic, the information will update everywhere the content is used.
-
Navigate to the Repository.
-
Click the contextual menu next to the reuse folder.
-
Choose Create > Dita Topic.
-
Populate the fields in the Create New Topic dialog. For example:
-
Click Create.
-
Add content to the topic as required.
Add a new reusable element to a topic
There are several methods for adding reusable elements. Here, the first workflow is best when adding only one component. The second workflow is better for adding multiple reusable components.
Workflow 1
-
Click in the topic at a valid location.
-
Select the Insert Reusable Content icon on the top toolbar.
-
In the Reuse Content dialog, click the Folder icon.
-
Navigate to the required folder.
-
Choose a topic with reusable components.
For example: -
Click Select.
-
Choose a specific component to reuse.
-
Click Select.
The reusable element has now been inserted into the topic.
Workflow 2
-
Navigate to Reusable Contents on the left panel.
-
Click the Add icon on the Reusable Contents panel.
-
Navigate to a folder.
-
Select a specific topic or topics.
-
Click Add.
-
From the Reusable Contents panel, expand Element Overview.
-
Drag and drop an element into the topic at a valid location.
The reusable element has now been inserted into the topic.
Assign an ID and value to an element
The dlentry you just created is a reusable element. Therefore, it requires an ID and a value.
-
Click inside the dlentry.
-
In the Content Properties panel, click the dropdown under Attribute.
-
Select ID.
-
Type a logical name for the Value.
-
Save or version the topic so the change reflects in the Repository.
The ID and value have been assigned to the element.