Closed (fixed)
Project:
Search API
Version:
7.x-1.13
Component:
Facets
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
9 Jan 2011 at 12:50 UTC
Updated:
19 Aug 2014 at 09:31 UTC
Jump to comment: Most recent
Comments
Comment #1
drunken monkeySeems like a good idea. I'm not that much of a themer so often don't think enough about that sort of thing.
Could you write an appropriate patch for search_api_facets.theme.inc, or at least post how the generated HTML should look like (what elements there should be, and with which classes …)?
Comment #2
JockeL commentedI'm not very familiar with php, nor a theme guru, but I will give the rendered html a try.
li.first/last and a.active classes are already there.
Added classes: facets, facet-title, facet-count, facet-remove, faceted-facet-title, facet-parent.
For the lists of facet links:
The faceted facet:
The facet in current search block:
Comment #3
drunken monkeyI prefixed all classes with "search-api" to avoid conflicts and changed "parent" to the more appropriate "field", but other than that I now implemented this.
Thanks again for the suggestions!
Comment #5
kopeboyI am sorry for reopening this, but I don't see any CSS classes on the Current Search Block (using the default one).
Also, Facets have a CSS id, but is of kind:
#facetapi-link--4--checkboxfor the single filter value#facetapi-facet-search-apidefault-node-index-block-typefor the ul list (or select element if you are using the addition module - note that there is no space between the two strings, which is bug I guess),So it will be hard to use those in CSS since I have nowhere to define those names or numbers for my fields and filters (please correct me if Im wrong).
Finally, it would be very useful to define a CSS class for the Facet block, which now has only:
ID:
#block-facetapi-pxrznri097pxqmiylfhvzrz1bs1kpb51= totally unusableclass:
.block block-facetapi contextual-links-region= nothing related to the kind of filters/fields that are inside it.Is there another module or way to do these kind of things if not possible to add the feature inside Facet API core?
Comment #6
drunken monkeyThis issue is more than three and a half years old, back then we didn't even use Facet API.
Please open a new issue in the Facet API.