navtitle for relationship table links

Post here questions and problems related to editing and publishing DITA content.
gszabo
Posts: 18
Joined: Wed Jan 25, 2023 1:15 am

navtitle for relationship table links

Post by gszabo »

Hello,

We're using Oxygen's PDF/CSS/HTML5 transformation to render PDFs. I'd like to customize the transformation so that if a topicref in the DITAmap has a navtitle, any corresponding topicrefs in relationship tables use the navtitle text in the link, not the topic title. Is there a template I can override to accomplish this?

The following example shows the topicref in the DITAmap and the corresponding topic in the relationship table:

Code: Select all

<topicref href="m_DriverOutput-Programming.dita" format="dita" scope="local"
  type="parametersTopic" keys="m_DriverOutput-Programming" locktitle="yes">
  <topicmeta>
	<navtitle>Driver Output Menu (Programming)</navtitle>
  </topicmeta>
  
<relrow>
	<relcell>
		<topicref keyref="drivers"/>
	</relcell>
	<relcell>
		<topicref keyref="m_DriverOutput-Programming"/>
		<topicref keyref="m_DriverOutput-Monitor"/>
	</relcell>
	<relcell/>
</relrow>

Thank you for looking at this.
julien_lacour
Posts: 761
Joined: Wed Oct 16, 2019 3:47 pm

Re: navtitle for relationship table links

Post by julien_lacour »

Hello,

There's no possibility to use the navtitle directly in reltable links, however, you can use the <linktext> element and copy the navtitle content:

Code: Select all

<topicref href="m_DriverOutput-Programming.dita" format="dita" scope="local"
    type="parametersTopic" keys="m_DriverOutput-Programming" locktitle="yes">
    <topicmeta>
        <navtitle>Driver Output Menu (Programming)</navtitle>
        <linktext>Driver Output Menu (Programming)</linktext>
    </topicmeta>
</topicref>
With this you should get the same text in both TOC and links.

Regards,
Julien
Post Reply