Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2006-01-24 18:59:03
- thoresson
- New Member
- From: Sweden
- Registered: 2005-02-02
- Posts: 6
limitation of custom fields
Can the custom fields hold
a) XHTML/CSS-code?
b) Be more than 2000 characters long?
/Anders
Offline
#2 2006-01-24 22:15:30
- zem
- Developer Emeritus

- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: limitation of custom fields
The custom fields are defined as varchar(255). You can modify the table to make them ‘text’. Textpattern doesn’t care what’s they contain.
Alex
Offline
#3 2006-01-25 07:15:30
- thoresson
- New Member
- From: Sweden
- Registered: 2005-02-02
- Posts: 6
Re: limitation of custom fields
What happens when I upgrade? Does upgrades touch the structure of the database?
/Anders
Offline
Re: limitation of custom fields
Bump!
What happens when I upgrade? Does upgrades touch the structure of the database?
I’d like to know this too. I have a project where I need to have a feild seperate from either the Article or Excerpt that doesn’t have the limitations of varchar(255). I can go into the db and just change the settings, but I’d too like to know what the impact of these changes would be (particularly with regards to upgrades).
Would it be theoretically possible to have an admin side plugin that allows users to set the content type of the custom fields?
Thanks in advance for any help.
Cheers,
Ed.
Offline
#5 2006-07-22 09:54:10
- marios
- Archived Plugin Author

- Registered: 2005-03-12
- Posts: 1,253
Re: limitation of custom fields
Is it enough to modify the table in phpmyadmin or do I need to modify the codebase as well ?
regards, marios
⌃ ⇧ < ⎋ ⌃ ⇧ >
Offline
#6 2006-07-22 11:32:07
- Ace of Dubs
- Member

- Registered: 2006-04-17
- Posts: 446
Re: limitation of custom fields
+1 one more poster who is interested in this idea.
(And marios, this might potentially be a solution to your problem with splitting articles like we talked about)
Offline
#7 2006-07-23 01:16:33
- marios
- Archived Plugin Author

- Registered: 2005-03-12
- Posts: 1,253
Re: limitation of custom fields
Ace of Dubs wrote:
+1 one more poster who is interested in this idea.
(And marios, this might potentially be a solution to your problem with splitting articles like we talked about)
I just hope there would be an answer to these questions, despite that fact, that there are frogs inside the thread.
regards, marios
⌃ ⇧ < ⎋ ⌃ ⇧ >
Offline
#8 2006-07-23 08:33:44
- masa
- Member
- From: North Wales, UK
- Registered: 2005-11-25
- Posts: 1,095
Re: limitation of custom fields
marios wrote:
Is it enough to modify the table in phpmyadmin or do I need to modify the codebase as well ?
previously zem stated:
Textpattern doesn’t care what’s they contain.
That seems to suggest you’d only need to change the table but not TXP.
Cheers Martin
Offline
#9 2006-07-23 11:53:10
- Ace of Dubs
- Member

- Registered: 2006-04-17
- Posts: 446
Re: limitation of custom fields
Looking at the tables I dont see any that say “custom field”
Where would I find it?
Offline
Re: limitation of custom fields
Custom fields are fields in the textpattern table.
Last edited by edeverett (2006-07-23 11:58:44)
Offline
#11 2006-07-23 11:59:10
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: limitation of custom fields
The “textpattern” table.
Offline
#12 2006-07-23 12:41:58
- Ace of Dubs
- Member

- Registered: 2006-04-17
- Posts: 446
Re: limitation of custom fields
Thanks for the helpful nudge in the right direction yall. I got it working now
@ Marios,
This is indeed the solution you were looking for. I created a new custom field named “Info” and set it to “Text” within PHPAdmin. I now essentially have 2 excerpt fields!
The only rub is that you have to hack the admin a little bit to place the field where you want it and also change the size of it. I will post the modifications in your thread.
Last edited by Ace of Dubs (2006-07-23 12:42:42)
Offline