key_value_feed_ext
INTRODUCTION
The Key Value Field Feeds Extension module provides integration between the Drupal Feeds module and the Key Value Field module (key_value_field). It exposes Feeds target plugins for importing data directly into fields of type key_value (plain text) and key_value_long (formatted text).
REQUIREMENTS
This module requires the following modules:
- Feeds (https://www.drupal.org/project/feeds)
- Key Value Field (https://www.drupal.org/project/key_value_field)
INSTALLATION
Install as you would normally install a contributed Drupal module. See: https://www.drupal.org/docs/extending-drupal/installing-modules for further information.
CONFIGURATION / USAGE
Once the module is enabled, two new target types will be available in your Feed Type mappings:
-
Key Value (Plain Text) Targets the
key_valuefield type. Exposes the following sub-properties for mapping:- key (reqired, indexed): Can be marked as unique to serve as a de-duplication target in the feed type configuration.
- value: The plain-text value.
- description: An optional free-text description.
-
Key Value Long (Formatted Text) Targets the
key_value_longfield type. Exposes the following sub-properties for mapping:- key (required, indexed): Can be marked as unique to serve as a de-duplication target.
- value: The formatted-text value.
- description: An optional free-text description.
Additionally, the
key_value_longtarget plugin provides a mapping configuration settings form. When adding this target in the Feed Type UI, you can click the settings gear to configure the "Text format" (e.g., Basic HTML, Full HTML) that will be applied to the 'value' column of every imported item. Empty keys are skipped automatically during import.