SCENARIO:
I have a ‘People’ content type, which has an ‘Expertise’ field which you select from a list of taxonomy terms. For instance a person could be categorised as ‘Management’, ‘Sales, ‘IT’, etc.
There will then be an EntityQueue set up for each ‘Expertise’ term.
What I’d like to do is automatically add all People profiles to the end of their relevant ‘Expertise’ EntityQueue, eg. ‘Management’ EntityQueue will auto populate with all people who are managers, and you will be able to reorder them by editing the EntityQueue so the most senior managers appear first.
Looks like there was a module in D7 which added entities to queues by taxonomy term , but I’ve not found a way to easily do this in D9.
SOME OPTIONS:
-
You could just create a view which shows all the People filtered by
their Expertise, but that wouldn’t give you the ability to reorder. -
There is a D9 ‘Auto Entityqueue’ module, but this only allows items
of a specific content type to be added to an EntityQueue. -
You could also add all people to one EntityQueue and then use a view
to filter by the relevant ‘Expertise’, but I don’t really want one
massive People queue, and it makes it tricky as some people might
belong to more than one ‘Expertise’ and their place in the full list
of People would be ‘global’, and you couldn’t reorder them in an
individual queue. -
I have a feeling that setting up some ‘Rules’ which trigger on save is the way to go, but it’s not something I’ve ever touched, and I’m hoping there
is another ‘less technical’ way of achieving this.