i have to theme the selected facet item - but there is no active class at the list item ...
<li class="leaf first">
<a class="facetapi-active" rel="nofollow" href="/filter">(-)</a>
Internet Service Providers
</li>this would be wonderful ....
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | facetapi-activelistitem-1482304-9.patch | 2.01 KB | fengtan |
| #2 | facetapi-activelistitem-1482304-1.patch | 619 bytes | kevishie |
| #1 | facetapi-activelistitem-1482304.patch | 621 bytes | kevishie |
Comments
Comment #1
kevishie commentedI had the same problem and this worked for me. Here is the patch..
Comment #2
kevishie commentedThat patch gave an error about whitespace...sorry...here is the latest..
Comment #3
cpliakas commentedThanks for the patch! Marking as needs review...
Comment #4
sachbearbeiter commentedthanks a lot
Comment #5
cpliakas commentedThis looks great! Marking as needs work, only because it would be great to expand this to the Current Search blocks as well. The methods where similar code needs to be added are listed below:
Thanks,
Chris
Comment #6
cpliakas commentedMarking as a 1.x feature. Although we have a 2.x branch, it is exactly the same at this point.
Comment #7
cpliakas commentedAdding to "low hanging fruit" list.
Comment #8
m1n0 commentedWhy do we need 'active' class for Current Search block? It displays only active items already, so it might be unnecessary markup.
Comment #9
fengtanHere is an attempt to expand the feature to the Current Search blocks.
Comment #10
nimek commentedPatch from 9 works great +1 for commit very useful feauture
Comment #11
adriancidComment #15
eugene.ilyin commentedThank you guys. Committed.
Comment #16
eugene.ilyin commented