Active
Project:
Flexinode
Version:
4.6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
19 May 2005 at 07:29 UTC
Updated:
2 Jul 2005 at 01:09 UTC
Currently there's a limit of 128 characters for text fields (and probably for other too). This mean I can't enter more then 128 characters in a field. I need to enter more and I do not see a reason why the limit can't be higher (I'd say 1024 or more chars would be enough). DB can support up to 16,777,215 characters, so that's not a problem.
Comments
Comment #1
stevryn commentedI had the same situation, what I did was change the length in the .inc file. For example, I needed my URL field longer so
in the file called field_url.inc
I changed the value to 255
function flexinode_field_url_form($field, &$node, $error) {
$fieldname = 'flexinode_'. $field->field_id;
return form_textfield(t($field->label), $fieldname, isset($node->$fieldname) ? $node->$fieldname : $field->default_value, 60, THIS VALUE , t($field->description) . ' ' . theme('error', $error[$fieldname]));
}
and also here:
function flexinode_field_url_config($field, $edit) {
return form_textfield(t('Default value'), 'default_value', $edit['default_value'], 60, THIS VALUE);
}
Comment #2
dtan commentedwhat's wrong with using a textarea?
Comment #3
maui1 commentedI have a related question, How can I change the maximum length of the Labels. I am making a flexinode form that requires labels about twice the current limit.
I tried changing the Label type in the database table flexinode field from varchar 255 to longtext with no apparent effect.
Is there a script hack to accomplish this?