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.
If you have, let's say, 1000 nodes with one TableField in each, is it possible to populate all these nodes TableFields using one csv-file and the Feeds module? Any other suggestion?
Comments
Comment #1
bengt CreditAttribution: bengt commentedAnyone?
Comment #2
vaccinemedia CreditAttribution: vaccinemedia commentedWas this ever solved? I need this too with an e-commerce shop I'm trying to build. Each product has in a csv file a column each labelled spec1 spec2 etc with a corresponding column of value1 value2 and I'm hoping to create a single field:value pair field called "specifications" which can be imported using fields
Comment #3
stevenx CreditAttribution: stevenx commentedI would like his feature too.
+1
Comment #4
nattyweb CreditAttribution: nattyweb commentedThis would be a very powerful facility. If it's not in the plans, can anyone suggest how to implement this in another way?
Comment #5
nlambert CreditAttribution: nlambert commentedComment #6
vitalie CreditAttribution: vitalie commentedI think Feeds imports one row at a time. How does one stick a table into one row? Let's say one could use some special separator, how will one then easily produce an export?
Comment #7
robertwb CreditAttribution: robertwb commented@vitalie, I think this could be achieved by simply providing a serialized table in each row - since tablefield is just that. or perhaps as json.
Comment #8
jenlamptonIt wouldn't be too hard to create a custom feeds mapper that would export the contents of a CSV file, and map it to the appropriate place in the database. Unfortunately, I think it would have to be a custom mapper because where that CSV file divides into the separate nodes and where the data for the table field is sored is likely to be different for each person. It is possible that this module could provide feeds support that would serialize the data for storage, but your use-case sounds very specific.
Comment #9
robertwb CreditAttribution: robertwb commentedHow is this fixed? Sounds like "Closed(won't fix)"
Comment #10
jenlampton@robertwb as a support request, the issue is fixed when support is given. Since the issue turned into advice about custom code, it became a support request and not a feature request.
Feel free to change it back if you disagree! :)