1 person found this helpful
Hi and welcome to your community.
There's no way in the RH interface as far as I know. On to the output files....
Just ran a quick test on RH8 and it will probably work for RH9 as well:
- In your output, open whfhost.js with a text editor.
- Find the line var g_nSortType = 0;.
- Replace the 0 with a 1 for ascending sort or 2 for descending sort.
- Save the file.
Remember that you have to modify the value every time you generate your output.
Thanks, Willam. That's kind of a bummer, but good to have an answer.
Hi Benjamin and welcome to our community
If you dislike the suggestion of having to change the file each time you generate and you are willing to live with the fact that *EVERYTHING* you generate with WebHelp will sort the same way, you *CAN* actually modify what I refer to as the "seed" file so that you don't have to remember to modify each time.
To find the seed file, look where RoboHelp is installed.
For me, I find it here: C:\Program Files (x86)\Adobe\Adobe RoboHelp 9\RoboHTML\WebHelp5Ext\template_stock
You may find it in a different place. But I'd make a backup copy for Jusin (Justin Case) and modify the file you find there. At that point it should be pulled from the seed and used during each WebHelp generation.
Helpful and Handy Links
When you say *everything* will generate in the same way, what does *everything* include? We want all search results to generate alphabetically. Would this also apply to the ToC? We might actually be able to live with that anyway, but I am curious what else would be affected if I made that modification.
When Willam advised that you would need to modify the file each time you generated WebHelp, what I meant was that no modification would need to be made afterwards because you modified the seed file that is used. What I meant by "everything" was to say that any other WebHelp project you create will also use the modification. Sort of like a genetically modified grain. Any plant created will contain the modification.
So the trade off here is that from the point you modify the seed file forward, any project created will use the modified file. If you want to return back to the way it worked before, you need to modify it again. Or tweak the output files. So by modifying the seed file you save the step of always having to modify the output files created from the seed.
This will have no effect on the Table of Contents. Only the Search listing.
Helpful and Handy Links
Rick and William,
We just tried this solution to make search results alphabetical and it worked perfectly. Thanks very much.