Hi - would it be possible to add some settings that would allow us to change the looks of the Ajax-returned search results?

As it is, the headers are huge and the snippets are also too large. See http://www.uia.org - try to do a search for some obviously present word - and you will see that much of the left column will get filled with huge printout of the results.

I know this may be hacked in the theme somehow but that's not a long-term solution, and not for everybody. Some settings as to font sizes, length of the snippet, etc would be much better.

Comments

kourge’s picture

I see that you're using version 1.0. I know this because paging doesn't work on your site, but the HEAD version does handle paging while 1.0 does not. I'm also surprised that you haven't ran into any issues that involve JavaScript enhancements not working altogether, since there have been 5+ cases in which this has happened.

Try the HEAD version, because it gives you control of lots of search result components.

Regarding the snippet length, it is completely up to the built-in search module's mercy. A quick search of the search module reveals that this is controlled by a PHP function called "search_excerpt" in the search module. So unless the search module itself provides mechanisms for adjusting snippet lengths, there's no way Live Search can do anything about it, because what Live Search literally does is it merely does a search on behalf of a user and pulls the result back, straight onto the current page without any reloads.

As for font sizes, I have to say that this is out of scope of modules. That's exactly for themes. You don't even really need to "hack" a theme. All you need to do is to change the CSS stylesheet or even just add inline CSS styles using the <style> and target the font size of the search results. The CSS selector for the search results area is #live-search-results and you can definitely dive into live-search.css and see how I styled stuff by default. For example, I decreased the line height to make the results more compact than it should be.

I have to admit that since doing a View Source doesn't let you see markup of the search results, it is a bit harder, but that's exactly why every web developer or maintainer should have Firebug, which gives you X-Ray vision and lets you see the guts of web pages .

kourge’s picture

Status: Active » Closed (won't fix)