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 cannot found a solution for creating a token that represents the field delta. I want to rename filefields in this way: [nid]-[delta].zip where delta is the "0" based position of that field inside a multivalue.
Comment | File | Size | Author |
---|---|---|---|
#2 | filefield_paths_delta_token.patch | 4.06 KB | Frando |
Comments
Comment #1
Einkahumor CreditAttribution: Einkahumor commentedI'd love to be able to do exactly that! Doesn't seem to be in high demand though...
Comment #2
Frando CreditAttribution: Frando commentedHere's a patch for the D6 version of filefield_paths that adds a delta token. Implementation is a little hacky, but we needed this to work quickly.
Comment #3
hansfn CreditAttribution: hansfn commentedI would have loved this too - for the 7.x version.
Comment #4
emilymoi CreditAttribution: emilymoi commentedSee #2386655: File field delta token
Comment #5
Deciphered CreditAttribution: Deciphered commentedNo longer supporting Drupal 6 issues for this module.