email notification when content created with specific taxonomy term

Events happening in the community are now at Drupal community events on www.drupal.org.
mediagrapher's picture

Hi,

I try to setup a rule with following particularities:

Event: After saving new content

Condition: a specific taxonomy term is selected in the new content

Action: send email

I'm using rules 7.x-2.0.

What condition to use for this?

thanks

Comments

"data comparison" or "list contains item"

itangalo's picture

You either want to use the "data comparison" condition (for checking against single-value fields) or "list contains item" (for multiple-value fields).
You will probably have to enter the term ID manually when configuring the condition.

Some more information is found in the second episode of these screencasts: http://dev.nodeone.se/node/984

Good luck!
//Johan Falk, Sweden

Thank you Johan, I watched

mediagrapher's picture

Thank you Johan, I watched your useful videos.

I had really difficulties understanding the syntax of the data selector. Before I had the impression that one condition would be enough but I found the data selector offered very limited choice. Combining multiple conditions is the solution to get to the wanted fields and data. So I was able to solve my problem:

I put the two following conditions:

1- Entity has field > Node and value is (my taxonomy term custom field)
after this first condition I tell rules that I will be using this field
2- Data Comparison > node:(my taxonomy term custom field):tid
in value I put my tid

and action! It works.

Awesome!

itangalo's picture

Awesome! Thanks for the feedback.

Rules

Group organizers

Group categories

Categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: