I have a field that users will enter their age I dont need the text box wide enough to cover the whole page. Is there a way to make the size of the cck field textbox smaller?

Also is there a way to lay out the cck fields in the following order

city state zip

instead of listing them as

city
state
zip

Thank you

CommentFileSizeAuthor
#4 screenshot.png57.44 KByched
#3 screenshot.png41.66 KByched

Comments

yched’s picture

Status: Active » Fixed

If using the 'textfield' widget, there's a 'size of textfield' setting on the field's settings page.

henrys212’s picture

Thank you for the responds. I am using the textfield widget but there is no size of textfield anywhere.

Any other suggestions please?

yched’s picture

StatusFileSize
new41.66 KB

See screenshot.

yched’s picture

StatusFileSize
new57.44 KB

Crap, previous screenshot has some non-committed in-progress stuff from my local code.
Actual shot with the actual CCK 2.1 attached

henrys212’s picture

I dont have that. All I have right underneath the button "Change basic information" is the help text box I am missing the field size can that be a seperate module that I need?

henrys212’s picture

Is the field size a seperate module? Since I dont have that option on my cck module.

yched’s picture

Is your widget a 'textfield' (single line input) or a 'textarea' (multiline input) ? As pointed in comment #1, this option is available only for 'textfield' widget.
Also, please make sure you're actually running CCK 2.1.

henrys212’s picture

Now I see its only when I create the field I will be able to see it but not on existing fields. But thats not my issue that I was having. What I wanted to know if its possible for the text box to be the size of the field size you specify when you create the field.

for example if I have a field age the text box should be the following width

____
|____|

instead of having the text box take up the whole page like this
_______________________________________________________
|_______________________________________________________|

Also if I can have city state and zip on the same line instead of each field on a seperate line.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

neroflick’s picture

I don't think this problem is solved cos I can't see any solution here. I still have the same problem and and am using latest CCK. The 'size of textfield' setting is not working AFAIK. Anyone got a fix?

neroflick’s picture

Status: Closed (fixed) » Postponed (maintainer needs more info)
QBMan’s picture

Last Status says "Postponed: Maintainer needs more info" yet the issue is closed. Hopefully, I can provide some more information.

Like Henrys212, I have fields that only need to be wide enough to hold dates and things. These fields do not need to be wide enough to fill the center content region.

Unlike Henrys212, I DO see the textfield size field when I'm configuring the field. But there are a couple of problems. First, it doesn't DO anything if I change it from the default 60. Second, it would be helpful to know what type of units 60 (or my supplied value) is supposed to represent. Is it pixels, characters (there is a separate field for length so I assume not), percent of parent container, etc.? Offering this information in the description/help text area would be a great help. So I add my voice to Henrys212's hoping to see some light shed on this.

Also like Henrys212, I'm baffled by (pardon the pun) gravitational field layout. While top to bottom layout is great for menus and blocks, it's waste of real estate when desiging content that covers a wide area on the page. It would certainly be nice to lay out fields on the horizontal plane as well as the vertical. Is this something that is do-able in a future release, perhaps?

Please forgive if I have posted in an inappropriate place. Still being new to Drupal and your site, I'm still finding my way through all the cubby-holes of information. If there is later information on this issue, feel free to point me to it.

karens’s picture

Status: Postponed (maintainer needs more info) » Fixed

#12 is a whole bunch of unrelated stuff. The original issue is about a way to set the size. There is a way to set the size that works in the core themes but may or may not work in other themes. CCK gives you a place to set it. Your theme has to respond to the change.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

salvano’s picture

Why do you keep closing this thread. There is still no solution. I'm having the same issue, still more than 1 year later. Within a CCK-developed content type I cannot control the textfield length. I have the admin menu that yched shows above, but nothing happens when I change the "Size of textfield" from 60...it always spans across the entire screen. This is ridiculously annoying, and I'm not even clear why the "Size of textfield" is required if it doesn't do anything. So, I too add my voice to Henry212's and QBMan's. Let us control the size of our textfields!!!

joshmmo’s picture

Amen salvano!

This is pretty annoying that the size of textfield doesnt work. :(

Svm’s picture

This is the way I did it. It's my first post to drupal.org so I'll try to explain as clear as possible.

1. I installed the firebug app.
2. Opened a page containing a text field.
3. hovered over the text field and watched for the css-file and css instance that controlled it
mine for example was : css file : ...\modules\system\system.css
(watch out when optimized css is set under the /admin/settings/performance
--> drupal merges the css files)
css instance : html.js .resizable-textarea textarea
4. Open this css file and find the instance
5. Change width and height at will

I changed width to 50%; and added
height 20px;

Of course this will be for all your text fields on your drupal installation. If you want it to be on a specific page you will
have to create separate css files

Hope this helped to anyone !