This project is not covered by Drupal’s security advisory policy.
This module aims to become a collection of site building utilities that work together with ECA.
For now, there is only one single submodule ECA Active Trail - it provides a Plugin for ECA that allows you to set the menu system's active trail dependent on any conditions available to ECA.
Usage example for ECA Active Trail:
- use a standard installation with Drupal 10, be sure to add the eca eco system
- enable modules: eca_ui bpmn_io eca_misc
- add Module "ECA Site Building" and enable modules: eca_site_building eca_active_trail
- add a taxonomy term tag "news" to vocabulary "Tags"
- add some content of type "article", tag some of them with "news" and give them an alias with /news i.e. /news/news1 /news/news2 and so on
- create a view page (path /news) for content type article tagged with taxonomy term news
- create a menu entry for the main navigation menu for the path /news (our view page)

We now have a view of articles showing our news, but: since we don't have all of the single news in the main menu, we want to set the active trail on the "News" menu entry, for each individual news - here comes ECA Active Trail into play:
We build an ECA model, which sets the active trail on "News" for each of our news articles.
- start the model with the event "Controller found to handle request"
- add an action "Active trail" and set the menu trail to "-- News"
- as condition define "Compare two scalar values", where the first value ist the token [current-page:url:path] and the second value is "/news/"

Save the model and inspect the active trail when viewing a single news: the main menu entry "News" is now set as the active trail.
| Attachment | Size |
|---|---|
| view news | 171.15 KB |
| screen eca model | 135.23 KB |
Project information
Minimally maintained
Maintainers monitor issues, but fast responses are not guaranteed.- Project categories: Site structure, Developer tools
- Ecosystem: ECA: Event - Condition - Action
16 sites report using this module
- Created by kgertz on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.

