Awesome module, I have to say again. Well, what I'm looking at is the following: I have an imagefield using image fupload. I have a Taxonomy that goes into the content type and of course there is a title. Every image is stored as a single node. Taxonomy and title CAN be different for every image. The workflow is now like this:
- Select images
- upload images
- Then I have to adjust the title and taxonomy on every single image, even though a lot of the images go into the same taxonomy.
What would be very cool: Keeping the taxonomy and title selector in the create image form. So the user can select default values. When clicking "next step" every node would already keep these default values. This way the person only needs to change the fields which are different. I think this would make things soooo much easier.
What do you think?
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | image_fupload.patch | 4.94 KB | rapsli |
| #6 | image_fupload.patch | 4.73 KB | rapsli |
| #5 | image_fupload.patch | 3.2 KB | rapsli |
Comments
Comment #1
rapsli commentedsorry, wrong module...
Comment #2
grandcat commentedThis wouldn't be difficult to fix. The problem I see is, that you will have the same fields in the default form and also in the preview list form. This could be a bit confusing for some people.
If you want to have a work-around at the moment, just have a look at the function "form_fields_destroy" in "image_fupload_imagefield.module". There, you can comment out the code, so no fields will disappear. Nevertheless, I'm not sure if some validation will turn crazy, but I don't think so.
Have a look.
Comment #3
rapsli commentedThanx. This should probably work. I though encountered an other problem, which I will describe in a different issue
Comment #4
rapsli commentedtried it. It works asfar as the form appears on the page where I can submit the pictures and the form appears again on the 2nd page, where I can edit the fields. The problem though is, that the default values are not being submitted. I checked the content of $form_state in the function fupload_list_images_imagefield() -> It doesn't contain any values from the previous page :(
Well, I figured it out now. The patch I commited contains the following changes:
- Takes default form values for taxonomy
- Takes default form values for the body field
- makes sure the taxonomy form appears on the 2nd step page (same patch as here: http://drupal.org/node/505046)
I hope this could make it into the module
Comment #5
rapsli commentedand here the patch
Comment #6
rapsli commentedOky, there's another fix -< Prevention of saving the same taxonomy terms in the node -> MySQL will then complain that there are multiple keys with the same value.
I was thinking about integreting this patch properly. In the edit form of the widget could just be an option checkbox field, where the user can choose to have these proposed default values. I think this option would be really great! I'm sure I'm not the only user who would appreciate this functionality.
added the new patch.
Comment #7
grandcat commentedThanks for your efforts done so far. The second patch depends on the first one, but this first one isn't a standard patch file.
Please, could you create a patch file as a diff to the head version in CVS? This would be really nice.
Comment #8
rapsli commentedactually the last patch should contain all the changes. Is there a difference between head and the latest version? Else let me try again my linux skills and make a nice patch tomorrow, if the latest one (#6) doesn't work
Comment #9
rapsli commentedoky, this latest patch should now work agains head.
Comment #10
wuwei23 commentedI applied the patch, but I'm having trouble with the HEAD version of Image FUpload insisting that the title/filename field is required, which isn't the case with 6.x-3.0-rc2. Is anyone else finding this (or have I missed something obvious)? This happens in the pre-patched HEAD as well.
(The data entry team for the project I'm working on are incredibly naive tech users and I'm somewhat dreading having to explain to them that yes, the defaults are there, but no, you can't see them so you'll just have to remember what you entered...)
Comment #11
skizzo commentedCurrently I am using cck 6.x-2.6 and image_fupload.6.x-3.x-dev (CCK submodule only).
Setup: one image per node, both image_fupload permissions granted.
Editable fields: Title (Node) and Title (ImageField)
Title text settings: Enable custom title text, default title field is left empty
I would like to have node titles set by default to filename
Currently default title works only for Imagefield Title (not for Node Title).
Patch #9 does not apply cleanly to current version of 6.x-3.x-dev
patching file image_fupload_imagefield/image_fupload_imagefield.module
Hunk #1 succeeded at 529 with fuzz 2.
Hunk #2 succeeded at 576 (offset 3 lines).
(Stripping trailing CRs from patch.)
patching file includes/images.previewlist.imagefield.inc
Hunk #2 FAILED at 47.
Hunk #3 succeeded at 67 (offset 2 lines).
Hunk #4 succeeded at 178 (offset 2 lines).
Hunk #5 FAILED at 333.
Comment #12
rapsli commentedsome time has passed since I last created the patch...