Overriding taxonomy tag limit of 255
Jason Ruyle - October 22, 2009 - 18:12
Been trying to get this figured out, but can't seem to find a proper solution.
I need to change the taxonomy limit from 255 characters to something larger.
I've tried editing the taxonomy.module (i know its not good), made a custom module with hook_form_alter and set module weight to -17. The module did a change of maxlength. Made another module with weight of 20, with same hook_form_alter.
I can't see to find, so if anyone can make a suggestion it would be very helpful.

I haven't looked it up, but I
I haven't looked it up, but I assume that the 255 character limit is also set in the database schema. That would mean that you can remove the limit in the form, but the db will still not be able to store the 256th character. Your module could implement hook_schema_alter to alter the database, but I'm not sure if that's is a good idea. Can I ask why you need more than 255 characters for taxonomy terms? It sounds as if you're stretching the taxonomy system to do things it isn't meant for.
Its for a photography site.
Its for a photography site. The terms are really the only factor that is computed the search scores. When users search, they are search based off the terms. Our photos don't even have a body.
To me, the limit seems just fine, but they find cases where they want to enter more. I'll take another look at the schema, but I have tried to make edits to even the database fields.
But still, a frustrating thing is that no matter how many overrides I've done, I still can't get the form photo_node_form to modify the maxlength fields.
------------------------------
i do stuff
Just checking if I understand
Just checking if I understand correctly: do you want to allow for taxonomy terms that are longer than 255 chars, or do you want to allow for a large number of tags with a combined length greater than 255 chars?
large number of tags if you
large number of tags
if you know a solution great, at this point were going to just convince client to use multiple tag boxes.
------------------------------
i do stuff
That limit isn't a taxonomy
That limit isn't a taxonomy tag limit it's a net limit. That's the longest a URL can be.
Can you show us the form
Can you show us the form alter code you tried to increase the maximum number of characters?