- Issue created by @chrisck
- 🇩🇪Germany jurgenhaas Gottmadingen
This should certainly be possible, assuming that the datafield module prvcides their data in a format that's accessible with tokens.
The way to do this:
- Event: pre-save content entity
- Get the values from the datafield field into a token
- Create a loop to go through each value in that list
- For each value, try to load a taxonomie term with that name. If it doesn't exist, create a new one
- 🇨🇦Canada chrisck BC, Canada
Thank you Jurgen! Datafield does have tokens available, so my feeling is this would work perfectly.
- 🇩🇪Germany jurgenhaas Gottmadingen
OK, so waiting to see if that solves your support request.
- 🇩🇪Germany jurgenhaas Gottmadingen
@chrisck have you had a chance finding out if this resolves your issue?
- 🇨🇦Canada chrisck BC, Canada
Yes, the approach you’ve suggested is working for me. I’ve had to abandon the data field module in favour of custom field module. You may close my support request, thank you!