Skip to main content
EileenPalsson
Inspiring
May 21, 2010
Question

Related Topics link (created with JavaScript:RelatedTopics.Click) broken when topics opened from TOC

  • May 21, 2010
  • 1 reply
  • 1513 views

In a separate thread, Praful Jain provided us with a useful script that fixed broken "related topics/see also" links: http://forums.adobe.com/message/2513306

I find it works pretty well. The only problem is, if you access the help topics via the Contents tab (TOC) of a CHM file [I haven't tested any other output yet], then such "related topics" or "see also" links don't work. If you access the topic some other way (for example from the Search tab, Index tab, or via a link from another topic), those same links DO work.

Since I was checking via the TOC, and finding that none of the "related topics/see also" links I found that way were working, at first I thought that RH8.0.2 had somehow "lost" all of the A-keywords in the project, and I reported this in the forum: http://forums.adobe.com/message/2825485

While it's still a problem that the A-keywords (1) are not listed in the See Also pod and (2) are not listed on the See Also tab of the respective Topic Properties, I now find that the links created using the A-keywords (which somehow still exist and are still visible on the See Also tab of the See Also Properties dialog) ARE working.

So, the point: Can we get an updated script that will ensure that those "related topics/see also" links will also work when the topics are accessed from the TOC?

Regards,

Eileen

This topic has been closed for replies.

1 reply

Praful_Jain
Participating Frequently
May 24, 2010

Hi Eileen,

Can you please provide a sample project where clicking from TOC, the related topic click does not work. This will help me in finding the main problem.

Thanks

Praful

EileenPalsson
Inspiring
May 24, 2010

Hi Praful,

Thank you for your response. Unfortunately, I'm going to have to get back to you on that tomorrow. Here's what happened: I made a copy of one of my projects where this problem occurs, and deleted 99% of the topics, just keeping those that are involved in the problem.

Then I created a new TOC.

Then I ran your original script on that small project (including compilation) -- and now the links work.

So I went back to the original project and ran your script again, thinking maybe I just made a big mistake. No luck.

So tomorrow I will look for differences in the supposedly identical topics in the two projects that might explain why the small project is working but the large one is not. I'll let you know what I find. (However, feel free to comment if you have an idea what I should look for.)

Thanks and regards,

Eileen

Praful_Jain
Participating Frequently
May 25, 2010

Hello again,

After a lot of detective work, I discovered that it was the process of creating a new TOC that fixed the problem in the new mini-project. Therefore, it seems there was no problem with the script, and I apologize for making that assumption.

I'm still trying to fix the problem without having to re-create the TOC manually, which would take many hours. It is a specialized TOC containing about 1500 entries, and there is no way to do it automatically. And I have the same type & size of TOC in the other project where the related-topic links aren't working.)

I used Notepad and then Beyond Compare to compare the old TOC to the one I auto-created (from which the related-topic links work when I access the topics), and I can't see any difference other than the actual ordering of the books & topics. The beginning and ending tags are the same, and both files contain the same number of start tags as ending tags. I really don't know what else to check, but it seems obvious that there is some kind of problem in the old TOC that is affecting how those related-topic links work. (Isn't that a strange way for a TOC problem to manifest itself?)

Any suggestions?

Thanks!

Eileen


Hi Eileen,

Can you just zip the project which has this issue, and upload that to some sharing site like https://acrobat.com/ you can send the shared project URL @

praful@adobe.com 

Thanks

Praful