Manage Learn to apply best practices and optimize your operations.

Hide relevance score using inline style tag

I've read about two solutions to hide the Relevance Score, which is the shaded box to the left of Search Results on the web. Here's another possibility: use inline styles

I've read about two solutions to hide the Relevance Score, which is the shaded box to the left of Search Results on the web.

The first is to control the image after it has been rendered in the browser using Javascript. This offers control but relies on JS. The second is to view TreatAsHTML and code everything myself - when doing a FT Search, Domino will highlight the words on the Page results, which gets really tricky if I have to code the highlighting myself.

So here's another possibility: use inline styles. As the code is not placed in an external style sheet, the IMG style will only affect those images immediately following it on the form. If you need to actually display an icon in a column in the view you are searching, then modify the column to call the "img.show style".

ex. "&ltimg src="/icons/vwicn001.gif" class=show>" 


On your "$$SearchTemplateDefault" 
form/page just above the "$$ViewBody",
enter the following pass-through HTML...
 
  
&ltstyle type=text/css>
<!--
img {display: none; visibility: hidden};
img.show {display: inline; visibility: visible};
-->
</style>

Do you have comments on this tip? Let us know.

This tip was submitted to the SearchDomino.com tip exchange by member Domenic Guarino. Please let others know how useful it is via the rating scale below. Do you have a useful Notes/Domino tip or code to share? Submit it to our monthly tip contest and you could win a prize and a spot in our Hall of Fame.

Dig Deeper on HTML for Lotus Notes Domino

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchWindowsServer

Search400

  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...

SearchDataCenter

SearchContentManagement

Close