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 file with 4 headers, and I want to use header #2, this can't be done right now. Has created a patch that allows to choose header size and active header.
Comments
Comment #1
logaritmisk CreditAttribution: logaritmisk commentedComment #2
logaritmisk CreditAttribution: logaritmisk commentedThere were a issue when you only had one header row. Should be fixed in this patch.
Comment #3
logaritmisk CreditAttribution: logaritmisk commentedFix strict error.
Comment #5
twistor CreditAttribution: twistor commentedDo you mean 4 rows of headers?
Comment #6
logaritmisk CreditAttribution: logaritmisk commentedThis is how my CSV file looks like. And it's the second header row that is the "correct" one.
Comment #7
dbassendine CreditAttribution: dbassendine commentedHere's a enhancement (I would say) of #3, where you can set the number of headers and the active header by typing the number in a text field, rather than picking from a dropdown that's limited to 1-10. I found my csv had 58 (!) header rows and the active header row had to be #55 (http://scrippsco2.ucsd.edu/data/in_situ_co2/monthly_mlo.csv).
I really wanted to avoid having to preprocess the csv, as I wanted to pull from that URL regularly. This seems like a sensible change for me, any thoughts?
Thanks, David