Umami: Search Web Components
This is a demo module for Search Web Components that replaces the default Umami search experience with a sample layout builder based web component experience.
What's included
- A fully configured database search index and decoupled endpoint
- SWC search bar in the header
- SWC search page using layout builder and blocks
- Example of search input, pager, sort, and results list
- Examples of button, checkbox, and dropdown facets
- Demo styles for SWC components
What's included in the advanced module
- Dropdown html facet
- Collapsible facets
- Facet resets
- New custom web components search-results-recipe and search-example
- List vs Grid switcher
- Demo styles for SWC components
Installation
Before installing make sure you've correctly installed the Umami demo profile. DDEV is a great way to quickly spin up a local with Umami on it. If you have a functioning local and just need to install Umami this drush command will do it:
!!! WARNING: THIS COMMAND WILL DROP YOUR CURRENT DATABASE !!!
drush site:install demo_umami --account-name=admin --account-pass=admin
composer require drupal/umami_search_web_componentsdrush en umami_search_web_componentsdrush cr- Use the search in the header or visit
/searchto see the new search experience
Advanced features
This module also contains a submodule umami_search_web_components_adv that shows how to integrate custom components into the base components. To enable these:
drush en umami_search_web_components_advdrush cr- Use the search in the header or visit
/searchto see the new search experience
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Release Timeline
Releases
| Version | Type | Core | Release date | |
|---|---|---|---|---|
| 1.0.0-alpha2 | Pre-release | Feb 12, 2024 | ||
| 1.0.0-alpha1 | Pre-release | Jan 29, 2024 | ||
| 1.0.x-dev | Dev | Jan 15, 2024 |