Removing related links from the output

Related links can be removed from the output by setting the linking attribute of the topicref element in the ditamap to none. If you are producing HTML-based output, you can alternatively change the CSS class definition so that generated links are not displayed.

When DITA content is processed to HTML output, links to related topics (if any) are typically placed (by the publishing process) at the bottom of each topic. Some publishing tools generate these links with a Cascading Style Sheet (CSS) class of ullinks for the ul or ol element, and a class of ulchildlink for each of the li elements.

If you don't want these links to appear in the output, there are a few options.

Firstly, it's important to understand why the links are there. The links are either generated because the topic has a related-links element, or because related links have been automatically generated based on the ditamap topic hierarchies (parent/child relationships) or relationship table links.

If you don't want the links generated from the related-links section, you may consider removing the section from the topic, or using conditional processing to exclude it.

If you don't want the links generated from the hierarchy, set the linking attribute of the map or top-level topicref elements in the ditamap to none.

If you don't want the links generated from the relationship table in your ditamap, set the linking attribute of the reltable element to none.

An alternative method is to nominate a custom stylesheet for the output, and set that stylesheet so that classes of ullinks and ulchildlink have a CSS styling of display=none.