Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-10-26 15:10:48

mm
New Member
From: Earth
Registered: 2005-04-16
Posts: 3

increase caracters limit in custom field

Hello,

Is anybody knows how to increase the limit of caracters allowed inside the input fom of the custom fields.
I looked in many files but I couldn’t find it.

Thanks in advance

matthieu

Offline

#2 2005-10-26 16:36:47

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: increase caracters limit in custom field

I think you’ll have to change the field type in the textpattern table in the database. I’m not sure, but my guess would be to give it the same type as for example the excerpt field.

Offline

#3 2005-10-26 16:52:01

mm
New Member
From: Earth
Registered: 2005-04-16
Posts: 3

Re: increase caracters limit in custom field

Yes ! absolutly. It works fine.
For info : I just changed from ‘varchar’ to ‘text’ and deleted the Lenght value in the custom_1 field.

Thanks a lot.

Offline

#4 2005-10-26 19:23:33

albertext
New Member
Registered: 2005-05-08
Posts: 7

Re: increase caracters limit in custom field

Any side effect on mysql performance?

Last edited by albertext (2005-10-26 19:24:21)

Offline

#5 2005-10-27 06:05:04

mm
New Member
From: Earth
Registered: 2005-04-16
Posts: 3

Re: increase caracters limit in custom field

> albertext wrote:

> Any side effect on mysql performance?

It’s difficult to evaluate, but I just changed 1 field type.
Plus I don’t use a lot of text in this field. Just a few more than 255.
I don’t think it has any impact on the performance.
But if you make some tests, please post your results.

m.

Last edited by mm (2005-10-27 06:05:20)

Offline

#6 2005-10-27 16:11:01

albertext
New Member
Registered: 2005-05-08
Posts: 7

Re: increase caracters limit in custom field

I’m not a database geek so I’m not able to make serious performance test on MySQL.

However if the fall in performance is minimal I suggest (as a feature request) to change the field type to “text” directly in the next TXP release.

Offline

#7 2005-10-28 17:27:02

Jeff_K
Archived Plugin Author
From: Vancouver, British Columbia
Registered: 2005-08-19
Posts: 202
Website

Re: increase caracters limit in custom field

This is exactly what I was looking for a few months back. Thanks so much. And yes, I definately think this should be an option through the admin interface.

I am looking for the appropriate code, but am having some trouble. Can you post the file you modified? thanks.

Last edited by Jeff_K (2005-10-28 17:39:29)

Offline

#8 2005-10-28 18:42:46

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: increase caracters limit in custom field

Jeff_K wrote:

I am looking for the appropriate code, but am having some trouble. Can you post the file you modified? thanks.

It’s not a file, you have to modify the textpattern table in the database, using phpMyAdmin.

Offline

#9 2005-10-28 19:22:11

Jeff_K
Archived Plugin Author
From: Vancouver, British Columbia
Registered: 2005-08-19
Posts: 202
Website

Re: increase caracters limit in custom field

great. that was super easy actually. thanks

Offline

Board footer

Powered by FluxBB