Advanced Configuration (deprecated)
Last updated
$config['simple_grid'] = [
// Examples of global overrides for each field type with their default values and possible options.
// These settings will be applied to every instance of the field type, regardless of where it appears.
// You can define field specific options (examples below), then default all remaining instances of
// a column type to the global settings if defined.
'file' => [
'allowed_directories' => '', // [int] (ID of upload directory)
'field_content_type' => 'all', // image
'num_existing' => 0, // [int]
'show_existing' => 'y', // y, n
],
'text' => [
'field_content_type' => 'all', // numeric, integer, or decimal
'field_show_file_selector' => 'n', // y
'field_text_direction' => 'ltr', // rtl
'field_maxl' => 256, // [int]
'field_show_fmt' => 'n', // y
'field_fmt' => 'n' // y
],
'url' => [
'url_scheme_placeholder' => 'https://',
'allowed_url_schemes' => [
'http://' => 'http://',
'https://' => 'https://',
'//' => '// (Protocol Relative URL)',
'ftp://' => 'ftp://',
'mailto:' => 'mailto:',
'sftp://' => 'sftp://',
'ssh://' => 'ssh://',
]
],
// Examples of overriding the settings on a per-field/column basis
// Standalone Simple Grid fields
'field_id_9' => [ // field_id
'col_id_2' => [ // Simple Grid col_id
'allowed_directories' => 5
],
],
'field_id_21' => [
'col_id_3' => [
'allowed_directories' => 6
],
],
// When Simple Grid field is inside of a Bloqs field. Note we don't care about the Bloqs' field_id
'col_id_9' => [ // Bloq atom_id, not the Bloq field_id
'col_id_1' => [ // Simple Grid col_id
'field_maxl' => 3,
],
'col_id_3' => [ // Simple Grid col_id
'allowed_directories' => 6,
]
],
];'allowed_directories' => '', // [int] (ID of upload directory)
'field_content_type' => 'all', // 'image'
'num_existing' => 0, // [int]
'show_existing' => 'y', // or 'n''field_ta_rows' => '6', // [int]
'field_show_formatting_btns' => 'n', // or 'y'
'field_text_direction' => 'ltr', // or 'rtl' 'defer' => false,
'toolset_id' => null, // Will use the default toolset if not defined'field_content_type' => 'all', // numeric, integer, or decimal
'field_show_file_selector' => 'n', // or 'y'
'field_text_direction' => 'ltr', // or 'rtl'
'field_maxl' => 256, // [int]
'field_show_fmt' => 'n', // or 'y'
'field_fmt' => 'n' // or 'y''field_default_value' => '0', // or '1''url_scheme_placeholder' => 'https://',
'allowed_url_schemes' => [
'http://' => 'http://',
'https://' => 'https://',
'//' => '// (Protocol Relative URL)',
'ftp://' => 'ftp://',
'mailto:' => 'mailto:',
'sftp://' => 'sftp://',
'ssh://' => 'ssh://',
]