This content has been marked as final. Show 6 replies
Hi, PHXA, and welcome,
Although unlikely, is it possible that the duplication is intentional? If there are two different dialogs in the application for which you want to provide the same online help, and each dialog passes a different context integer to the help file, then you need to set up the mappings so that the two integers are associated with the same topic file.
I think I'd be wary of deleting entries in the alias file without first comparing it with the map (.h) file. For example, you may find that the topic IDs Add_Product and Add_Product1 are mapped to two different context integers. If that's the case, deleting an entry in the alias file will break one of the context help calls.
It's a good idea to get a good understanding of how CSH works as RH presents a single screen which is actually an amalgamation of the mapping (.h) file and the alias (.ali) files. This can be a bit misleading. Have a look at the .h and .ali files in something like notepad to see a full picture. Once you're clear on how this works you could improve the way the CSH markers are named but, beware! The software calling these will be then be affected so work in collaboration with your software developers if you intend going down that route.
Originally posted by: Author care
It's a good idea to get a good understanding of how CSH works as RH presents a single screen which is actually an amalgamation of the mapping (.h) file and the alias (.ali) files. This can be a bit misleading. Have a look at the .h and .ali files in something like notepad to see a full picture.
Agreed. Here are some good sources of information on how map and alias entries work in HTML Help:
Thank you for your responses.
From what I understand, there is a MapID file and an Alias file. The MapID file contains a list of the MapID Names and their assigned MapID Numbers. The Alias file associates each MapID Name with the correct html file. Therefore, there should be an equal number of MapIDs and Aliases. (Is this right?)
In my files, I'm showing 460 MapIDs and 747 Aliases. I compared the two files, and as far as I can tell, the aliases are actually duplicated.
For example, the alias file shows:
And the MapID file shows:
#define Add_Product 1253
(there is no Add_Product1 in the MapID file)
Please let me know if you have any ideas or suggestions.
Thanks for your help,
Yes, only the topic IDs that are mapped to integers in the map file are used, so you should be OK to delete the redundant aliases. For safety's sake, I'd recommend that you first take a backup of your project so that you can go back to the old version in the event of any problems.
I backed up my project and then deleted the duplicate aliases. Everything looks good. Thank you so much for the help!