Facets Taxonomy Multilevel

Composer package
drupal/facets_taxonomy_multilevel
Active installs
336
Security advisory coverage
covered
Released
Core compatibility
^9 || ^10 || ^11
Supported branches
1.0.x
Maintenance status
Actively maintained
Development status
Under active development
Security advisory coverage
Covered
This module introduces processors to enhance taxonomy-based result display and enable dependent facets.

Key features:

  1. Show terms of defined depth:
    • Limits display to specified taxonomy depth.
    • Example: Displaying only L1 terms like Fruits and Vegetables.
  2. Show terms based on Dependee Facet:
    • Facilitates displaying L2 terms based on the selected L1 term in the dependee facet.
    • Example: Displaying Apple, Mango, Banana when Fruits is selected, and Potato, Onion, Garlic when Vegetables is selected.
Usage Example: Consider a multilevel taxonomy structure: Fruits - Apple - Mango - Banana Vegetables - Potato - Onion - Garlic On a search page with two facets:
  • Facet 1 (L1 Terms):
    • Utilizes 'Show terms of defined depth' to display Fruits and Vegetables only.
  • Facet 2 (L2 Terms):
    • Uses both processors to show L2 terms based on the selection in Facet 1.
      • When Fruits is selected, display Apple, Mango, Banana.
      • When Vegetables is selected, display Potato, Onion, Garlic.
      • If both Fruits and Vegetables are selected, display all terms.

Post-Installation

After installation and activation, configure the processors in the facets settings. Ensure compatibility with the Facets module. This module seamlessly integrates with Facets. Note:
  • Processors exclusively apply to Taxonomy Fields.
  • 'Show terms based on Dependee Facet' depends on 'Show terms of defined depth.'