Hi!
When creating 2 (or more) "download all files" fields for one content type, it uses only one name (I think the first one) for the zip-files.
I've also tried to archive different zip-files name with only one field and multiple instances without any luck. I couldn't find any good token to use (I have applied the patch...). Anyone have any idea how to fix this?
Best regards,
Mats
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | multiple-download-fields-need-separate-paths-1919104-4.patch | 2.09 KB | queenvictoria |
Comments
Comment #1
30equals commentedYep, you're right. The filename gets overridden by the next one.. I'm looking into it further, and hope to provide a fix shortly!
Thnx for reporting it.
Comment #2
queenvictoria commentedI'm about to look at this. Any movement @30equals?
Comment #3
30equals commentedNo movement yet no.... didn't have any time to look into this.
Comment #4
queenvictoria commentedThe issue is that the paths for each of the download link fields are the same (neither nid nor delta vary). How about this? Add the field_name into the path and check for it when building the zip archive? See attached patch.
Comment #5
queenvictoria commentedComment #6
queenvictoria commentedComment #7
30equals commentedLooking good, tested by myself, committed to DEV : http://drupalcode.org/project/download.git/commit/797f5f6
Thanx!