The ImageField module provides an image upload field for CCK.

learn more… | top users | synonyms

0
votes
0answers
14 views

field_attach_form: multi-image is not working on ajax

I am using custom form and in a fieldset I am assigning field which is from content type I get by using field_attach form. When I attach it directly it is working fine. But when I use it attaching to ...
0
votes
0answers
22 views

Calls wrong image file path

I have simple Image field, its file path is set to field/image so when you upload a file, its path is something like /sites/default/files/field/image/image.jpg. But when I create content and upload ...
0
votes
0answers
11 views

I am using a custom module that inputs the user profile image into apache solr index and then I use it on a view but the image doesn't show

I have created the following module and I have managed to input sm_field_main_image into a view. However, the user profile image does not appear. Does anyone know where the mistake is? Thanks in ...
0
votes
1answer
23 views

Custom image style used on image upload causing errors

The site is running in a Windows Server environment. I have a custom content type, which has a single "image" field. I have created a image style, called "slider" with the dimensions 800x480 Images ...
0
votes
1answer
9 views

How to change image size and position when uploading to article in tb_rave_starter

I want to change image size and position How could this be done, please help me.
0
votes
0answers
27 views

Radiobuttons next to an image

I'm doing a multistep form and I need to add images next to radio buttons. The radio buttons has the description and the image show what is the option. Now I have the radio buttons list Now I ...
1
vote
2answers
31 views

Display image field from nid

I'm trying to print the image field from a node using the nid in the url. $nid = $_GET['field_item_request']; Is there a specific way to do this?
0
votes
1answer
33 views

DB Error after upgrading D6 to D7

I upgraded a Drupal 6 site to Drupal 7. After upgrading, everything works fine. I had migrated all the content types and content. I am able to view all the content. When I edit or add a content which ...
1
vote
2answers
61 views

How to create similar to multi-image field struture in drupal using form api

How can I make a structure like adding new textfield with a button and removing that field with remove button. The structure generated should be similar to when we upload a image in multi-image field ...
0
votes
1answer
18 views

Add class on cck image field(img tag)

I want to add a class on cck image field output img tag, not on field wrapper div. How can i do it?
1
vote
1answer
28 views

Add title and alternate text to image automatically?

I am building a site using drupal 7. In my site user can upload content and also images. My goal is that when a user is uploading content to the site, and also an image - the title of the content ...
0
votes
0answers
40 views

Unsafe to use NFS to share sites/default/files between many Drupal instances?

If you have a high-traffic website backed by multiple Drupal instances, you may want to have a dedicated file server that hosts sites/default/files, and somehow share that between all those Drupal ...
0
votes
2answers
49 views

How do I iterate through images using file_create_url()?

I am trying to add Lightbox feature to images. This is the code I used in the node template. <p> <a class="lightbox" href="<?php echo ...
1
vote
1answer
52 views

Image style doesn't rebuild after image style flushed

I have practically the same problem as here : https://drupal.org/node/2187443 I've flushed my image style because I edited this image style. Now when I reload the page where the image style should be ...
0
votes
0answers
11 views

Uploaded image attributes

I'm new to drupal and I'm using drupal 6 I want when I upload an image using imagefield to display its width and height in pixels the only thing that appears after uploading is the image thumbnail, ...
2
votes
3answers
112 views

How to save the image of a node to the custom directory programmatically?

I have a cck image field and I have the "uploads" directory in the files folder. I want the images of these nodes are saved to the directory with the name of the node id and then the image file. ...
0
votes
0answers
20 views

Display Image Path in Template

How do I output the path of an image inside the field.tpl? I want to modify field--field_portductimage--produkte.tpl.php to get an output like this: <a href="trainer1big.jpg" class="MagicZoomPlus" ...
0
votes
1answer
29 views

How to set alias url for image address in a content type?

I added an image field for a content type and its directory is /content_type_image. it works correctly but when I add a content to this content type the uploaded image url on the website is ...
0
votes
1answer
22 views

Adding a link to download the original image to a view

I would like to add at the end of the description a link like saying "Download HiRes Image" at the end of the caption of the image in this view, but I don't know how. I did try with the module ...
0
votes
1answer
48 views

Does “Maximum image resolution” resize before saving on the site?

I am building a site using Drupal 7, in which users can upload content and images. When I set the "Maximum image resolution" (on the core image field settings) to be, for example - 800x600. Is ...
0
votes
1answer
20 views

Is there any way to alter the “field type” of a field?

I need to change the field type "file" to "image" in drupal 7. I just hack the database and found a table named "field_config" and modified the "type" and "module" column, from "file" to "image". I ...
2
votes
2answers
118 views

Upload zip & unzip to multiple image field

I am using drupal 7 and I want to upload a zip file and automatically extract it into multiple image fields on a node. The zip file contains images. Is there a easy way to do this? cause I'm not a ...
0
votes
2answers
95 views

Rollover image swapping as a field

I'm learning Drupal and I'm trying to create a field where I can upload 2 images and let one face into the other while I mouse over/ hover / rollover it. Then I eventually plan to make it into a views ...
0
votes
1answer
68 views

Bulk import images & create nodes

Is there a way to bulk import images from server and auto create nodes for each image? this is for Drupal 7
1
vote
3answers
151 views

How to add an image field to a programmatically created form?

Basically I want to create a block with my module which's edit page has a few content fields and two image upload fields. When visiting the node where this block is rendered, I want to render the ...
0
votes
1answer
24 views

How can I override images on migration?

