Difference between revisions of "Sf assemblage"
From ARK
Andydufton (talk | contribs) (→Additional Fields) |
|||
| (8 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
| − | + | ===Description=== | |
| − | === | + | 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=== | ||
| − | sf_assemblage | + | 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=== |
| + | <pre> | ||
| + | $conf_mcd_botanic = | ||
| + | array( | ||
| + | '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( | ||
| + | $conf_field_total | ||
| + | ) | ||
| + | ); | ||
| + | </pre> | ||
| − | |||
| − | + | [[category: Administrator]] | |
Latest revision as of 10:49, 14 November 2008
Description
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 =
array(
'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(
$conf_field_total
)
);