Sf txt

From ARK
Revision as of 10:07, 14 November 2008 by Andydufton (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Description

Additional Fields

The sf_txt does not require any additional fields.

Example Configuration

An example of sf_txt configuration using multiple modtypes:

$conf_mcd_description =
    array(
        'view_state' => 'max',
        'edit_state' => 'view',
        'sf_nav_type' => 'full',
        'sf_title' => 'desc', 
        'sf_html_id' => 'cxt_su_description', // Must be unique
        'script' => 'php/subforms/sf_txt.php',
        'op_label' => 'space',
        'op_input' => 'save',
	'op_modtype' => TRUE, //for different fields for each modtype (see below)
        'type1_fields' => array(
             $conf_field_shape,
             $conf_field_corners,
             $conf_field_dims,
             $conf_field_bostop,
             $conf_field_sides,
             $conf_field_bosbase,
             $conf_field_base,
             $conf_field_orient,
             $conf_field_inclination,
             $conf_field_truncation,
             $conf_field_observ
        ),
        'type2_fields' => array(      
             $conf_field_compac,             
             $conf_field_colour, 
             $conf_field_compo, 
             $conf_field_inclusions,   
             $conf_field_dims,         
             $conf_field_observ,
             $conf_field_excavtech               
        ),
        'type3_fields' => array(
             $conf_field_material,             
             $conf_field_sizemat,              
             $conf_field_finish,             
             $conf_field_bond, 
             $conf_field_form,             
             $conf_field_dirface,              
             $conf_field_bondmat,             
             $conf_field_dims, 
             $conf_field_observ 
        ),
	    'type4_fields' => array(
		$conf_field_abody,
		$conf_field_ahead,
		$conf_field_ararm,
		$conf_field_alarm,
		$conf_field_arleg,
		$conf_field_alleg,
		$conf_field_afeet,
		$conf_field_degen,
		$conf_field_state,
		$conf_field_observ
	    ),
	    'type5_fields' => array(
		$conf_field_orient,
		$conf_field_dims,
		$conf_field_observ,
		$conf_field_excavtech
	    )
	);

An example of sf_txt using a single modtype

$conf_mcd_short_desc =
    array(
        'view_state' => 'max',
        'edit_state' => 'view',
        'sf_nav_type' => 'full',
        'sf_title' => 'shortdesc', 
        'sf_html_id' => 'cxt_short_description', // Must be unique
        'script' => 'php/subforms/sf_txt.php',
        'op_label' => 'space',
        'op_input' => 'save',
	'op_modtype' => FALSE, //if each modtype uses same fields (see below)
        'fields' => array(
             $conf_field_short_desc
	     )
	);