Search Keyword Highlight - Joomla Search

Need help with the Administration of your Joomla! 1.5 site? This is the spot for you.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Post Reply
apellow
Joomla! Apprentice
Joomla! Apprentice
Posts: 16
Joined: Fri May 02, 2008 4:56 pm

Search Keyword Highlight - Joomla Search

Post by apellow » Sat Feb 07, 2009 8:17 pm

I'm looking for a way to have the words used in the Joomla search to be highlighted in the article selected from the search results.

The plugin, Search Engine Keywords Highlight, only works when you arrive at the article from an external search engine like Google or Yahoo. I want this capability when you search from within my Joomla site.

Anyone know how to do this???

Thanks

User avatar
ranwilli
Joomla! Master
Joomla! Master
Posts: 19131
Joined: Sun Feb 19, 2006 6:47 pm
Location: Toledo, OH
Contact:

Re: Search Keyword Highlight - Joomla Search

Post by ranwilli » Sun Feb 08, 2009 3:53 am

In 1.5.9, the search term is enclosed by:

Code: Select all

<span class="highlight">keyword</span>
maybe you just need to put :

Code: Select all

.highlight {
background-color:#f7fc34;
}
in your css.
Don't HACK the Joomla! core, Instead "Extend" and/or "Override."
Stay ON the update path.
https://harpervance.com

apellow
Joomla! Apprentice
Joomla! Apprentice
Posts: 16
Joined: Fri May 02, 2008 4:56 pm

Re: Search Keyword Highlight - Joomla Search

Post by apellow » Thu Feb 12, 2009 1:04 am

The search term is indeed enclosed as <span class="highlight">keyword</span> but only on the search results page. If I actually open one of the articles indicated, the article doesn't have any keywords highlighted.

nudel
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Mon Feb 09, 2009 10:49 am

Re: Search Keyword Highlight - Joomla Search

Post by nudel » Thu Feb 19, 2009 3:56 pm

I'm looking for exactly the same plugin :(

Hutchy68
Joomla! Apprentice
Joomla! Apprentice
Posts: 34
Joined: Fri Feb 27, 2009 2:49 pm
Location: New Jersey, US

Re: Search Keyword Highlight - Joomla Search

Post by Hutchy68 » Sun Mar 15, 2009 5:32 am

Yes that is what I am looking for, a site search that highlights the words on the actual page when you navigate to it. If it can be done with an outside search engine navigating to your pages, why can't it be done internally.

Another good search function that is needed is a highlight on page search box. I think this can be done in Java Script, but I don't know how to integrate that in to content pages. Would it have to be coded into the actual template?

Anyone... ???

T
Tom Hutchison
Joomla! Production Leadership Team member

dobok
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Tue Feb 08, 2011 1:36 pm

Re: Search Keyword Highlight - Joomla Search

Post by dobok » Tue Feb 08, 2011 1:40 pm

ranwilli -> it works, thanks !!!

chriskelly138
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Mon Mar 14, 2011 3:47 am

Re: Search Keyword Highlight - Joomla Search

Post by chriskelly138 » Fri May 27, 2011 2:10 am

anybody figure out the solution for this topic?

@ranwili
it only changes the highlight color of the keywords in the search results but it does highlight the keywords in the articles

NehaChan
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Fri Jan 20, 2012 11:21 am

Re: Search Keyword Highlight - Joomla Search

Post by NehaChan » Fri Jan 20, 2012 11:43 am

ranwilli wrote:In 1.5.9, the search term is enclosed by:

Code: Select all

<span class="highlight">keyword</span>
maybe you just need to put :

Code: Select all

.highlight {
background-color:#f7fc34;
}
in your css.
Thanks... this worked just fine [1.7]

ligend
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Fri Jan 27, 2012 7:34 am

Re: Search Keyword Highlight - Joomla Search

Post by ligend » Tue Jun 05, 2012 9:47 am

Sorry for this questions.
I really need to have the feature highlight is the page of search results, that the pages open.

I have joomla 1.5.22 is installed on the component JXFinder (no longer supported). This software has the required function, but has big problems in the research stage. If I have a word composed of AMC and AMC-56 and I try, gets nothing.

So I am looking for other components. I have tried many and all the best, but nobody has the highlights on every page.

How can I do? There is a component ah hoc? Can I put a PHP script? if you like?

munyiva
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Thu Apr 09, 2015 10:25 am

Re: Search Keyword Highlight - Joomla Search

Post by munyiva » Wed May 13, 2015 11:42 am

Thanks for this solution it worked perfectly.

User avatar
Beata
Joomla! Ace
Joomla! Ace
Posts: 1084
Joined: Fri Mar 02, 2007 2:06 pm
Location: Lithuania

Re: Search Keyword Highlight - Joomla Search

Post by Beata » Fri Nov 10, 2017 6:16 am

Sorry, I didn't catch
What and where I should change? Which file?

By searching I have in two my websites this <span class="highlight">potvarkis</span>


Post Reply

Return to “Administration 1.5”