This project is read-only.

Displaying Taxonomy Fields in Email Message

Topics: Customizing Orchard, Troubleshooting
Jul 24, 2013 at 4:38 PM
I have an Orchard website setup using taxonomies to categorize products/types. When a new content type "part" is created, an email is automatically sent to the administrator of the site specifying which data was entered for that "part." In the content type "part" there are three separate taxonomy fields defined, category, manufacturer and supplier. I need to include the terms selected for the "part" in that email to the administrator. How would I go about this?
Jul 28, 2013 at 4:11 AM
There's a token provider for taxonomies, so if you're using the Send Email action that comes with Orchard.Email, you could use tokens. If you are sending an email yourself, you can access the Terms property of the taxonomy field attached to your part yourself.