PassMark Logo
Home » Forum

Categories as CSS class on result_block

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • benklocek
    Junior Member
    • Sep 2008
    • 8

    #1

    Categories as CSS class on result_block

    Is there any way to add css classes for the categories that a result is from?
    Ex:
    HTML Code:
    <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.
  • David
    Administrator
    • Dec 2004
    • 4714

    #2
    The CSS doesn't vary per category. So this is not an option.

    Comment

    • benklocek
      Junior Member
      • Sep 2008
      • 8

      #3
      CSS Categories

      I'm not sure I understand.

      I thought it would be something like:

      HTML Code:
      <div class="result_block $categories">
      since the categories are already being displayed just after the title.

      Here's to hoping

      Comment

      • David
        Administrator
        • Dec 2004
        • 4714

        #4
        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.

        Comment

        Working...