<HTML>
<HEAD>
<TITLE>Re: [support] CCK title field set width?</TITLE>
</HEAD>
<BODY>
<BLOCKQUOTE><FONT SIZE="4"><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Thanks for the info Neil. This is the first time I’ve run into this issue so, I apparently have some fun ahead of me :) <BR>
<BR>
Gary<BR>
<BR>
------------------------------<BR>
<BR>
Message: 4<BR>
Date: Wed, 17 Nov 2010 18:30:05 -0300<BR>
From: Neil Coghlan <neil@esl-lounge.com><BR>
Subject: Re: [support] CCK title field set width?<BR>
To: support@drupal.org<BR>
<BR>
<BR>
you want to look into making your own mini-module and use form_alter to<BR>
adjust the width of the text field<BR>
<BR>
once you've got the correct form, you need something like this:<BR>
<BR>
$form['title']['#size'] = 55;<BR>
<BR>
or whatever size you want.<BR>
<BR>
here is what you'd need for the blog create form - changes title field<BR>
size and alters its label too.<BR>
<BR>
function mymodule_form_alter(&$form, $form_state, $form_id) {<BR>
if($form_id == blog_node_form) {<BR>
# alters blog node create form. Changes 'Title' to 'Title of blog post'<BR>
and alters size of title text box.<BR>
$form['title']['#title'] = t('Title of blog post');<BR>
$form['title']['#size'] = 55;<BR>
}<BR>
}<BR>
<BR>
Remember to change "mymodule" to your actual module title and make .info<BR>
file too.<BR>
<BR>
<BR>
On 17/11/2010 18:20, Broyhill, Gary wrote:<BR>
> Good day Drupalers:<BR>
><BR>
> When creating a new content type, it seems that I cannot change the<BR>
> width of the TITLE field. For all other fields that I create, I can<BR>
> set the width.<BR>
><BR>
> Anyone know how to make this change? I found something on drupal.org<BR>
> saying you can do it with CSS but I wonder if that's the best or only<BR>
> way?<BR>
> <a href="http://drupal.org/node/113399#comment-193937">http://drupal.org/node/113399#comment-193937</a><BR>
><BR>
> Thanks,<BR>
><BR>
><BR>
> --<BR>
> Gary Broyhill<BR>
> Webmaster<BR>
> Lenoir-Rhyne University<BR>
> www.lr.edu<BR>
> gary.broyhill@lr.edu<BR>
> (828)328-7379<BR>
</SPAN></FONT></FONT></BLOCKQUOTE>
</BODY>
</HTML>