Catalog text field size restriction
Hi,
I found a very strange behaviour of catalog module - I can't create fields bigger that TEXT field type.
Even if I change field type manually to MEDIUMTEXT in MySQL it will be reset to the TEXT when I will edit something inside that catalog item (NOT the field, for example check searchable checkbox).
I think this happened because of this in config.php...
Code:
'longtext' => array
(
'typeimage' => 'system/modules/catalog/html/longtext.gif',
'fieldDef' => array
(
'inputType' => 'textarea'
),
'sqlDefColumn' => "text NULL",
),
So the questions are: How it is better to override this setting, and is it possible to add one more option at field set-up for the future releases.
Thank you in advance..
P.S.
Catalog is the great module. This is first time I met something which catalog can't handle..
Re: Catalog text field size restriction
Hi,
please try putting the following in your system/config/dcaconfig.php
Code:
$GLOBALS['BE_MOD']['content']['catalog']['fieldTypes']['longtext']['sqlDefColumn'] = "MEDIUMTEXT NULL";
Regards
Chris