Hello
I use cck and imagefield HEAD with drupal 5.0-beta1, but I can't get it working :
- I have an imagefield (optional, unique) on a "link" content type
- when I edit the node, if I put and image and click on "update", I get it successfully uploaded to the server but displayed twice
- when I submit the node, the image doesn't appear, the
is empty
- if I try to edit the node again, the imagefield is empty
- if I try to edit the node again, the imagefield is empty
Any workaroud please ?
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | imagefield_info.patch | 784 bytes | quicksketch |
| #2 | imagefield_1.patch | 1.48 KB | quicksketch |
Comments
Comment #1
dopry commentedDo you have any additional information?
Is the file on the server in the files folder?
Is there a database entry for the file?
Do normal uploads work for you?
imagefield hasn't been branched for DRUPAL-5 yet, and has just been ported to the DRUPAL-5 API. I still need to update the module to work with cck. Feel free to have a hand at it. I won't be putting a lot of effort into it until CCK is stable on DRUPAl-5.
Comment #2
quicksketchHere's a patch which gets imagefield working with Drupal 5 / CCK HEAD. It solves the duplicate image problem and adds dependency checking to the .info file. The "Delete" checkbox is not working still with this patch, which also is not working in the 4.7 branch. A separate patch will be required for that problem.
Comment #3
quicksketchComment #4
dopry commentednot quite the right fix. there is a bug in content.module, content_form_alter calls content_form twice, which means the file data gets prepped twice. The session stuff also seems to almost be working now. I will revisit this when one of the other cck committers has had time to commit the form_alter patch.
Comment #5
quicksketchRight you are. I found that this patch doesn't work for multiple field types. I've got a much better patch coming for issue #73174 which should incorporate the necessary changes there (it's all related).
Comment #6
quicksketchFull compatibility for Drupal 5 is included in the patch for issue #73174. However, the info file still needs to be updated to include the dependency checking. Here's a trimmed patch with just the info file changes.
Comment #7
dopry commentedhrm... I patch my local repo, but forgot to commit this hrm...
Comment #8
(not verified) commented