Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Search results group cat headings help

Quote Reply
Search results group cat headings help
I'm struggling with this one.

When you do a search the results are grouped in to categories like so:

- Cat1

--- result1
--- result2

- Cat2

--- result1
--- result2

Currently the category links (Cat1, Cat2, etc.) are weighted as normal text and I'm trying to make them bold.

I can't locate where to do this in the css files or the templates.

Can you help?Crazy
Quote Reply
Re: [MJB] Search results group cat headings help In reply to
Hi,

If you are using this in search_results.html:

Code:
<%if title_loop.length%>
<%~set formatted_title = Links::Utils::format_title($title_loop, separator => $category_separator, no_escape_separator => $no_escape_category_separator, include_home => 0, link_type => 1)%>
<p class="category"><%if highlight and query%><%Links::Tools::highlight($formatted_title, $query)%><%else%><%formatted_title%><%endif%></p>
<%~endif%>

Just add a bold style to it. i.e

Code:
<%if title_loop.length%>
<%~set formatted_title = Links::Utils::format_title($title_loop, separator => $category_separator, no_escape_separator => $no_escape_category_separator, include_home => 0, link_type => 1)%>
<p class="category" style="font-weight: bold;"><%if highlight and query%><%Links::Tools::highlight($formatted_title, $query)%><%else%><%formatted_title%><%endif%></p>
<%~endif%>

Untested, but should work =)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Search results group cat headings help In reply to
Yes, that did it.

I had seen the class="category" in the code and was trying to locate it in the css file to add the font-weight.

Thanks