Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I can create a category with role selected. But I can't create a category with taxonomy selected. I have created a taxonomy 'Mail Group' and added a field 'Email' to it. Added a term 'Group1' to the taxonomy with an email field. But there is no option to select taxonomies while creating a category.
Comment | File | Size | Author |
---|---|---|---|
#8 | Add Mass category.png | 204.57 KB | lomale@bluewin.ch |
#8 | Taxonomy_Selection_in_user.png | 125.6 KB | lomale@bluewin.ch |
#8 | Taxonomy_TermList_Selection_Trainingparticipants.png | 156.02 KB | lomale@bluewin.ch |
#6 | mass_contact_2284197_selection_for_mail_updated.png | 156.56 KB | gumdal |
#6 | mass_contact_2284197_selection_for_mail.png | 133.86 KB | gumdal |
Comments
Comment #1
oadaeh CreditAttribution: oadaeh commentedI've added documentation to the README.txt (in the dev branch) and here on drupal.org to explain how to do this. Please verify you have done all the steps necessary.
Have you added a Taxonomy field referencing the vocabulary you created to your user accounts? That can be done on your site at admin/config/people/accounts/fields.
Comment #2
AswathyAjish CreditAttribution: AswathyAjish commentedThanks for the post.
I have added taxonomy term reference in admin/config/people/accounts/fields and I can select taxonomy groups while adding categories. But when sending the mail by selecting this taxonomy group, an error message appears.
"No users were in the selected category(ies), and therefore, the message was not sent."
Then I edited a user and selected taxonomy group. Again I sent mail. Now its working.
Is there any solution to avoid editing user and selecting taxonomy groups?
Comment #3
AswathyAjish CreditAttribution: AswathyAjish commentedIs there any way to create category using content types?
Comment #4
oadaeh CreditAttribution: oadaeh commented@aswathym, there is currently no way to create a category using content types. The only ways to create categories are by taxonomy terms and roles.
In using user roles, you can create one or more roles that are specifically for Mass Contact, and in the user list (or a view created for that purpose), filter and select the users to be added to a role and add them all at one time.
Either way you go, you will have to update the relevant user accounts so they are a part of the category selection process.
Comment #5
AswathyAjish CreditAttribution: AswathyAjish commentedThanks for the post.
I got an option to create category using taxonomy with groups which contain users.
1. Created a taxonomy 'Mail Group'.
2. Added a field 'User' with field type 'Entity Reference' and widget 'Checkbox/radio button' in that taxonomy.
3. Installed the modules 'Corresponding Entity References' and 'Hierarchical Select'.
4. In Configuration -> Account Settings -> Manage Fields -> Added a field 'Mail Group' with field type 'Term Reference' and widget 'Hierarchical Select'.
5. In Configuration -> Corresponding References -> Added a preset to relate 'User' field in 'Mail Group' taxonomy and 'Mail Group' field in 'User'. Enable the checkbox 'bi-directional'.
6. Added a term 'Group1' with 1 or 2 users selected to the taxonomy 'Mail Group'.
7. Configuration -> Mass Contact -> Add Category -> Added a category 'Category1' with taxonomy 'Group1' selected.
8. Using Mass Contact, send mail to the category 'Category1'.
Comment #6
gumdal CreditAttribution: gumdal commentedI have created taxonomy term for Users as described in the documentation's CONFIGURATION AND SETUP section. This is the field in user:
I want to send out mass email to only a particular set of users defined by Taxonomy, please note that I don't want to send the mail by role but only to users who has this taxonomy value assigned:
I am getting the following error when I send out a mass contact mail to this category:
I realized that the query is not able to find any users. So, I thought of selecting role along with taxonomy vocabulary assuming that an AND operation is run on role and taxonomy vocabulary. This is the configuration of new category option:
However, this configuration sent out a mail to all approved authenticated users of the website!!! :(
I am updating the same ticket as 'bug' as I understand from earlier posts that this is a feature which is implemented and documented. Raising the priority to bring some attention and also coz this is an item which exists from long time. Kindly let me know if any further information is needed.
Comment #7
oadaeh CreditAttribution: oadaeh at Hook 42 commentedI realize this is quite old by now and probably no longer relevant, but I believe you missed a step:
For reference, here are the other steps:
I'm going to close this, but if it is still an issue, feel free to re-open it.
Comment #8
lomale@bluewin.ch CreditAttribution: lomale@bluewin.ch as a volunteer and commentedSorry if I reopen the following issue
But I am unable to create a category with taxonomy selection. It doesn't even show the taxonomy list. Only roles are showing up.
I tried to follow your instructions.
I created a taxonomy vocabulary
Picture 1 Selection_Trainingparticipants
Term : Selected for Mass Contact
Picture 2 Taxonomy_Selection_in_user
I assigned the user field to user
Then I assigned this term to 3 Users
And tried to add a Mass category
See pictures 3 Add Mass category
no taxonomy is showing
Can you give me a hint and help me with this issue. Thanks.
I use Drupal 8.8.0 and Mass contact v 8.x-1.0 beta2
Comment #9
andy-blumAlso here long after the initial issue creation date having trouble with taxonomy-driven categories looking for an assist