This is an add-on module I wrote for node_export that handles exporting and importing nodes containing:
- CCK FileFields
- Upload module attachments
- Images, ie: image nodes
The code can do file exports in 3 modes:
- Local, using original upload path (unaltered)
- Local, with a copy of the uploaded file placed in a separate directory (eg: /sites/all/file-exports)
- Remote, file exports are done via URL and downloaded by the site importing the node
This code hasn't been tested very thoroughly! All feedback / patches welcome!
I have been mostly using Remote mode, so it should be less buggy than the rest :-).
| Comment | File | Size | Author |
|---|---|---|---|
| node_export_file.tar_.gz | 2.27 KB | James Andres |
Comments
Comment #1
danielb commentedI haven't tried it out yet, but are you interested in contributing this to the node_export project? Or would you prefer to start a seperate project?
Comment #2
James Andres commentedIf it is all the same to you, I think it makes sense to include this in the node_export project. Primarily because this module is a big pain point for most node_export users. It would be a hassle to download a separate module every time you used node_export.
Comment #3
danielb commentedYup no worries, when I get a chance I'll go through this, add it to CVS, and give you access to update it if needed.
Comment #4
James Andres commentedSounds good Daniel. Thanks for your assistance!
Comment #5
danielb commentedok I've added it in
I've renamed export.module to node_export.module and i've called your module node_export_filefield.module
so I hope this change doesn't cause too many problems!
If you need to update it you have CVS access now.
Comment #6
James Andres commentedGreat! I've got one more in the pipeline also, some integration with the Services module. I'll keep you posted :-)