Impossible to change maxlenght in field title (node)?

beno - February 20, 2007 - 13:05

Hello all,

I successfully installed Drupal 4.7.6. I'm creating a professionnal publication ( Librarian journal). Module ejournal, TinyMCE, etc. But I'm a problem. Our articles titles are sometimes a little bit long, so it's impossible to write them completely. I changed field title in table node to varchar 255. Nothing! The problem remains! I searched in all drupal modules code, in form.inc file and I'm not find where i do change the maxlenght. When i look at the html code in the browser, I see "maxlenght 128" in title field.
Code :

My question is : where, in which file, can I find this "maxlenght 128" and how ca I change it? Thanks a lot for help, answer, suggestion. It's essential for us to have reasonable capacity in title field for our articles.

BD

maxlength in title

beno - February 20, 2007 - 13:10

fragment of code (in administration area when we create a content):
Code : <input type="text" maxlength="128" name="edit[title]" id="edit-title"  size="60" ...>

BD

One way to go

johsw - February 20, 2007 - 13:37

One way to go would be to theme the input form:

Take a look here: http://drupal.org/node/101092

If you print the $form array print_r(array_values($form)) you should be able to figure out which value to change.

Best,
/J.

But in the core?

beno - February 20, 2007 - 23:19

Hi J,
thanks for your answer. But the link you suggest to look at is for CCK. I'm trying to change title maxlength in the input form by default - in article content type, for instance. There is any idea to what can I do?(I have some knowledge -almost good- in XHTML and CSS, very very limited in PHP),
Thanks a lot in advance,
BD

 
 

Drupal is a registered trademark of Dries Buytaert.