How can we select existing image for image field? - drupal

I need to select existing image for image field not new upload of image in drupal6X

The IMCE module lets you browse images on the server and select them for inclusion in your compose field.

Its very late but...here is the answer IMCE Filefield
Cheers!!!

There is also the ImageField Assist module. Inserting already uploaded images is as easy as clicking an image button. Some details about it (from its project page):
This module can use every single ImageField field added to any node in a Drupal 6 website, and uses ImageCache presets to display it.

Related

How can i add list(image) field in drupal 7?

I'm using Drupal 7 + Ubercart. Have to add a field with easy selecting from images (52 logo images of producers), that are already uploaded and will be used every time, when i'm adding new product.
Use Media module. From media documentation
Media provides a multimedia browser which allows a user to view and
search through all of the multimedia currently added to a site.
After enabling the module, go to your content type Manage fields page, and change the widget of your image field to Media file selector.
Screenshot for your field settings.
Screenshot for Media browser

custom module in Drupal 6.26

I am working in Drupal 6.26. I am developing a custom module, in which i am i want to upload file in node creation page. I want an option to upload image, like there should be file upload component and a upload button. So when admin select a file and click on submit button file has to get saved in a folder and need to save the path in database. After upload the image thumbnail should appear with remove button. When the admin clicks on remove button the image thumbnail should disappear and file upload component has to displayed with upload button. On save of the node, the image path has to map with node. This is similar to cck file upload option. Please help me to do this. Thanks.
this would be a complex form using AHAH (AJAX) behaviour to both get the thumbnail displayed and the remove button functionality.
I would recommend starting off by studying the File upload and CCK code so you can define simple form using the Form API and then adding to it some AHAH magic.
You can get a good example of a AHAH module in Drupal 6 here

imagecache not displaying preset images

i tried to configure my imagecache..installed n enabled the module..now i created a cck for images..and set its test mode display as thumbnail preset linked to the node..
now when i am trying to add content to it, its not displaying the content on the node page.
I solved problem,;) when I activated the "ImageAPI GD2" package under the ImageCache module activation form (admin site building).
There are a few things you can check:
Go to /admin/content/node-type/YOURNODETYPE/display and make sure the image field is visible both in teaser and full view.
Make sure proper permissions are set for the files/imagecache folder (the files folder is usually located in site_root/sites/default/)
Check if the image shows up when you are on the node edit page
To use image cache you need to check three things.
check right php extension(GD) is installed
check your folder permission(generally sites/all/files)
ckeck permission for the field is given for drupal

Add node CCK fields to a lightbox image?

I have a view with different nodes and an image with lightbox functionality.
I need to add some CCK fields of the node to the lightbox overlay. In other words, I don't want only the image to be displayed in the lightbox, but also some CCK fields of the current node.
What's the easiest way to do it ? Should I code it, or is there any module to customize lightbox ?
ps. My node is an Ubercart product. I also have Price, Order button, not only CCK fields.
thanks
I've solved by using the lightmodal option to include any html code and using "custom formatters" module to assign it to each image.
Successively I've edited my node.tmp.php file for being displayed in the lightbox.

Creating a new CCK field from an imagecache preset?

I have an image gallery for which I have configured an Imagecache preset. It's my first time using Imagecache so I am not sure if I am using it right.
Right now, I see that I can only configure the CCK imagefield to show me the imagecache generated image in either the preview or the full node version of the field.
I would prefer to have a new CCK field with the imagecache generated picture. Is this possible? Is there a module for this?
If it isnt, how can I customize my gallery view to show me the preview version of the image, instead of the full node version, which it is currently showing?
Assuming you have defined an imagecache preset called preview, you can create a view display of your gallery_image node type that uses fields rather than node view and selects the field content_name_of_your_image_field and set the display of this field to preview. If you want to turn this into a gallery, you can link this field to its node, and choose the Grid view style from the menu on the left.
I am guessing that you are probably about half way through these instructions already (unless you are using a horrid image gallery module to create your image gallery).

Resources