Howto: Increase Drupal Title/Event/Node Length

Drupal limits the character length of a node title to 128-characters for a old and antiquated limitations of early versions of MySQL. There is a way to get around this by modifying part of the MySQL tables used for nodes and increasing the value a title can contain to the limit of 255-characters. This is extremely useful if you’re also using the “Events” module and you’re posting lectures and talks with lengthy names. You will also need to hook-into the Drupal installation through a module to alter how long the Drupal core-software will allows a title to be.

Through resources on the Drupal developer site and code posted by user “foxtrotcharlie”, I’ve created a module you can place in /modules that works with Drupal 5 and can be modified to work with Drupal 4 and 6.

To start out, you’ll need to gain access to phpmyadmin or your tool of choice to alter your site’s SQL database. Edit the string length of “title” to 255 characters in DB table “node” and “node_revision” or any value you wish, but might as well go for the biggest you can.

Once you do this, add the module I supply at the bottom of this post which is all set to go for Drupal 5 installations and should survive new updates of Drupal.

Download: Drupal Maxlength Module

Comments

2 Comments so far. Leave a comment below.
  1. Typo in the title or did you run out of space? ;)

  2. Alexwebmaster,

    Hello webmaster
    I would like to share with you a link to your site
    write me here preonrelt@mail.ru

Add Your Comments

Disclaimer
Your email address is never published nor shared -- because I like you.
Required
Required
Tips

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <ol> <ul> <li> <strong>

Ready?