Now I use imagefield-5.x-2.1 for cck-5.x-1.7.
imagefield has a upload button and cck form submission form also has a submit button.

How I can diable show of imagefield upload button and just use content submit button for both other content and imagefield.

CommentFileSizeAuthor
#8 firebug-shot.jpg84.96 KBbaxterjones
#8 firebug-shot-after.jpg101.16 KBbaxterjones

Comments

say2sky’s picture

Anyone can help me with this?

I have check the the field_name table and node_field_instance table.

field_name table

| type  | global_settings                                            |
+-------+------------------------------------------------------------+
| image | a:2:{s:13:"default_image";N;s:17:"use_default_image";i:0;} | 

node_field_instance table

| widget_type | widget_settings  |                                                      
| image       | a:7:{s:14:"max_resolution";s:1:"0";s:12:"max_filesize";s:1:"0";s:17:"max_number_images";s:1:"0";s:10:"image_path";s:0:"";s:15:"file_extensions";s:16:"jpg jpeg png gif";s:10:"custom_alt";i:0;s:12:"custom_title";i:0;} | 

but I don't know if any parameter and which is related with upload button show.
Any suggestion and help is greatly appreciated.

dopry’s picture

Category: support » feature

Currently you must use form_alter to hide the upload button... Is this a feature other users would want? Where should it go in the UI? What should it be called?

neyoung’s picture

I'd like to see this feature. Maybe also change the button text to Preview so that people don't get confused. Some people don't read the help text at the top so they don't know that clicking the upload button doesn't actually change the image. They have to submit the form.

marcoBauli’s picture

or don't forget about asking CSS to do this :)

the module outputs a css ID for every image field 'upload' button:

#field-main-image-attach-button {
     display:none;
     visibility:hidden;
}
socialnicheguru’s picture

Title: Disable imagefield upload button » How diable show of imagefield upload button

thanks i will try this

UPDATE: this is not working for me as is. are there any considerations I should keep in mind?

UPDATE: I had to use this:

/* remove upload button from imagefield */
input#field-event-photo-attach-button{
display:none;
visibility:hidden;
}

Chris

marcoBauli’s picture

Title: How diable show of imagefield upload button » Disable imagefield upload button
dopry’s picture

Title: How diable show of imagefield upload button » Disable imagefield upload button
Status: Active » Closed (fixed)

Use CSS or hook_form_alter. If you do not understand either read their respective documentation or ask in forum.

baxterjones’s picture

StatusFileSize
new101.16 KB
new84.96 KB

i used #4 to not show mine anymore, but of coarse i have another label to my field.. i would recommend using the awesome firefox plugin firebug to "inspect" the element by right clicking on it.. then you can see exactly what you need to hide.

good luck, and note: works great for both d.5x and d6.x

B