Hi there,

I'm wondering if the task outlined in the issue title is possible. I inherited a site that uses text fields (sad face) for storing the relative URLs to audio and video files. I'm trying to get the Filefield Podcaster module set up, but it needs Filefields (naturally) to work.

So I'm wondering if there's a down-and-dirty way to say, "Hey Media Mover, here's a bunch of nodes. I want you to figure out what file the URL text field is talking about, populate the Filefield I've created for you, and then save the same node again."

Can it do that?

Thanks!

Comments

arthurf’s picture

Yes- you should be able to harvest from text fields with the cck module in the 6 version though I'm not sure how tested that is. The relative URL maybe a problem- you may have to do some trickery to do that. Alternatively the migrate module maybe able to do this for you. Or you can do this in code without to much effort. Given that this is probably a one time operation for you I'm guessing the migrate or code based approaches are probably better.

wizonesolutions’s picture

Really appreciate the response. URL trickery is no barrier :)

If you could point me in the direction of some reading/guidance on using Migrate or doing this in code, that'd be neat. I don't know much about how to save D6 Filefields manually. It does seem like it'd be pretty straightforward since I already know which nodes I'm dealing with...load, find the file based on the current path, save into a Filefield instead...just need one final conceptual push, I guess.