Linking in Output

Post here questions and problems related to editing and publishing DITA content.
Stacey
Posts: 53
Joined: Tue Mar 14, 2017 12:36 am

Linking in Output

Post by Stacey »

Hi There:
I'm using the Ashes transformation scenario for webhelp and have created a .ditamap where some topics are used multiple times. I've created a reltable, and it looks like for topics that are in the output twice, the links appear in the first instance of the topic, but not the second.
Is this how it's supposed to work? Can you either expose the links for both instances, or create a second reltable entry for the second instance?
Currently, I had created "two" reltable rows, and oXygen applied both sets of links, but only to the first reference to the topic (not both).

Thanks,
Stacey
julien_lacour
Posts: 596
Joined: Wed Oct 16, 2019 3:47 pm

Re: Linking in Output

Post by julien_lacour »

Hi Stacey,

You need to add the @copy-to attribute on the duplicated topics to make the link propagate (both in the topicref and the reltable):

Code: Select all

<map>
    <title>Map</title>
    <topicref href="topic.dita"/>
    <topicref href="task.dita"/>
    <topicref href="topic.dita" copy-to="topic2.dita"/>
    <reltable>
        <relheader>
            <relcolspec type="topic"/>
            <relcolspec type="task"/>
        </relheader>
        <relrow>
            <relcell>
                <topicref href="topic.dita"/>
                <topicref href="topic.dita" copy-to="topic2.dita"/>
            </relcell>
            <relcell>
                <topicref href="task.dita"/>
            </relcell>
        </relrow>
    </reltable>
</map>
Regards,
Julien
Post Reply