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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

kevishie’s picture

I had the same problem and this worked for me. Here is the patch..

kevishie’s picture

That patch gave an error about whitespace...sorry...here is the latest..

cpliakas’s picture

Status: Active » Needs review

Thanks for the patch! Marking as needs review...

sachbearbeiter’s picture

thanks a lot

cpliakas’s picture

Status: Needs review » Needs work

This 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

cpliakas’s picture

Version: 7.x-2.x-dev » 7.x-1.x-dev

Marking as a 1.x feature. Although we have a 2.x branch, it is exactly the same at this point.

cpliakas’s picture

Issue tags: +low hanging fruit

Adding to "low hanging fruit" list.

m1n0’s picture

Issue summary: View changes

Why do we need 'active' class for Current Search block? It displays only active items already, so it might be unnecessary markup.

fengtan’s picture

Status: Needs work » Needs review
FileSize
2.01 KB

Here is an attempt to expand the feature to the Current Search blocks.

nimek’s picture

Patch from 9 works great +1 for commit very useful feauture

adriancid’s picture

Status: Needs review » Reviewed & tested by the community

The last submitted patch, 1: facetapi-activelistitem-1482304.patch, failed testing.

The last submitted patch, 2: facetapi-activelistitem-1482304-1.patch, failed testing.

  • eugene.ilyin committed e3be721 on 7.x-1.x authored by fengtan
    Issue #1482304 by kevishie, fengtan: Add class for active list item
    
eugene.ilyin’s picture

Thank you guys. Committed.

eugene.ilyin’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.