Related information in the HTML output

Having trouble installing Oxygen? Got a bug to report? Post it all here.
anna_craneo
Posts: 33
Joined: Tue Feb 20, 2018 2:51 pm

Related information in the HTML output

Post by anna_craneo »

When using a relationship table to create links, by default links are organized by topic type and contain heading such as Related tasks, Related references, Related Concepts. I want all the topics to be grouped together under "Related information" title.

Example of Default Behavior:

Related Tasks
Topic 1
Topic 2

Related Concepts
Topic 3

Related References
Topic 4
Topic 5

Example of what I want to produce:
Related information
Topic 1
Topic 2
Topic 3
Topic 4
Topic 5

I have already done what is recommended here - topic12781.html
And added properties to my reltable

Code: Select all

<reltable>
<relheader>
<relcolspec linking="sourceonly">
<title>Related information</title>
</relcolspec>
<relcolspec>
<title>Related information</title>
</relcolspec>
</relheader>

<relrow>
<relcell>
<topicref href="topic.dita"/>
</relcell>
<relcell>
<topicref href="relactedConcept.dita"/>
<topicref href="relatedTopic.dita"/>
<topicref href="relatedTask.dita"/>
</relcell>
</relrow>
</reltable>
It works great but only for linking the source with targets, but not vice versa. Is there any chance to have two-way linked topics in one list?
Radu
Posts: 9018
Joined: Fri Jul 09, 2004 5:18 pm

Re: Related information in the HTML output

Post by Radu »

Hi Anna,

Maybe you can remove that linking="sourceonly" attribute from the relcolspec.

https://www.oxygenxml.com/dita/1.3/spec ... butes.html

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
anna_craneo
Posts: 33
Joined: Tue Feb 20, 2018 2:51 pm

Re: Related information in the HTML output

Post by anna_craneo »

Radu,

If I remove linking="sourceonly", my topics become like this again:
Related Tasks
Topic 1
Topic 2

Related Concepts
Topic 3

Related References
Topic 4
Topic 5
Radu
Posts: 9018
Joined: Fri Jul 09, 2004 5:18 pm

Re: Related information in the HTML output

Post by Radu »

Hi Anna,

I cannot reproduce this problem using a sample project I created with DITA OT 2.5.4 bundled with Oxygen 20.
If you are using a similar DITA OT version can you put together a small sample DITA project exhibiting the problem and maybe attach it to an email (support@oxygenxml.com)?

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Radu
Posts: 9018
Joined: Fri Jul 09, 2004 5:18 pm

Re: Related information in the HTML output

Post by Radu »

Hi,

Just to update this topics, based on Anna's feedback I updated this opened issue here:

https://github.com/dita-ot/dita-ot/issues/2966

As a workaround you can make the relheader look like this:

Code: Select all


     <relheader>
<relcolspec type="other">
</relcolspec>
<relcolspec type="other">
</relcolspec>
<relcolspec type="other">
</relcolspec>
</relheader>
this will avoid specifying titles for each category and because we have the "type" attribute distinct from the usual topic/task/concept values you will get the "Related information" category label automatically used. The publishing will issue some warnings because you set a @type value which is not in the regular set of allowed values but you can probably ignore them.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply