I have been struggling for over a month trying to get this project finished and there is ONE thing that there seems to be no way to do:
Select an image.
I upload the images to the site using the image module and it creates nodes for each image.
It should have been simple, select the node with CCK, but CCK is hopelessly broken when it comes to selecting things.
So I rewrote it to use Flexinode... it doesn't handle images (it promises to but has fatal bug(s)..
So after a long struggle with trying to find a reasonable solution, I have been forced to try to write a module, however, I get to the part of selecting an image and once again... stuck.
There is allegedly an image api but I have not found any documentation. I have searched with any combination I can find, using the built-in "search" of Drupal.org and Google and others. I have even resorted to just spending hours manually scanning all recent posts (since there is no way to search Drupal.org by date).
If anyone has any documentation on selecting an image in Drupal PLEASE post a link.
Comments
upload.module and inline module
You need nothing more.
inline does not only do the [token] stuff, it has a very nice, themable autoinliner.
---
Professional | Personal
| Sympal: Development and Hosting
Thanks but upload is not what I need
Thanks but I am not looking to let users upload an image, they need to select an image.
The purpose of this module is to let them proof what the contents of the rest of the form will be with several optional backgrounds. Users are not permitted to upload their own images.
There is actually a module to let you attach an image to a node, but it uploads an image, not selects one.
Image_attach
Have you tryed out the Image_attach module, a contrib in the Image package?
It let's you upload an image (only one for now!) to any enabled content-type, taking care of thumbnail/preview and teaser generation.
Actually looks to me like the most straight-forward and stable image-dealing module.
Upload_image is also very nice and styles well, but it opens your nodes to uploads of any kind (files, documents) and and number (you can uload also 20 pictures to a node).
as always, depends on what you need....hope it helps
You can also use the
You can also use the imagefield module to enable images for cck.
I tried this one but...
It lets the user upload an image but not attach an image from the library.
Another user was gracious enough to send a module that gave some clues, it was a custom module as a filter to attach an image to a node.
If there was only some documentation on the image module somewhere I might figure this out.
Besides, it turns out that the whole CCK is still unstable (lots of error messages) and not usable. Select boxes are esential and the image module is very experimental (it is still in the developer's sandbox). I have been forced to write a module.
Alas... tried IMAGE_ATTACH too.
Unfortunately, it uploads and attaches the image.
I need to let the user select an image then use it as the background for previewing the rest of the form.
I just need to be able to select an image, not looking for a complete solution.
So old a message!
I am hoping that as this thread is so old that its now possible to allow the user to select certain images when creating new custom content.
I've been searching and this is the closest I've found, no answer though!