I have installed the latest D7 alpha, activated image, file, field ui modules etc. I have created an image node for upload of images and, for test reasons, also added images to a couple other content types. As D7 core offers no good way to display inline images in node body fields, I then installed the Insert module. (Under dependencies, btw, the readme still lists "FileField" and "ImageField" modules even though that functionality is now part of the core...)
Unfortunately, the module does not seem to do anything. No matter what type of field I configure, there is no "new section in the Field options for "Insert"" as outlined in the readme.txt. Am I missing something really obvious here or does it just not work with D7 alpha5?
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | insert-rename_object_type_to_entity_type.patch | 1.4 KB | dman |
Comments
Comment #1
quicksketchIt probably doesn't work (again). API changes keep breaking my Drupal 7 module ports. :P
Comment #2
dman commentedI see your pain. I thought I'd try it out and help testing, but gah.
First experience, Just enabled todays dev version of insert against a CVS HEAD of D7
drush dl insert-7.x-1.x-devVisited the edit page for the content (article) that had a multiple 'image' field available.
The fieldset where the images used to be was empty! Dang.
Righty. look over at the settings, which are ... oh yeah, field settings for the content type
admin/structure/types/manage/article/fields/field_images... undefined indexes are pretty common for settings that have never been saved, so not too worried there.
But I DO see the insert widget settings there in a collapsed fieldset under 'Preview Image Style'. Good?
So tick "Enable an insert button", "Default" and save.
Back to the content edit and...
:-(
Nope. An empty fieldset where the files used to be.
I know the API instability you are fighting with, so all I can offer is my unhappy test results for now. Not sure where to start debugging the new system, I guess there is a new way of doing form_alter, I can't see it in the code. Time to learn...
Comment #3
dman commentedOMG, I did it!
Not as much agony as I expected.
Comment #4
dman commented(The extra comment there was unintentional to this patch, but useful I guess)
Comment #5
quicksketchNice one! I'll take a look at this next time I'm working on Insert.
Comment #6
quicksketchLooks like this was the same bug as #792024: Form error after installing on drupal 7.0-alpha4. I've committed the patch from there, which fixed a few more places than those included here.