The Feeds Tamper module is a module that enhances the Feeds module by allowing you to add tamper plugins to your importer that you create in Feeds. Adding a tamper will allow you to treat and pre-process your imported data before it actually populates the Drupal database and your nodes. Tamper can be used to do things including but not limited to the following:
Add a required field filter to your import process
Decode and encode HTML entities
Strip HTML tags from the import
Explode and implode lists of data
Format numbers
Convert case
Convert boolean values
Find and replace data upon import
Trim and truncate data
This module will be helpful to use when we want to import multiple values into a Node Reference or Term Reference field in our content type. We can add a pipe in place of a comma for instance across our entire imported data.
To install the Feeds Tamper module follow these steps:
Download the latest version of Feeds Tamper from http://drupal.org/project/feeds_tamper. The latest version is 7.x-1.0-beta3.
Install it as you would any Drupal contributed module.
Once installed, enable the Feeds Tamper and Feeds Tamper Admin UI modules on your module's admin screen in the Feeds fieldset section.
Once enabled, you can access the Feeds Tamper configuration by first returning to your Feeds importers screen and then clicking on the Override link next to an importer.
Once the actual importer configuration screen loads, click on the Mapping link at the bottom of the navigation block in the left sidebar.
When the mapping screen loads, click on the Configure Feeds Tamper link:
This will launch the Tamper plugins screen, which will look similar to the following:
From this screen you can add your tamper plugins. We'll be doing this in Chapter 4, Feeds Tampers.
We now have all of our Feeds modules installed and enabled and we're ready to start building our content type to hold our imported data. Once we have our content type built, we can return to the Feeds module and use it to build our importer for our migration process.