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 have a file field on my node-type with custom fields. Is there some way for the custom fields to show up as Mappers?
Currently I only see URI and description for the file field.
Comments
Comment #1
rovoComment #2
MegaChriz CreditAttribution: MegaChriz at WebCoo commentedYes, in a custom module you could implement the hook
hook_feeds_processor_targets()
orhook_feeds_processor_targets_alter()
See the documentation: https://www.drupal.org/node/622700#mappingapi
See also feeds.api.php for implementation examples.
The filefield's "URI" and "description" targets are implemented in /mappers/file.inc. You could take that as an example.