I have been having trouble using media mover to create a thumbnail from a node's file field, and saving it back to another cck field (see http://drupal.org/node/220207.

Part of the problem in troubleshooting this issue is that I am not sure if I am using the module correctly and I can't find any documentation on this to clarify.

When saving back to a CCK field, which field types are allowed? In my case, should I be saving to an image field, file field, a plain text field with the thumbnail's url or something else?

Cheers

Comments

Will White’s picture

Component: Documentation » Code
Category: support » feature
Status: Active » Needs review
StatusFileSize
new3.76 KB

This feature was marked as TODO. I've written some code that will save a thumbnail to a CCK imagefield. This allows it to be used with views, passed through imagecache easily, and sync'd with internationalization.

alex_b’s picture

subscribing

seaneffel’s picture

also subscribing

arthurf’s picture

A fix is now is now in CVS

Will White’s picture

Awesome! My patch works with imagefield so that you can use imagecache to manipulate thumbnails. I also plan to write some support for the filefield module so you can save encoded files in there. Does it make sense to take what is in CVS and build it out or is that just a temporary fix?

arthurf’s picture

I went with a straight node_save($node) with a switch for future types of CCK. I looked around for your imagefield patch but didn't find it- can you repost it here and we'll get it going?

Will White’s picture

Hey arthurf,
The patch is attached to the first comment. Here's a link directly to the file.

arthurf’s picture

StatusFileSize
new2.44 KB

I reviewed the patch and made some changes to how this works- I think using the node_save($node) function makes things a bit cleaner- can you try this out and see if this is working or you?

xcusso@drupal.cat’s picture

Version: 5.x-4.1 » 5.x-1.0-beta7

I tried to run your patch (included in the beta releases) and don't work.
I don't know if is only my problem or someone have the same issue...