Libraries tagged by eca

drupal-eca-recipe/eca_lib_0047

0 Favers
1 Downloads

Adds selected nodes to a group from a view, taking the group from the view argument instead of the model, and offering the operation only to group members.

Go to Download


drupal-eca-recipe/eca_lib_0046

0 Favers
3 Downloads

One model building an editorial desk: a composite block assembled element by element from a heading, a dropbutton, an embedded view and a details panel; a deferred region resolved through a lazy element; an endpoint serving JSON, an HTMX fragment and a bare timestamp with per-branch status codes, headers and cache lifetimes; and a counter that re-fetches only when the endpoint announces an event through the HX-Trigger header.

Go to Download


drupal-eca-recipe/eca_lib_0045

0 Favers
1 Downloads

Separates two questions that are routinely conflated: whether a field changed, and what its previous value was. The condition Entity: field value changed answers the first on its own, with no original entity, no token and no loop. Only the message text needs the old title, so the model additionally loads the unchanged article and reads it back as [original_article:title]. There is no token for a previous field value, and [user:unchanged:field_user_networks] and its variants do not exist.

Go to Download


drupal-eca-recipe/eca_lib_0044

0 Favers
1 Downloads

Published Article nodes cannot be deleted until they are unpublished. The model answers the entity access question with 'forbidden' instead of hiding buttons, so the Delete tab, the operations link and the form's Delete button all disappear together and the delete route returns 403.

Go to Download


drupal-eca-recipe/eca_lib_0043

0 Favers
6 Downloads

Adds a Show writing tips panel to the Article node form. Selecting it fetches a fragment from an ECA endpoint over HTMX and swaps it into the panel, without submitting, validating or rebuilding the form and without changing any field. Completes the set of three form button samples: a field widget action writes one field, an Ajax handler writes many, and HTMX writes none but shows content beside the form.

Go to Download


drupal-eca-recipe/eca_lib_0042

0 Favers
12 Downloads

Adds a Topic field and a Generate draft button to the Article node form. Selecting the button sends an Ajax request that fills the title and the body text in one go, without reloading the page and without saving the node. The topic is required for the button but not for saving, and the body is filled with HTML markup. The recipe brings in the library's Article content type; the button, the field and the behavior all come from the model, with no form display configuration needed.

Go to Download


drupal-eca-recipe/eca_lib_0041

0 Favers
13 Downloads

Adds two ECA-powered buttons to entity form widgets. One returns three suggested titles and offers them in a dialog, the other writes a single computed byline straight into the field. Both are deterministic and use no AI. The recipe brings in the library's Article content type, ships the Article form display so that one exists on a fresh site, and attaches the buttons to it without replacing an existing one. Needs ECA Field Widget Actions 1.0.0-beta2 or later.

Go to Download


drupal-eca-recipe/eca_lib_0040

0 Favers
7 Downloads

Provides a Location content type with dependent Country, State or province, and City select fields. ECA adds Ajax handlers and populates the downstream options from a compact demonstration data set.

Go to Download


drupal-eca-recipe/eca_lib_0039

0 Favers
4 Downloads

Adds an edit link to the rendered output of a node in the teaser view mode. The link points to the node's edit form and sits beside the title, not inside it. A scalar condition keeps this teaser-only, an update access check limits the link to users who may edit the node, and a user.permissions cache context keeps both outcomes cached correctly.

Go to Download


drupal-eca-recipe/eca_lib_0038

0 Favers
4 Downloads

Sends the article text to an AI chat model on presave and writes the structured answer into real node fields: SEO meta description, reading time, sentiment and Tags terms. Triggered by node entity presave, guarded so that each article is enriched only once. Includes the library's Article tags recipe, which provides the Article content type with its body and Tags fields and the Tags vocabulary. Requires the ai_integration_eca and eca_tamper contributed modules. After applying the recipe, select a chat model that supports structured output in the "Ask AI for structured enrichment data" action.

Go to Download


drupal-eca-recipe/eca_lib_0037

0 Favers
1 Downloads

Provides two HTMX blocks: a digital clock that refreshes once a second, and a block that loads the content of a node when clicked.

Go to Download


drupal-eca-recipe/eca_lib_0036

0 Favers
0 Downloads

Subscribes or unsubscribes users from a Simplenews newsletter on user presave, based on the roles they hold. Requires the eca_simplenews module.

Go to Download


drupal-eca-recipe/eca_lib_0035

0 Favers
64 Downloads

A variant of the insert-or-update role model that acts only on newly created users.

Go to Download


drupal-eca-recipe/eca_lib_0034

0 Favers
81 Downloads

Contrasts the Views execute query action, which returns entities, with the render Views action, which returns rendered output.

Go to Download


drupal-eca-recipe/eca_lib_0033

0 Favers
23 Downloads

Follow up to ECA and http services, using a self-defined services API for the HTTP Client Manager. Requires the ECA TV Demo module, which supplies that services API.

Go to Download


<< Previous Next >>