<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&#8217;ve run into this issue so, I apparently have some fun ahead of me :) &nbsp;<BR>
<BR>
Gary<BR>
<BR>
------------------------------<BR>
<BR>
Message: 4<BR>
Date: Wed, 17 Nov 2010 18:30:05 -0300<BR>
From: Neil Coghlan &lt;neil@esl-lounge.com&gt;<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>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$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(&amp;$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>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$form['title']['#title'] = t('Title of blog post');<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$form['title']['#size'] = 55;<BR>
&nbsp;&nbsp;&nbsp;}<BR>
}<BR>
<BR>
Remember to change &quot;mymodule&quot; to your actual module title and make .info<BR>
file too.<BR>
<BR>
<BR>
On 17/11/2010 18:20, Broyhill, Gary wrote:<BR>
&gt; Good day Drupalers:<BR>
&gt;<BR>
&gt; When creating a new content type, it seems that I cannot change the<BR>
&gt; width of the TITLE field. &nbsp;For all other fields that I create, I can<BR>
&gt; set the width.<BR>
&gt;<BR>
&gt; Anyone know how to make this change? I found something on drupal.org<BR>
&gt; saying you can do it with CSS but I wonder if that's the best or only<BR>
&gt; way?<BR>
&gt; <a href="http://drupal.org/node/113399#comment-193937">http://drupal.org/node/113399#comment-193937</a><BR>
&gt;<BR>
&gt; Thanks,<BR>
&gt;<BR>
&gt;<BR>
&gt; --<BR>
&gt; Gary Broyhill<BR>
&gt; Webmaster<BR>
&gt; Lenoir-Rhyne University<BR>
&gt; www.lr.edu<BR>
&gt; gary.broyhill@lr.edu<BR>
&gt; (828)328-7379<BR>
</SPAN></FONT></FONT></BLOCKQUOTE>
</BODY>
</HTML>