Difference between revisions of "Sf modtype"

From ARK
Jump to: navigation, search
(Additional Fields)
Line 5: Line 5:
 
*'''classtype''' - this is the module type, as found in the mod_lut (eg. cxt_lut_cxttype has classtype cxttype)
 
*'''classtype''' - this is the module type, as found in the mod_lut (eg. cxt_lut_cxttype has classtype cxttype)
 
*'''alias_tbl''' - the alias table is cor_tbl_col, make sure there is an entry in cor_tbl_col for the relevant modtype and that you have added an associated [[Alias Administration|alias]]
 
*'''alias_tbl''' - the alias table is cor_tbl_col, make sure there is an entry in cor_tbl_col for the relevant modtype and that you have added an associated [[Alias Administration|alias]]
 +
*'''alias_src_key''' - the text entered in cor_tbl_col corresponding with the modtype (eg. cxttype, abktype, etc)
  
 
===Example Configuration===
 
===Example Configuration===

Revision as of 10:28, 14 November 2008

Description

The data class 'modtype' will handle modules with different types (eg. the standard context module has types cut, fill, masonry, etc.). The configuration of module types will be specific to each module.

Additional Fields

  • classtype - this is the module type, as found in the mod_lut (eg. cxt_lut_cxttype has classtype cxttype)
  • alias_tbl - the alias table is cor_tbl_col, make sure there is an entry in cor_tbl_col for the relevant modtype and that you have added an associated alias
  • alias_src_key - the text entered in cor_tbl_col corresponding with the modtype (eg. cxttype, abktype, etc)

Example Configuration

$conf_field_cxttype =
    array(
        'dataclass' => 'modtype',
        'classtype' => 'cxttype',
        'alias_tbl' => 'cor_tbl_col',
        'alias_col' => 'dbname',
        'alias_src_key' => 'cxttype',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
	'add_validation' => 'none',
        'edt_validation' => 'none'
);