Allow 255 character titles

lomoboy - October 24, 2006 - 18:32
Project:Drupal
Version:6.x-dev
Component:node system
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed
Description

I have drupal based site which works under MySQL 4.0 (it's still mostly stable and fastest today and very popular at hosting providers) which don't works with utf. Thus my database is under cp1251. Each utf-8 character needs 2 character of cp1251 for the russian language. So it's only possible to hold node title with 64 character. It's to small. I have found previous issues - 1, 2, 3, and I haven't ideas why and who has closed their. I have increased title field in node and node_revision table to the 255 but I know that it's bad solution because I will have problems in the future with updating and redistribution of database.

#1

greggles - October 26, 2006 - 14:29
Title:Node title gets truncated to 64 character» Allow 255 character titles
Version:4.7.4» x.y.z
Category:bug report» feature request
Priority:critical» normal

What is the encoding of your mysql table?

I'm moving this to a feature request to "allow 255 character titles" and therefore moved it to CVS. Also, the priority "critical" is reserved for things where your site is totally broken, so this issue should be priority "normal". At the moment the site works, but is limited in function.

#2

lomoboy - October 26, 2006 - 16:14

My DB is encoded with cp1251.

#3

greggles - October 26, 2006 - 17:03

I believe the point of one of those other issues was that if you use UTF8 then you can use up to 128 characters. Can you try that?

#4

lomoboy - October 27, 2006 - 22:11

I cannot try because there is no support of UTF on my hosting playground, also as I known there is no support of UTF-8 in MySQL 4.0. So, if you works under 4.0 which encoded by latin charset you haven't problems with field's length because 1 latin charset encoded by 1 sybmbol.

#5

lomoboy - October 29, 2006 - 20:04

I mean if use put UTF's english words in DB encoded by latin there is no problem. But if you put the same word in russian you will get the problem.

#6

coreb - November 30, 2006 - 01:30
Version:x.y.z» 6.x-dev

#7

marcvangend - April 17, 2008 - 15:39

I'm not really into the technical stuff of databases and encoding, but I'm working on a site right now where I need 255-character titles. Can anyone explain why nothing was done with the feature request above? Are there performance reasons why setting the title column to varchar(255) is not a good idea? What are the risks if I just change the type of my title column to varchar(255)? (I guess there is the possibility that it will be set back to 128 on an upgrade?)

#8

marcvangend - April 18, 2008 - 06:52
Status:active» fixed

OK, I found two things since I posted my previous message.
1) In D6, the maximum title length is 255 characters. I'm changing this one to fixed.
2) For D5, there is a module available at http://drupal.org/project/longer_titles which changes the maximum title length to 255.

#9

Anonymous (not verified) - May 2, 2008 - 07:02
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.