Customize related-links section
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 13
- Joined: Tue Mar 19, 2019 6:52 pm
Customize related-links section
Hello,
I wanted to ask if it is possible to customize the display of <related links> section in the responsive webhelp?
Currently, the responsive webhelp displays several sections for concepts, references, tasks, topics.
I would just like a simple list without this subdivision. Is that somehow possible?
I wanted to ask if it is possible to customize the display of <related links> section in the responsive webhelp?
Currently, the responsive webhelp displays several sections for concepts, references, tasks, topics.
I would just like a simple list without this subdivision. Is that somehow possible?
-
- Posts: 407
- Joined: Mon Dec 05, 2011 6:08 pm
Re: Customize related-links section
Hi,
In case the related links are specified within the DITA topics, to customize the display of <related links> section in the WebHelp Responsive section, you can use a structure like this in your source files: <related-links>/ <linklist>/ <title>:
I hope this helps.
Regards,
Ionela
In case the related links are specified within the DITA topics, to customize the display of <related links> section in the WebHelp Responsive section, you can use a structure like this in your source files: <related-links>/ <linklist>/ <title>:
Code: Select all
<related-links>
<linklist>
<title>Custom Title</title>
<link href="..."/>
</linklist>
</related-links>
Regards,
Ionela
Ionela Istodor
oXygen XML Editor and Author Support
oXygen XML Editor and Author Support
-
- Posts: 922
- Joined: Thu May 02, 2019 2:32 pm
Re: Customize related-links section
Post by chrispitude »
We use a prefix of "See Also" for our related links, in both the editor and the PDF output. Here's the CSS we use for that:
We use some more CSS to style the list items:
I hope this is helpful!
Code: Select all
html:root [class~="topic/linklist"] > strong { display: none; }
*[class ~= "topic/related-links"]::before {
content: "See Also";
font-weight: bold;
page-break-after: avoid;
margin-bottom: 8pt;
padding-bottom: 0pt;
display: block;
}
Code: Select all
[id]:root *[class~='topic/related-links'] *[class~='topic/link'],
html:root *[class~='topic/related-links'] li {
margin-left: 0.1in; /* guesses */
padding-left: 0.125in; /* guesses */
margin-top: 6pt;
margin-bottom: 8pt;
}
[id]:root *[class~='topic/related-links'] *[class~='topic/link'] { /* HTML shows as bullet by default; editor does not */
display: list-item;
list-style-type: disc;
list-style-position: outside;
}
Return to “DITA (Editing and Publishing DITA Content)”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service