Drupal is a registered trademark of Dries Buytaert
Search API Solr 4.4.0 Minor update available for module search_api_solr (4.4.0). Page Manager 8.x-4.0 Major update available for module page_manager (8.x-4.0). Trash 3.1.0-beta2 New beta version released for module trash (3.1.0-beta2). Commerce AutoSKU 3.0.1 Minor update available for module commerce_autosku (3.0.1). Custom Field 4.0.10 Minor update available for module custom_field (4.0.10). Alternative login ID & display names 2.0.12 Minor update available for module alt_login (2.0.12). EntityReference UUID 3.0.1 Minor update available for module entity_reference_uuid (3.0.1). LocalGov Publications Importer 1.1.1 Minor update available for module localgov_publications_importer (1.1.1). Configuration Override Warn 8.x-1.6 Module config_override_warn updated after 10 months of inactivity (8.x-1.6). Table Alternate Rows Module table_altrow crossed 1,000 active installs.

Facet Type Tray

1 sites No security coverage
View on drupal.org

This module integrates the Type Tray content type organizer with the Facets module. It allows you to use content type categories defined in Type Tray as a hierarchical facet within your Search API views, enabling better organization and filtering of content.

Integrates the Type Tray content type organizer with the Facets module, so that content type categories defined in Type Tray can be used as a hierarchical facet in Search API views.

Requirements

Content types must have a Type Tray category assigned for them to appear grouped in the facet. Types without a category are indexed under their own machine name.

How it works

The module provides three plugins:

  • Search API processor: Type Tray (type_tray): Indexes each node with its Type Tray category as a separate field. Both the category key (parent level, e.g. resources) and a compound category.bundle value (child level, e.g. resources.page) are stored, enabling two-level hierarchy in the facet widget.
  • Facets build processor: Type Tray - Merge node types (type_tray): Resolves the indexed category and compound values back to human-readable labels for display in the facet widget.
  • Facets sort processor: Sort by Type Tray categories (type_tray_category): Orders facet results according to the category order defined in the Type Tray configuration.

Setup

  1. Add the Type Tray Search API processor to your search index under Configuration > Search API > [your index] > Processors, then re-index.
  2. Add a facet for the new Type Tray category field on your Search API view.
  3. On the facet, enable the Type Tray: Merge node types build processor and optionally the Sort by Type Tray categories sort processor.
  4. To get the two-level category/bundle hierarchy, also enable the Type Tray hierarchy plugin on the facet and choose a widget that supports hierarchy (e.g. the core checkbox widget with the hierarchy option enabled).

Activity

Total releases
2
First release
Jun 2026
Latest release
1 month ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Active

Releases

Version Type Release date
1.0.0 Stable Jun 11, 2026
1.x-dev Dev Jun 11, 2026