I'm migrating images from URLs and I'm mapping the image field with this code: $this->addFieldMapping('field_image', 'titlePhotos') ->xpath('/photo/@URL'); ...
0
votes
0answers
29 views

how to theme images uploaded with multi-value field?

I have a multi-value image field. Now I want to theme it based on the number of the uploaded images. if there is one image { //theme here } if there is 2 image { //theme here } And so on. I'm ...
0
votes
0answers
9 views

Lightbox2 module Rewrite Output as link

With the view module I am trying to rewrite the output as a link for the lightbox2 module. THe reason is, I am using Adaptive Image for the Image formatter. Here is what I have right now: Link Path: ...
0
votes
0answers
31 views

How to add a CSS attribute to Image

i need to add class to image. so i have 3 column in my site. each column have block for news, i need to add class for each images. first class is .imgsmall {width:355px; height:125px;} second ...
0
votes
0answers
30 views

Get a Image URL token

I'm using the metatag module, with opengraph and twitter cards submodule. When i compile the form, both twitter and open graph ask for an image url that now i have to insert manually. I donw't know ...
0
votes
0answers
30 views

Content type custom field not working

I'm trying to move a drupal 7 install from one server to the other. I'm able to move the files and export/import the database fine. After tweaking settings and clearing caches the site displays fine. ...
1
vote
1answer
89 views

how to check if the image field is empty or have uploaded image?

<?php $nid = arg(1); $path = arg(0); $node = node_load($nid); if(isset($nid) && is_numeric($nid) && isset($path) && $path == 'node' && isset($node) ...
1
vote
1answer
347 views

How do I preserve GIF animation with the image field and image styles?

Currently, when I upload animated GIFs to image fields, image styles breaks the animation as part of the crop/resize sequence. I'd love to be able to preserve animation while also taking advantage of ...
1
vote
2answers
57 views

Print image filed on basic pages only

<?php $field = field_get_items('node', $node, 'field_page_cover_image'); if($field){ $theme_img = file_create_url($node->field_page_cover_image[$node->language][0]['uri']); ...
0
votes
1answer
23 views

need path of an image created using an image style [duplicate]

<?php $node=node_load(3); $theme_img = file_create_url($node->field_theme_image[$node->language][0]['uri']); //origional image path print $theme_img; ?> I am trying to load an ...
0
votes
1answer
14 views

show uploaded image in page.tpl

I created a content type and added an image filed (machine name: field_theme_image). Then, I've added a new content in this content type and uploaded an image. Now, I want this image to be shown in ...
0
votes
1answer
29 views

Image redirection problem

I have created a product teaser using views and included images as one of the fields (by including *(Products referenced by field_product) Field: Images* ). In the settings for " (Products ...
0
votes
1answer
81 views

Issue uploading Images

I have a Drupal 7 site that runs on Windows 7 and SQLServer. Recently, when users try to upload pictures or files they get an error message: File could not be saved. An unknown error has ...
0
votes
1answer
176 views

Upload picture in custom register form

I'm building a multistep register form in a custom module. I'm using profile2 module to save other custom fields. I want to let the users choose an image from their computers. This is the code that I ...
0
votes
2answers
233 views

How to get correct url path of image field

I'm trying to print out the url of an image field using this method so I can render my own html for an image like this: <img src="<?php echo $field_company_logo['und'][0]['uri']; ?>" ...
3
votes
2answers
141 views

How can I make a user choose male or female and keep a default image on a specific content?

How can I make a user choose male or female and keep a default image on a specific content? I mean I want two defaults pictures (for male and female), but only for default image in case user want to ...
0
votes
0answers
100 views

How can I have different image size for a content type

I have 3 type of products that I want to put their image in my site. I have define a content type for them. there is a field that I put the image of my products and I've use imagefield crop module to ...
0
votes
0answers
35 views

How to apply image style to a Media based field based on taxonomy term?

I have a view with a Media field and some others. I want to apply an image style to resize the image based on a term (big, medium, thumbnail) exposed from a Term reference field. Do I have to ...
0
votes
1answer
60 views

CSS to define where a image is located on each Node

Short version: How do you use CSS to define where a image is located on each Node? I AM NOT TALKING ABOUT IMAGE STYLES: https://drupal.org/documentation/modules/image#styles Long version of my ...
0
votes
0answers
14 views

Convert gallery assist content to views gallery

i did used gallery assist module to create galleries on my earlies websites.Since, i use a systmen based on CCK, views and views slideshow. So i would to "convert" olders galleries to my new system. ...
0
votes
0answers
19 views

Add image rotate option for Profile2 image field [duplicate]

I'm using Profile2 for users, and there is Image-field for user profile picture. I noticed that it is very common to users to have picture which is taken vertically. And when they upload image to the ...
0
votes
2answers
28 views

Add custom link when using field_get_field

I have an image field on a taxonomy term. I am retrieving it via field_view_field and render it afterwards to display it. But I would like to give it a custom link. How to do this? Do I need to make a ...
2
votes
1answer
784 views

How to use content type tokens File path in file and image field?

I want to have one field for header images, but sort them by type of content. Sadly, when I try to do that, I get: The File directory is using the following invalid tokens: ...
0
votes
1answer
339 views

How can I make Plupload in D7 start uploading automatically?

I'm using Plupload module https://drupal.org/project/plupload and the problem is that once the users select the files, they think that they have already uploaded the files. No matter how obvious, bold ...
0
votes
1answer
187 views

looping an image field with multiple values? alt or text?

I am about to implement a img gallery in a node template. The gallery has the usual HTML markup (a span with bgimage, wrapped by a div...) I do not have any knowledge on php, but - in the last 24h - ...