PDA

View Full Version : Categories as CSS class on result_block



benklocek
12-18-2008, 09:11 PM
Is there any way to add css classes for the categories that a result is from?
Ex:
<div class="result_block categoryx categoryz categoryw">

This would enable visual customization by category, say by adding a small icon to highlight the category association.

I thought v6 would enable us to customize the results display like this, but I can't seem to find it anywhere.

wrensoft
12-19-2008, 08:05 AM
The CSS doesn't vary per category. So this is not an option.

benklocek
12-20-2008, 06:49 AM
I'm not sure I understand.

I thought it would be something like:


<div class="result_block $categories">

since the categories are already being displayed just after the title.

Here's to hoping :D

wrensoft
12-20-2008, 06:58 PM
Category text is placed in the category CSS class. Like this.
<span class="category">[Category Name]</span>

And the CSS doesn't vary per category. If you wanted it to then you would need to make some code changes.