How to print only taxonomy names of a multi-value taxonomy field in an email

Created on 16 January 2023, about 2 years ago
Updated 30 January 2023, about 2 years ago

Hi Jürgen and ECA-Team,

first of all: Thank you for this very promising module.
Although I´m just about to start using it I´m already captured by it´s scope and usability.

What I actually configured is to send an email as soon as a node gets created. The email contains some of the data concerning the node and it´s author.

The node has a multi-value taxonomy field.
At the moment I get a comma separated list of term names, each with a link to it.

How can I print all taxonomy names without the links?

My model is super simple - just the event "Update content entity" and the action "send email" where the token of the taxonomy-field is in.
I already tried to loop through the field´s values as described in the ecaguide (https://ecaguide.org/library/use%20case/multi_value_field_loop/), but that gives me an email for every term.

Can you give me a hint?

Thanks again!

Wiegand

💬 Support request
Status

Fixed

Version

1.1

Component

Documentation

Created by

🇩🇪Germany 4kant

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • Status changed to Postponed: needs info about 2 years ago
  • 🇩🇪Germany jurgenhaas Gottmadingen

    Hi @4kant any progress on this one?

  • 🇩🇪Germany 4kant

    Not yet - I'm sorry ;-)
    But I'd like to go on:

    How do I "Initialize empty name list"?

    Thanks!

  • Status changed to Active about 2 years ago
  • 🇩🇪Germany jurgenhaas Gottmadingen

    @4kant no need to initialize a list. Just use the action "List: Add item" and use a name in the token field. If no list exists yet, it will start a new one for you automatically.

  • 🇩🇪Germany jurgenhaas Gottmadingen
  • Status changed to Closed: works as designed about 2 years ago
  • 🇩🇪Germany 4kant

    I solved it by using
    "Tamper: Strip Tags" with

    • Data: [taxonomy-field]
    • Token name: any_name

    In the email I print [any_name].

    So now my model is still super simple:

    1. Event: Insert content entity (Type Comment:myComment-Type)
    2. Tamper: Strip Tags
    3. Send an Email

    Thanks again!

  • Status changed to Fixed about 2 years ago
  • 🇩🇪Germany jurgenhaas Gottmadingen

    Congratulations that you've found a solution for your use case, and thanks for your feedback. Changing status to "Fixed" as it is a support request and that status grants credits too.

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024