Skip to main content
December 6, 2011
Answered

Sort search results alphabetically in Robohelp 9

  • December 6, 2011
  • 1 reply
  • 1577 views

Our organization is just switching over from Robohelp 7 to Robohelp 9.  We noticed that search results are sorted by rank, which is not ideal for our environment.  I have checked through the entire Help file and cannot find mention of how to change search result order (we are using WebHelp Pro) in our Knowledge Base.  Web searches have come up empty, as well.

Is there a way to sort search results alphabetically still?

    This topic has been closed for replies.
    Correct answer Captiv8r

    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.

    Cheers... Rick

    Helpful and Handy Links

    RoboHelp Wish Form/Bug Reporting Form

    Begin learning RoboHelp HTML 7, 8 or 9 within the day!

    Adobe Certified RoboHelp HTML Training

    SorcerStone Blog

    RoboHelp eBooks

    1 reply

    Willam van Weelden
    Inspiring
    December 6, 2011

    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:

    1. In your output, open whfhost.js with a text editor.
    2. Find the line var g_nSortType = 0;.
    3. Replace the 0 with a 1 for ascending sort or 2 for descending sort.
    4. Save the file.

    Remember that you have to modify the value every time you generate your output.

    Greet,

    Willam

    December 6, 2011

    Thanks, Willam.  That's kind of a bummer, but good to have an answer.

    Inspiring
    October 26, 2022

    Hi there

    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.

    Cheers... Rick

    Helpful and Handy Links

    RoboHelp Wish Form/Bug Reporting Form

    Begin learning RoboHelp HTML 7, 8 or 9 within the day!

    Adobe Certified RoboHelp HTML Training

    SorcerStone Blog

    RoboHelp eBooks


    Hi, How to sort the search result in responsive html5 output. Please could you help?