I need to increase the character limit on the title field.
Can anyone tell me how to do this on 2x?
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
November 19, 2010 11:14pm
Subscribe [8]#1 / Nov 19, 2010 11:14pm
I need to increase the character limit on the title field.
Can anyone tell me how to do this on 2x?
#2 / Nov 20, 2010 1:15am
I think I’ve got it - edited the DB and content_publish.php line 1371—seems to be working.
#3 / Jan 05, 2011 3:49pm
Could you explain in a little more detail how you solved this problem?
Many thanks, Chris
#4 / Jan 05, 2011 4:35pm
Yeah, of course—I was actually revisiting this last night after upgrading to 2.1.3 and having to carry over the hack. I had trouble finding this file myself.
The file to hack is at
system/expressionengine/controllers/cp/content_publish.php
The line number is currently 2282
'field_maxl' => 100I changed mine to 200
When we hack EE, we make a hacks file and keep it in the system folder so that hacks can be carried over with upgrades.
You also need to go into phpMyAdmin and change the type of the title field. I may have some detail a little off, but I think you
- find exp_channel_titles
- hit the Structure tab
- hit the change icon on the title field
- change “Length/Values” to 200
The DB change doesn’t need to be carried over with upgrades, just the hack in content_publish.php
#5 / Jan 05, 2011 9:14pm
That’s great - many thanks for your help.
Cheers, Chris
#6 / Jan 21, 2011 11:26am
Rural Dreams… needed this this morning and this was perfect, thanks! I probably would have just asked you next anyway 😉
- Eric
#7 / Jan 21, 2011 11:35am
Glad to hear it!
#8 / Jan 09, 2012 1:59pm
Is there no way to do this via config file?
#9 / Jan 15, 2012 6:22pm
There are also a few add-ons available that offer the option to change the default field length for titles. Have a look at MX Title Control http://devot-ee.com/add-ons/mx-title-control or Kyara http://devot-ee.com/add-ons/kyara/ .
#10 / Jan 31, 2012 2:40am
Just new here, this is a great site,thumbs up!
http://www.heartlandpaymentsystems.com/paycheck payroll services/
#11 / Feb 01, 2012 7:38am
There are also a few add-ons available that offer the option to change the default field length for titles. Have a look at MX Title Control http://devot-ee.com/add-ons/mx-title-control or Kyara http://devot-ee.com/add-ons/kyara/ .
Yes your correct i used this add on..
#12 / Feb 12, 2012 2:20pm
I used the same addon as well… and its working perfectly for me.