Hi, this probably won't be needed since http://drupal.org/node/731992 exists, but what the heck.
I needed the separator to work for filefields when I had a list of file paths & names string separated, ie /pics/001,/pics/002 & the 'string separator' set to ',' - not very elegant, but it might be some use to someone else in a similar situation.
note that i don't check to ensure the filefield will accept multivalues
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | filecomma.patch | 2.22 KB | eileenmcnaughton |
| filefield.migrate.patch | 2.17 KB | espe98 |
Comments
Comment #1
espe98 commentedComment #2
eileenmcnaughton commentedHi,
I just wanted to note that this works for me and I don't think it is superceded / replaced by the item you referred to as this allows a code free migration of multiple files / images in the same way the taxonomy support does. The other patch requires that you also write a hook.
I would like to clarify your comment:
the 'string separator' set to ','
- the string separator is set to the string separator configured in your migrate settings (',' by default). Obviously this is better than having it hard coded to ",".
Comment #3
eileenmcnaughton commentedHi,
Just edited this patch & re-attached it. The edit is extremely minor
--- filefield.migrate.old 2010-04-02 00:56:14.000000000 -0400
+++ filefield.migrate.inc 2010-04-02 01:03:20.000000000 -0400
to
--- filefield.migrate.inc 2010-04-02 00:56:14.000000000 -0400
+++ filefield.migrate.inc 2010-04-02 01:03:20.000000000 -0400
so that the patch can be easily applied. This applied cleanly to the latest dev for me
Comment #4
mikeryanAs with #731992: multi-value filefields, Migrate and Migrate Extras V1 are no longer supported.