Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Problem with "search_highlighting"

Quote Reply
Problem with "search_highlighting"
Hi,

In versión 2.1.2 I used to do this to highlight the words in the results page:

“Yes” in: Updates > Search options > search_bold

Now, in version 3.0.4 I can’t make it work. Nothing happens when I mark “Yes” in:

Updates > Search options > search_highlighting

In template “link.html” I write:

<%if Description%><%if highlight%><%Links::Tools::highlight($Description, $query)%><%else%><%Description%><%endif%><%endif%>

What am I doing wrong ? Thanks in advance.

JoséML
Quote Reply
Re: [JoseML] Problem with "search_highlighting" In reply to
That looks right. If you send me a link to your admin and the page and query you're having problems with, I can take a look.

Adrian
Quote Reply
Re: [brewt] Problem with "search_highlighting" In reply to
I sent the information through private message, please confirm that you've got it.

Thank you.-

JoseML
Quote Reply
Re: [JoseML] Problem with "search_highlighting" In reply to
I didn't get it.

Adrian
Quote Reply
Re: [JoseML] Problem with "search_highlighting" In reply to
for anyone with the same problem...

I had the same issue as you, could not get the highlight of search words to go bold.

Found the problem to be that i had not transfered the part in links3 CSS file which makes it go bold. Thats now all done by css. So if you want the highlight to work, make sure to add those styles to your own css file if you use a different from the default.

This is the css used for highlight:

/* search highlighting */
.searchhl-1, .searchhl-2, .searchhl-3, .searchhl-4, .searchhl-5 {
font-weight: bold;
}
.searchhl-1 {
background: #ffff80;
}
.searchhl-2 {
background: #aaaaff;
}
.searchhl-3 {
background: #aaffaa;
}
.searchhl-4 {
background: #ffaaaa;
}
.searchhl-5 {
background: #aaffff;
}
Quote Reply
Re: [demon] Problem with "search_highlighting" In reply to
Thanks demon for your help.

joseML