Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

ECA Site Building Tools

No security coverage Under active development 10 sites

Part of the ECA ecosystem · 51 projects

This module provides site building utilities that integrate with ECA. Its initial feature, ECA Active Trail, allows dynamically setting menu active trail states based on ECA conditions. This means you can programmatically highlight specific menu items based on the content being viewed.

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.

Drupal 10–11

Ask your assistant about ECA Site Building Tools

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
4
Tracked since
Nov 2023
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Release Timeline

Releases

Version Type Core PHP Release date
2.0.0 Stable 10–11 Jun 26, 2024
1.0.2 Stable 9–10 Jun 26, 2024
1.0.1 Stable 9–10 Apr 23, 2024
1.0.0 Stable 9–10 Nov 8, 2023