Changing the Title Maxlength in Expression Engine
Mar 06, 2008 | Nor Sanavongsay | Comments (2)
Are you writing articles that involve non-roman characters in the title and find that it does not fit the max 100 character length? For example, one of my client wanted to write an article in Lao, but it turns out that they needed more than 100 characters for their title. Because of the accent marks and other characters that make up a word, it was difficult to fit in into the title textfield. Well, I have found a workaround, but it is not pretty. Here we go…
Modify your MySQL table
- Use a database management software (I use phpMyAdmin) to get to your EE data. most web hosting services will have this installed already.
- Select the database table that you name for your EE installation. (*_EE)
- Look for *_weblog_titles on the left side panel and click on it. (* just means whatever you set the database table to when you installed EE. Mine was called EE_weblog_titles)
- Edit the "title" field type. I used LONGTEXT with a length of 500. Add more if you need more.
Modify your EE php files
- Go into your file system where your EE was installed. yoursite.com/system/cp/
- Look for and edit the cp.publish.php file.
- Do a search for "publishTitleCluster" within the cp.publish.php file.
- Look for the line 2569 "$DSP->input_text('title', $title, '20', '100', 'input', ..." and change the 100 to the length you desire. In my case 500.
- Save it and you're done.
That's it! If you have any questions, please email me. Thank you for reading.
Blog Index | Previous Entry Next Entry



1
mogya Mar 6, 2008 at 08:29 pm
Thanks! I got working fine by this.
And I have mentioned this workaround in Japanese on my blog.