First merry Christmas ;)
I am voluntarily duplicating issue http://drupal.org/node/650958 because I am struggling with having the module work and I think it is critical to get some explanations laid out to make this module further known and exposed.
I am willing to write a wiki page or some doc about it to help other people get it to work.
I think this module is a sleeper and should be much more known, helped and pushed up, it is a killer feature.
If we can have our content editors, using just a standard browser, drag and drop images and files into the text (in an editor) and have the image uploaded to a given repository associated with the node (token-node and filefield)., and the image ends up inserted into the editor and the other file types linked in the document ... WoW.
One of the last "incomprehensible" things for most "users" would be gone (I.e : "I need to upload beforehand, and then pick up the image in that box ?").
You have done an awesome job of bringing the functionality into Drupal.
This is what I did on a clean site:
- Enabled CCK-filefield and nothing else (well, administration menu too)
==> at that point and till a content with a supported cck field is created D&DU throws a warning repeatedly
- Created a new content type with a filefield, allowing unlimited repetition
- Got back to the content type and in the D&DU options I set up the filefield as drag and drop, at that point in time the outputs availiable are generic file, path to file and url to file
==> what does those settings truly means ? I can guess about path to and url to file but generic file ?
Then from a supported browser (for instance google chrome) I am able to drag and drop a file on the filefield area and have the file uploaded.
=> So basic functionality seems to work ok.
Now I enable the WYSIWYG module and associate tinyMCE with the filtered html filter.
Going back to my CCK type definition I still have the same output offered.
===> Drag and dropping on the editor frame does nothing (except put the "file:\\" url inside the editor like it does by default, but no upload and no linking)
Reading issue http://drupal.org/node/650958, I activated lightbox2
==> why is lightbox2 needed ? since it is a presentation module, or is it just to add the css tag it need to the inserted pictures ? For your information lightbox2 cause lots of trouble on many sites by the way by turning every links into "empty lightbox".... not a D&DU issue but good to know that it would be nice to NOT have to use it :)
I now have more possible outputs in the D&DU parameter box in the CCK type I created but it was of course still not working ;)
I also enable ImageCache and created a preset, and I got load of new options in the parameter box but I still could not D&D into my editor frame and get the "expected behavior".
Since the demo site is down at the moment I am not sure about that "expected behavior" though :).
It is a bit late here so, I'll go back to it with a clean head tomorrow, but I am willing to investigate and produce some working documentation if I can be helped to have that working.
Thanks a lot for your time on this module anyway and thanks for the support.
Comments
Comment #1
Annakan commentedI made further tests and was able to get it working, with caveats.
I will had further informations soon, i need to do some more tests to isolate the "facts".
Comment #2
Annakan commentedDndU => Drag aNd Drop Upload
PLEASE check your use one of the supported browser as indicated on the DnDU project page, you may want to avoid a browser supported through GEAR for testing because you'll then have to configure gear on the client and module site, something simple BUT another layer of complexity, always a BAD idea for testing. As of now : firefox 3.6 or a webkit browser : chrome or safari
Here is the minimal way I found of having DnDU working without wysiwig (to check you have it right)
Quirks you may want to know :
For now, when the cardinality of the DnDU widget is reached (if you for instance set the "repeat" property to the field to 1 or 2 and you already uploaded 1 or 2 files throuhg it), DnDU disable itself and so dropping a file will result in your browser interpreting it the way it does usually : display an image, open a video through the associated handler on your system, etc ...)
Comment #3
Annakan commentedDndU => Drag aNd Drop Upload
PLEASE check your use one of the supported browser as indicated on the DnDU project page, you may want to avoid a browser supported through GEAR for testing because you'll then have to configure gear on the client and module site, something simple BUT another layer of complexity, always a BAD idea for testing. As of now : firefox 3.6 or a webkit browser : chrome or safari
Here is the minimal way I found of having DnDU working WITH WYSIWYG (to check you have it right)
Quirks you may want to know :
how to have an uploaded image inlined and displayed inside the WYSIWYG area
<img>tags, you can see it in the editor. And if you let the upload field visible you will see it added there also, the link in the editor point to itComment #4
decipheredHi Annakan,
Thanks for the time you've put into this. I will give this a read over and try to determine what could be interpreted as issues to be fixed and what is instructional content. I am clearly to distanced to realize how much is involved in setting up this module, as for me I can get it working in seconds with no problems.
Once I have looked through this all I would be more than happy to work with you on making some simple foolproof instructions to be provided via the module README.txt and a doco page linked from the project page.
Cheers,
Deciphered.
Comment #5
Annakan commentedNo problem, I planned to come back to the instruction myself to read them again with a "cold" eye.
I like to use by beginner eyes for such things because clearly, after a while it is hard to see what can puzzle a new or even envision what kind of weird assumption one can make, believe me I had weird ones :)
No problem with helping write such a doc, would be a pleasure.
Comment #6
hixster commentedHi Annakan,
Can you provide clarification on how DnDU integrates with the WYSIWYG - from your instructions in post #3 it is not clear how just by enabling a filefield to accept uploads , the image makes its way into the WYSIWYG editor. I can't see any difference in the configuration between #2 and #3?
I have set up DnDU and it works for a filefield, but dragging files into the WYSIWYG text area does nothing?