Page 1 of 1

Linking in Output

Posted: Mon Nov 04, 2024 5:58 pm
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

Re: Linking in Output

Posted: Thu Nov 07, 2024 12:06 pm
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