Block Links
Relationship Table Links
Relationship tables enable you to link related topics in a map.
Default Relationship Table Overview
You begin a relationship table by adding a reltable element to a map. To enable linking between the particular topics in a map, you insert the topicref elements into the appropriate relationship table cells. Heretto CCMS enables you to perform these actions by using an intuitive graphical interface.
The default relationship table layout includes three columns that correspond to the following topic types:
- concept topic
- task topic
- reference topic
By default, relationship tables handle linking in the following way:
- Topics in a given table row link to each other
- Topics in the same table cell don't link to each other
The following PDF output examples illustrate the default linking settings of a relationship table.
Customized Relationship Table Overview
Relationship tables are highly customizable. The following attributes enable you to adjust the most useful linking settings in your relationship tables.
- collection-type attribute
- Assigning the family value to the collection-type attribute of the relcell element enables linking between topics inserted in the same relationship table cell.
The following PDF output example illustrates linking between “Reference A”, “Reference B”, and “Reference C” inserted in the same relationship table cell.
- linking attribute
Assigning the sourceonly value to the linking attribute of the topicref element modifies the topic linking in the following way:
Prevents other topics from linking to the topic
Allows the topic to link to other topics
Assigning the targetonly value to the linking attribute of the topicref element modifies the topic linking in the following way:
Allows other topics to link to the topic
Prevents the topic from linking to other topics
The following PDF output examples illustrate “Concept A” with linking attribute set to targetonly value.
The following PDF output example illustrates “Concept A” that links to “Task A” with linking attribute set to the targetonly value. “Task A” does not link to other topics in the same relationship table row.
Use Cases
Consider using relationship tables if you want to reuse topics in multiple maps or reduce the number of dependencies between topics.
Maintenance Considerations
Keep the following considerations in mind when working with relationship tables:
- Relationship tables require little maintenance because every link is in the reltable map element.
- Heretto CCMS includes an editor that enables you to easily manage linking in relationship tables by dragging and dropping topics into the appropriate table columns.
- Relationship tables do not limit topic reuse because you link topics on a map level.
You can add multiple relationship tables to a map. It is useful if you plan to maintain a large number of relationship table links.
Publishing Considerations
Keep the following considerations in mind when publishing maps with relationship tables:
- Relationship table links are published at the end of a topic in the “Related Links” section.
- If you publish to a print-friendly output (for example, PDF), links may reference a page number.
- Relationship table links resolve at publish by populating the link text with topic titles.
Insert a Relationship Table
Inserting a reltable element into your map enables you to create links between topics without the need to edit the individual topics.
- In the content library, right-click a map and select Dock button.
- In the left pane, right-click the map title and select .
Link Topics in a Relationship Table
You create links by dragging and dropping the topics from the Map Editor to the appropriate relationship table cells.
Topics in the same relationship table row link to each other
Topics in the same relationship table cell don't link to each other
Customize Linking in a Relationship Table
You can customize your relationship table linking settings by modifying specific attributes.
- If you want to enable linking between topics in the same cell, do the following:
- In the Map Editor pane, hover over the appropriate relcell element and click the wrench icon.
- From the collection-type drop-down menu, select family.
- If you want to prevent a topic from linking to other topics, do the following:
- If you want to prevent other topics from linking to the topic, do the following:
Related Links
The related-links element enables you to quickly add links to related information at the end of a topic.
Overview
By default the related-links element inserts at the end of the topic.
- “link A” links to “Topic B” in the content library.
- “link B” links to a non-DITA document in the content library.
- “link C” links to a website.
- “link D” links to a document hosted on an external
server.Important: Always ensure that the files that you link to are not malicious. Be extra cautious when linking to executables like EXE or APP files.
Use Cases
Consider using the related-links element in the following situations:
- When you want to link to DITA or non-DITA files in the content library that are not included in the map.Tip: When you want to link to a DITA file that is in the same map, we recommend using the Relationship Table Links because they do not limit topic reuse.
- When you want to link to external resources like websites or documents on external servers.
Maintenance Guidelines
The related-links element require a moderate level of maintenance because they may limit topic reuse. If you do not want to limit topic reuse, consider using Relationship Table Links or Map Links.
Keep the following guidelines in mind when using related-links elements.- If you link to a DITA topic, the title element of the topic is used as the link text. To reduce maintenance, we do not recommend entering custom link text.
- Do not link to DITA maps as this may cause unexpected results in some outputs.
- If you link to a non-DITA resource in the content library, the file name is used as the link text. If needed, enter custom generic link text.
- Heretto CCMS prevents you from removing resources that are linked in other topics. When you attempt to move a resource to Trash, a warning appears. You need to remove the references to the resource before moving it to Trash.
- If you link to external resources, for example websites, you must add a link text manually. Remember to make it generic to avoid maintenance issues.
Publishing Guidelines
Keep the following guidelines in mind when publishing content with related-links elements:
- Because the related-links element gathers links
in one element at the end of a topic you can easily apply conditional
profiling to this element or links inside it so that links are
included, for example, only in online outputs.
For more information, see Conditional Processing Attributes.
- We do not recommend linking to elements in other topics because some publishing engines or publishing scenarios may produce unexpected results in the output.
- If you publish to a print-friendly output (for example, PDF), links may reference a page number.
- The related links are usually displayed at the end of the topic. Some web-like outputs (for example, webhelps) may display them in a separate navigation pane.
- If you publish to a print-friendly output (for example, PDF), ensure that the topic that you link to is included in the same map as the topic that you link from.
- If you publish to a web output (for example, webhelps, or Content Portal), you can link to topics not included in the same map as the topic that you link from.
Insert Related Links
The related-links element inserts at the end of a topic.
- In the content library double-click a topic or a map.
- With your cursor anywhere in the topic, insert a related-links element.
- Optional: In the related-links element, do any of the following:
- To create containers for author-arranged groups of links, insert linklist elements.Tip: It is useful if you insert several related links and want to divide them into meaningful categories. Each of the linklist element can contain an introductory title element.
- To create containers for a groups of links with common characteristics like audience, insert linkpool elements.Tip: You can profile linklist elements for different audiences. Each of the linkpool element can contain an introductory title element.
- To create containers for author-arranged groups of links, insert linklist elements.
- Insert a link by doing the following:
- In the related-links element, linkpool element, or linklist element, insert a link element.
- Click Link Empty and from the context menu, select Change.
- In the dialog, from the Link To drop-down menu select a link type.
- Select file or fill in the Href field.
- Click Apply.
- If needed, repeat 5.
- Optional: In the link element. customize the links by doing any of the following:
- To provide custom link text, insert and fill in the linktext element.
- To provide a link description, insert and fill in the desc element.
Map Links
Map links enable you to link topics in a map based on their parent-children relationship in the map structure.
Overview
You create map links by using the appropriate map structure and the collection-type attribute.
The collection-type attribute can take the following values:
- sequence value
- Generates an ordered list of links from parent to children. The order of links is the same as the order of topics in the map.
- unordered value
- Generates an unordered list of links from parent to children. The order of links is the same as the order of topics in the map.
- family value
- Generates an unordered list of links from parent to children and from sibling to sibling. The order of links is the same as the order of topics in the map.
- choice value
- Uncommon and typically used in custom outputs that enable the user to select one child topic to continue. In most cases, it is rendered in the same way as the unordered value.
Use Cases
Consider using map links in the following situations:
- When you want to create a process topic based on map links
- When you want to enhance navigation between certain sections in a web format like webhelp
Maintenance Considerations
Keep the following considerations in mind when working with map links:
- Map links do not limit topic reuse because you link topics on a map level.
- Map links are based on map structure. If you change the map structure, they links will be updated.
Publishing Considerations
Keep the following considerations in mind when publishing map links:
- Map links resolve at publish and link text is populated with the topic titles.
- If you publish to a print-friendly output (for example, PDF), links may reference a page number.
- You must use the Heretto Connector for DITA Open Toolkit and set the args.rellinks parameter to all.
Configure Map Linking
You configure map linking by assigning the appropriate collection-type attribute values.
- In the content library, right-click a map and select Dock button.
- Set the collection-type attribute of the parent topic by doing the following: