Skip to content

ECA HTMX

Provides generic HTMX capabilities for ECA, building on Drupal core's HTMX integration. It lets ECA models create auto-polling regions and other HTMX-enabled elements, mark routes or requests to return the minimal (main-content-only) response, react to HTMX requests through conditions and tokens, and set HTMX HX-* response headers — all without writing JavaScript.

All attributes and headers are produced through Drupal core's HTMX helper and the core/drupal.htmx library, so the markup stays consistent with the rest of Drupal.

See also

For a walkthrough of the available plugins and common patterns, see Building HTMX-powered interfaces with ECA.

Installation

1
2
composer require drupal/eca
drush pm:install eca_htmx

Instead of using Drush to enable the module, you can also go to "Administration / Extend" (/admin/modules) and enable the module ECA HTMX from there.