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 csv parser and I want to pull it automatically via http fetcher. Currently I don't do this because the first row contains headers and the header values are not unique, so I always have to edit them for my mapping. In my case, the source data has two addresses, one for home and one for an office. The city, state, and zip fields are all labeled the same in the header: 'city', 'state', and 'zip'.
Is there a way in the mappings to specify the first or second occurrence of a particular field, or perhaps to just specify the mapping by position (ie, the 8th field)?
Comment | File | Size | Author |
---|---|---|---|
#1 | 2238001-feeds-tamper-keyword-filter.png | 67.5 KB | MegaChriz |
#1 | 2238001-feeds-numeric-mapping-sources.png | 106.39 KB | MegaChriz |
#1 | 2238001-feeds-csv-no-headers.png | 74.67 KB | MegaChriz |
Comments
Comment #1
MegaChriz CreditAttribution: MegaChriz commentedYes, this is possible.
To prevent the first row (the header) from being imported:
See also the attached images.