Webhelp responsive - Topic generated twice, but only one link for it

Having trouble installing <oXygen/>? Got a bug to report? Post it all here.
revaljilji
Posts: 21
Joined: Mon Sep 09, 2019 3:07 pm

Webhelp responsive - Topic generated twice, but only one link for it

Post by revaljilji » Tue Aug 18, 2020 9:39 am

Hi,

I noticed that when I try to reference the same dita file two times in two different ditamaps, only one link would be created for it. Lets say I have X.ditamap and Y.ditamap. Both of them have referenced Z.dita.
Normally both ditamaps would show up in TOC Menu and when you expand them there will be Z.dita there. However if you click on Z.dita from Y.ditamap, webhelp-responsive will automatically open the Z.dita from X.ditamap.

Do you know what could be causing this?

Best regards,
R

alin
Site Admin
Posts: 176
Joined: Thu Dec 24, 2009 11:21 am

Re: Webhelp responsive - Topic generated twice, but only one link for it

Post by alin » Wed Aug 19, 2020 11:32 am

Hello,

I have tried the scenario you have described using Oxygen WebHelp 22.1 but I couldn't reproduce the problem.
Here are the resources I have used:
  • main.ditamap:

    Code: Select all

    <map>
        <title>main</title>
        <topichead navtitle="x">
            <topicref href="x.ditamap" format="ditamap"/>
        </topichead>
        <topichead navtitle="y">
            <topicref href="y.ditamap" format="ditamap"/>
        </topichead>
    </map>
    
  • x.ditamap:

    Code: Select all

    <map>
        <title>x</title>
        <topicref href="z.dita"/>
    </map>
    
  • y.ditamap:

    Code: Select all

    <map>
        <title>y</title>
        <topicref href="z.dita"/>
    </map>
    

I have obtained the following results:
  • When I click on the z link under the x section the z.html file is opened:
    Image
  • When I click on the z link under the y section the z_2.html file is opened
    Image
Please note that the paths displayed in the breadcrumb of each topic page reveals the hierarchy of each z.dita topic reference.

Please ensure that the force.unique transformation parameter is set to true in order to have different html pages generated for each of the duplicated topic references (e.g.: z.html, z_2.html).

Regards,
Alin
Alin Balasa
Software Developer
<oXygen/> XML Editor
http://www.oxygenxml.com

revaljilji
Posts: 21
Joined: Mon Sep 09, 2019 3:07 pm

Re: Webhelp responsive - Topic generated twice, but only one link for it

Post by revaljilji » Wed Aug 19, 2020 12:08 pm

Hi Alin,

unfortunatelly force.unique parameter didn´t solve the issue. I´d like to send you a bigger example via email if thats possible, so you could test it on your transformation.

Best regards,
R

Post Reply