Remove Highlighting from Search Results
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 70
- Joined: Thu Mar 21, 2013 12:55 am
Remove Highlighting from Search Results
When a user searches on a website generated from WebHelp Responsive, the search terms are highlighted in the result documents. This highlighten can be distracting. Is there a way to turn off the highlighting other than removing ?hl=term from the URL?
Thanks,
Paul
Thanks,
Paul
-
- Site Admin
- Posts: 275
- Joined: Thu Dec 24, 2009 11:21 am
Re: Remove Highlighting from Search Results
Hello,
Unfortunately, there is no straight forward option that can be used to turn off the highlighting mechanism.
However, you can achieve this by editing the default template used to generate the WebHelp Responsive output:
[Oxygen-18.0-Installation-Directory]/frameworks/dita/DITA-OT/plugins/com.oxygenxml.webhelp/templates/dita/bootstrap/resources/js/wt_default.js
You can check which version of DITA Open Toolkit you are using in the DITA preferences page (Main Menu -> Options -> Preferences...).
Unfortunately, there is no straight forward option that can be used to turn off the highlighting mechanism.
However, you can achieve this by editing the default template used to generate the WebHelp Responsive output:
- Open the JavaScript file that contains the code responsible for highlighting the search terms:
[Oxygen-18.0-Installation-Directory]/frameworks/dita/DITA-OT2.x/plugins/com.oxygenxml.webhelp/templates/dita/bootstrap/resources/js/wt_default.js
- Change the value for the highlighted variable at line 2 to true.
Code: Select all
var highlighted = true;
[Oxygen-18.0-Installation-Directory]/frameworks/dita/DITA-OT/plugins/com.oxygenxml.webhelp/templates/dita/bootstrap/resources/js/wt_default.js
You can check which version of DITA Open Toolkit you are using in the DITA preferences page (Main Menu -> Options -> Preferences...).
Alin Balasa
Software Developer
<oXygen/> XML Editor
http://www.oxygenxml.com
Software Developer
<oXygen/> XML Editor
http://www.oxygenxml.com
Return to “DITA (Editing and Publishing DITA Content)”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service