Closed (fixed)
Project:
Lost & found issues
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
19 Mar 2006 at 10:02 UTC
Updated:
14 Jun 2006 at 05:01 UTC
Jump to comment: Most recent
I use cck (or flexinode) for my content. They typically have looong names.
however the 'name' column in variable is only 48 chars long. This results in unsavable forms.
Because Mysql chops the name up after 48 chars, they override eachother.
I am working on a path for this, to shorten the name.
Comments
Comment #1
Coyote commentedArgh. That looks like it could be a problem. I'll have to look into this.
Comment #2
RobRoy commentedJust ran into this. This needs to be 128 at least right?
Using CCK and per-type settings like 'menu_panel_visibility_defaults_content-before__after' I get errors cause it's too long.
Comment #3
Coyote commentedHmmm... I hate to do it, but rather than something that alters core, perhaps I should just rewrite the module so that it uses its own settings table to store the settings for each node type, that won't be dependent on the variable table in Drupal.
Argh.
Anyone have any other suggestions?
Comment #4
Bèr Kessels commentedyes, I do have a suggestion:
Write a "smarter" helper that takes long names and turns them into shorter, unique names. Something of a mapper/hasher:
You could make it even smarter, by looking for existing numeral pieces in $original, to avoid names like foo_1234_155, but make them like foo_1389 (=1234+155);
Comment #5
Coyote commentedOkay, I believe this one is (at long last) squished.
jjeff submitted a patch for this and a few other issues.
http://drupal.org/node/66189
Comment #6
Coyote commentedClosing this out, and referring further comments on this to the thread with jjeff's patch, since that's the one I went with.
Comment #7
(not verified) commented