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 would love to have a setting in facetapi_bonus to hide the facet count. Patch attached for review. Updated patch, as settings aren't required.
Comment | File | Size | Author |
---|---|---|---|
#5 | facetapi_bonus-hide_count-2266717-5.patch | 1.8 KB | cecrs |
Comments
Comment #1
cecrs CreditAttribution: cecrs commentedComment #2
cecrs CreditAttribution: cecrs commentedComment #3
jwilson3I'm not seeing the "Less than X items" functionality here. C&P error from another plugin?
Needs a new line
Comment #4
cecrs CreditAttribution: cecrs commentedC+P indeed, thanks for the review!
Comment #5
cecrs CreditAttribution: cecrs commentedComment #6
woprrr CreditAttribution: woprrr commentedIts simple with the hook provide with Facetapi_bonus.
For alter all items with callback active (this hook is call once by facet):
Or
For alter only my facet 'MYFACETNAME' use $settings.
Or delete the foreach and enter a specific key for alter 1 items particulary
If you need some exemples look : https://www.drupal.org/node/1440016#comment-9530129
Comment #7
woprrr CreditAttribution: woprrr commented@cecrs This issue is closed now ? This hook provide by module Responds to Your Needs ?