Publishing Responsive HTML5 from FrameMaker - duplicate IDs possible?
Dear Community,
Unfortunately, I'm not sure whether my question is better placed here or in the FrameMaker forum. We create technical manuals with FrameMaker 2022 (17.0.6). These manuals are published directly from FrameMaker (in addition to the PDF format) as responsive HTML5 and then used as online help for a software application.
Since some descriptions are repeated in a manual, we use text insets in which we define markers (e.g., "DP123" as a marker of type "TopicAlias"). The text inset is reused in different chapters, so the same marker naturally appears in different FrameMaker files.
This was intentional and no problem when publishing with FrameMaker version 2019, as we could access the HTML pages from our software, for example, as follows:
- file:///D:/Docs/en-US/Manual/index.html#t=XYZ/A/A.htm#HT_DP123
So the name of the HTML file was passed in the call. When publishing with the current FrameMaker version 2022, this is no longer possible; page access at previously defined markers has changed completely. For a marker of the type "TopicAlias" in FrameMaker, an anchor with the pattern "CSH_" plus a sequential number is automatically created in the HTML output. The JavaScript "csh.js," which is also automatically generated when publishing as Responsive HTML5, links the marker in FrameMaker to the corresponding anchor in HTML. There you'll find, for example:
- <item mapid=\"DP123\" mapnum=\"1\" topicurl=\"XYZ/A/A.htm#CSH_2\" />
The call is now shortened accordingly and executed without specifying the underlying HTML page as follows:
- file:///D:/Docs/en-US/Manual/index.html?rhmapid=DP123
Problem: In the "csh.js" file, only the first occurrence of the jump label is taken into account, but the path to the corresponding HTML page is hard-coded there. This makes it impossible to jump from the software to the same anchor on different HTML pages. Does anyone have any ideas about this?
Thanks in advance, Andreas
