Difference between revisions of "Sf assemblage"

From ARK
Jump to: navigation, search
Line 10: Line 10:
====Example Configuration====
===Example Configuration===
$conf_mcd_botanic =
$conf_mcd_botanic =

Revision as of 10:49, 14 November 2008


sf_assemblage can be used for displaying and editing attributes that have numbers chained to them. As an example, this could be used for recording the numbers of a certain type of seed in a sample, or for attaching total numbers of findtypes. This form should normally be used in conjunction with sf_attr_bytype. The attribute gets added to the item and then sf_assemblage will offer you the chance to add one or more numbers to that attribute.

Additional Fields

The sf_assemblage needs a number of different 'op' variables set in the sf_conf:

  • op_assemblage_type - this is the type of attribute (in cor_lut_attribute) that the fields will be chained to.
  • op_chart - sets whether the assemblage information will be displayed in pie-chart form on micro view, set as TRUE/FALSE

Example Configuration

$conf_mcd_botanic =
        'view_state' => 'max',
        'edit_state' => 'view',
        'sf_title' => 'botanictype', //is used for getting the attributetype
        'sf_html_id' => 'smp_botanic', //the form id tag (must be unique)
        'sf_nav_type' => 'full',
        'script' => 'php/subforms/sf_assemblage.php',
        'op_label' => 'space',
        'op_input' => 'save',
        'op_assemblage_type' => 'botanictype',
        'op_chart' => TRUE,
        'fields' => array(