File:
Whenever a user searches the WebHelp, search results in dropdowns and expandspots are hidden. With the following modifications you can open dropdowns and expandspots when a search result is contained in a dropdown or expandspot.
Note:
- This modification only works when you check Enable Highlight Search Results in your SSL settings.
- This modification works for RoboHelp 8 and 9.
- Nested dropdowns are supported.
- Nested expandspots are not supported by WebHelp.
Setting up
You modify your ouput as follows:
- Download the attached text file.
- Open whtopic.js.
- Find the line
this.doHighlight = function( a_aRanges, a_nStart )and go to the second instance ofreturn nEnd;in this function.- Line 350 in RoboHelp 8
- Line 362 in RoboHelp 9
- Add
checkSearchResultDropdown(spanElement);BEFOREreturn nEnd;. - Add the code from the supplied text file to the top whtopic.js.
- Save whtopic.js.
When you are using any of the following scripts, you need to modify those scripts as well:
The functions getLinkId() and getDivId() used in this modification are also used in the three scripts mentioned above. If you use any one of those scripts, you must remove the functions getLinkId() and getDivId() from that script.
