We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Error produced when field type class name is over 12 characters

Development and Programming

Christopher Imrie's avatar
Christopher Imrie
57 posts
16 years ago
Christopher Imrie's avatar Christopher Imrie

I’ve been playing around with the field type API and I ran into an error several times with regards to the fieldtype class name length.

It has probably been done for a reason, but the class name for the custom fieldtype is restricted to 12 characters (database field restriction). If the class name is over this, then an error is produced on the publish & edit forms as well as when calling this field in the templates.

I thought it might be worth you mentioning this class name restriction in the fieldtype API user guides, as it threw me when I started getting errors since my initial field type class name was not an unreasonable 15 characters (ft.cki_member_list.php).

I know you guys are busy and have far higher priorities at the moment, but thought I should mention it.

       
Derek Hogue's avatar
Derek Hogue
317 posts
16 years ago
Derek Hogue's avatar Derek Hogue

Glad I found this post, I couldn’t figure out what the problem was. This limitation will cause problems I think. 12 characters is too damn few.

       
Newism's avatar
Newism
30 posts
16 years ago
Newism's avatar Newism
Glad I found this post, I couldn’t figure out what the problem was. This limitation will cause problems I think. 12 characters is too damn few.

What magic are you cooking up D-Rock?

       
Derek Hogue's avatar
Derek Hogue
317 posts
16 years ago
Derek Hogue's avatar Derek Hogue

Just looking to port over Reegion Select, nothing very exciting. This 12-character limit means the ubiquitous ‘ee’ word-mangling will have to be jettisoned in this case. Probably for the best. To quote Stephen Lewis: “eenough alreadee.”

       
Pascal Kriete's avatar
Pascal Kriete
2,589 posts
16 years ago
Pascal Kriete's avatar Pascal Kriete

The field length is a leftover from 1.6. Feel free to make it a little longer, and we’ll do the same when the next upgrade rolls around.

Thanks guys.

       
Christopher Imrie's avatar
Christopher Imrie
57 posts
16 years ago
Christopher Imrie's avatar Christopher Imrie

Thanks Pascal.

Best of luck with the ongoing updates

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.