Page 1 of 1

ditamap using the same topic multiple times

Posted: Sun Jun 30, 2019 6:26 am
by jojobar
In a ditamap I am using the same topic file multiple times. When compiling with ditamap with webhelp responsive, I see that each topic creates a separate files with _1, _2 etc. For example

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE map PUBLIC "-//OASIS//DTD DITA Map//EN" "map.dtd">
<map>
    <title>Help</title>
    <topichead navtitle="Desktop">
        <topicref href="Topics/home-page.dita"/>
        <topicref href="Topics/calendar.dita"/>
    </topichead>
    <topichead navtitle="Contact Manager">
        <topicref href="Topics/invoices.dita"/>
        <topicref href="Topics/calendar.dita"/>
    </topichead>
</map>
So it creates calendar-copy_1, etc.

I would like to have just one copy and refer to it instead of duplicating the topic files... Is this possible?

Re: ditamap using the same topic multiple times

Posted: Mon Jul 01, 2019 8:46 am
by Radu
Hi,

If you edit the DITA to WebHelp transformation scenario you are using in Oxygen, in the Parameters list there is a force-unique parameter which can be set to false. But this may induce various other problems. For example for each opened topic there is a breadcrumb showing the path to it. Also the topic is shown as selected in the table of contents. As the topic will be a single file on disk, referenced from multiple places the publishing may have problems showing the context in which it is referenced.

Regards,
Radu