hello
if you want to add pictures to a CCK then you got an input field for uploading
the problem is, that you can´t style the width - doesn´t work in FF3
greets
hello
if you want to add pictures to a CCK then you got an input field for uploading
the problem is, that you can´t style the width - doesn´t work in FF3
greets
Comments
Comment #1
ambrojio commentedBumping this request. Can anyone provide some assistance in locating where the 'size="60"' gets set?
Comment #2
mp commentedit is set in ....
/modules/system/system.module
row 183
$type['file'] = array('#input' => TRUE, '#size' => 60);
greets
Comment #3
michaelfavia commentedthis, howeve is not the proper place to edit the size of the field. You can overide this value using fapi in a sitehelper module, or you can use CSS to change the width in the theme layer.
Comment #4
quicksketchI agree, CSS would be the best way.
In style.css:
Of course this would affect all text fields on the whole site. You'd need to narrow it down to affect only the ImageField. However, that's beyond the help specific to ImageField (as is this entire request). Buy a book on CSS or visit http://www.w3schools.com/.
Comment #6
Stomper commentedI currently have an ImageField field placed in a CCK form block. The block is on the right side, in the right sidebar. Currently the ImageField field is overflowing over the sidebar. I was having the same overflow issues with CCK textfields but was able to tweak the size of CCK textfields using the UI itself.
Is there any easier way to modify the size of ImageField field without having to dig directly into the CSS? Perhaps an option added to the UI? I found a similar issue for the Image module (http://drupal.org/node/774314).
If not, is it possible to push the "Browse" button to the line below the input field, perhaps so it is placed next to the "Upload"button"?
Thanks