Results 1 to 2 of 2

Thread: Catalog text field size restriction

  1. #1
    User
    Join Date
    06-20-09.
    Posts
    64

    Default 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..

  2. #2
    New user
    Join Date
    07-01-09.
    Posts
    19

    Default 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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •