- Issue created by @lissy
- Status changed to Fixed
11 months ago 10:07am 23 May 2024 - 🇳🇱Netherlands megachriz
It sounds like that your issue can be resolved with the "Rewrite" plugin. You can then type in something like
372145[field]
.If you need more advanced transformations of data, you could use an event subscriber in a custom module that acts on the parse event. The process of how to do that is described on https://www.drupal.org/docs/contributed-modules/feeds/feeds-howtos/alter... →
It is discouraged to have PHP code in the database or in config files as that could have a potential security risk. That being said, in some situations it could be practical, for example when you are tight on a deadline. But I think I don't want such plugin to exist in the Tamper module itself, for security reasons. For D7, this plugin was also in a separate project: https://www.drupal.org/project/feeds_tamper_php → . You could ask there if they want to port the project to modern Drupal, if you find that you more often would need it.
- 🇩🇪Germany lissy
Hi MegaChriz,
Thank You very much.
I could solve a few tasks, i former solved with execute php-Plugin now with Rewrite and with Find replace-Plugin.
For a more complecated task i will use the event subscriber i a custom module.
It is the right way. Automatically closed - issue fixed for 2 weeks with no activity.