Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: kevishie commentedI had the same problem and this worked for me. Here is the patch..
Comment #2
kevishie CreditAttribution: kevishie commentedThat patch gave an error about whitespace...sorry...here is the latest..
Comment #3
cpliakas CreditAttribution: cpliakas commentedThanks for the patch! Marking as needs review...
Comment #4
sachbearbeiter CreditAttribution: sachbearbeiter commentedthanks a lot
Comment #5
cpliakas CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: cpliakas commentedAdding to "low hanging fruit" list.
Comment #8
m1n0 CreditAttribution: 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 CreditAttribution: nimek as a volunteer commentedPatch from 9 works great +1 for commit very useful feauture
Comment #11
adriancidComment #15
eugene.ilyin CreditAttribution: eugene.ilyin as a volunteer and at DrupalJedi commentedThank you guys. Committed.
Comment #16
eugene.ilyin CreditAttribution: eugene.ilyin as a volunteer and at DrupalJedi commented