Understand the concepts of related topics in a structured document, how is a relationship table used to create links for the related topics in FrameMaker.
In a set of DITA topics, you often have topics that are related to each other. In this case, you might want to include a set of related (see also) links at the end of each topic. This provides your readers with further reading reference, if required.
For example, if you are covering the Save As options in FrameMaker as separate topics:
Save As
Save As PDF
Save As Review PDF
Save As XML
In this case, at the end of each of these topics, you might include related links to the other three topics.
Relationship tables in FrameMaker allow you to create related links in DITA topics. You use relationship tables in DITA maps. This implies that you need to create a DITA map and then include the topics in your topic set in the DITA map. You then add relationship tables to the map. In the relationship tables you define the related topics contained in the DITA map.
You can add the following DITA topic types to a relationship table:
Topic
Task
Concept
Reference
To specify that two or more topics in a DITA map are related, you need to add these to a single row in a relationship table. For the steps to create a relationship table, see Create a relationship table.
For example, to specify that the topics Save As, Save As PDF, Save As Review PDF, and Save As XML are related topics:
You can add any number of rows to a relationship table. FrameMaker treats all topics in a row as related.
You can add any number of relationship tables to a DITA map. You might do this to group together sets of related topics.
The order of the related topics in a table row defines the sequence in which the topics display in the Related Links section of the DITA map output.
In the following example, the Related Links section of the Save As PDF topic will display as:
Save As
Save As Review PDF
Save As XML
This implies that if you change the order of the topics in the table, the sequence in the Related Links section will display differently.
Learn how to create a relationship table in FrameMaker, see a sample relationship table workflow.
In the Structure View of a DITA map, place the insert point at end of the topic and at the same level as the topicref elements.
To display the Smart Catalog, press Ctrl + 1 and choose reltable.
The Insert Table dialog is displayed.
Specify the number of columns and rows.
The number of columns depends on the number of related topics that you plan to group together.
The number of rows depends on the number of groups of related topics that you plan to create.
Click Insert.
A relationship table is added to the DITA map.
To display the relationship table in a tabular view, go to the Document view.
While you can add topics to a relationship table from the Structure View, the tabular view provides a more convenient mode to work with.
In each cell of the relationship table header, you specify the DITA topic type of the related topics that you plan to include in body cells of the column.
FrameMaker allows you to add the following DITA topic types to a relationship table:
Topic
Task
Concept
Reference
To add a specific DITA topic type to a column in the table:
Place the insertion pointer in the table header cell.
Open the Attributes dialog ( ).
Set the @type
attribute to the DITA topic
type:
Topic type - attribute value: topic
Task type - attribute value: task
Concept type - attribute value: concept
Reference type - attribute value: reference
If you set type attribute as described above, the column title is updated:
In each cell of a row in the relationship table, you add a topic reference of the related topics. This implies that, one set of related topics need to be included in the cells of one row of the table.
To add topic references of related topics in the table body cells:
Place the insertion point in the a cell of a row, in the Elements catalog ( ), double-click the topicref element to add it to the cell.
The Insert Element dialog is displayed.
You can also use the Smart Catalog to insert the topicref element.
Press Ctrl+1 to display the Smart Catalog. Select and add the topicref element.
In the HRef field, enter the path to a topic file and click OK.
Alternatively, use the Browse button to navigate to and select the topic.
The topic reference is added to the table row.
Add one topic reference (to a related topic) to each cell of the table row.
If the table included multiple rows, you can add multiple groups of related topics (references) to each row.
To test the output after Create a relationship table in a DITA map, you can use the Save As PDF option in FrameMaker.
Ensure that the DITA map is selected.
Choose
.In the PDF Setup dialog, click Set.
The PDF output of the DITA map displays the Related Links sections for the topics that you include in the cells of the relationship tables in the DITA map.
The topics display in the same order as which you specify them in the cells of the table row.
Also, related topics that display do not include the current topic. In the sample relationship table described below:
The Save As topic Related Links section displays:
Save As PDF
Save As Review PDF
Save As XML
It does not display the Save As (current) topic.