Difference between revisions of "Sf xmi"

From ARK
Jump to: navigation, search
(Example Configuration)
(Additional Fields)
 
(One intermediate revision by the same user not shown)
Line 5: Line 5:
 
*'''xmi_mod''' - the xmi viewer needs this to know which module to display
 
*'''xmi_mod''' - the xmi viewer needs this to know which module to display
 
*'''xmi_mode''' - not to be confused with xmi_mod, this variable controls how items will be added to the xmi list.  The options are: dd, ddfancy, text, live, and search.  These options will be discussed below.
 
*'''xmi_mode''' - not to be confused with xmi_mod, this variable controls how items will be added to the xmi list.  The options are: dd, ddfancy, text, live, and search.  These options will be discussed below.
 +
**'''dd''' - A dropdown menu of ALL items in the XMI mod
 +
**'''ddfancy''' - A dropdown menu of ALL items in the XMI mod using ddComplex.  ddfancy requires 2 additional options to be set in the sf_conf: op_dd_dataclass and op_dd_classtype
 +
**'''text''' - A normal text input field for the itemkey
 +
**'''live''' - A  live input field for the itemkey
 +
**'''search''' - A search and review dialogue
 
*'''op_xmi_sorting''' - this is a switch to allow sorting of XMIed items by some field connected to the item. The default is to sort by the itemval.
 
*'''op_xmi_sorting''' - this is a switch to allow sorting of XMIed items by some field connected to the item. The default is to sort by the itemval.
 
*'''op_xmi_sort_field''' - this option requires 'op_xmi_sorting' to be set TRUE. This should be populated with the full field array that is desired.
 
*'''op_xmi_sort_field''' - this option requires 'op_xmi_sorting' to be set TRUE. This should be populated with the full field array that is desired.

Latest revision as of 15:03, 21 September 2009

Description

The sf_xmi is required to handle XMI linked data from other modules.

Additional Fields

  • xmi_mod - the xmi viewer needs this to know which module to display
  • xmi_mode - not to be confused with xmi_mod, this variable controls how items will be added to the xmi list. The options are: dd, ddfancy, text, live, and search. These options will be discussed below.
    • dd - A dropdown menu of ALL items in the XMI mod
    • ddfancy - A dropdown menu of ALL items in the XMI mod using ddComplex. ddfancy requires 2 additional options to be set in the sf_conf: op_dd_dataclass and op_dd_classtype
    • text - A normal text input field for the itemkey
    • live - A live input field for the itemkey
    • search - A search and review dialogue
  • op_xmi_sorting - this is a switch to allow sorting of XMIed items by some field connected to the item. The default is to sort by the itemval.
  • op_xmi_sort_field - this option requires 'op_xmi_sorting' to be set TRUE. This should be populated with the full field array that is desired.

Example Configuration

$conf_mcd_sphxmi =
    array(
        'view_state' => 'max',
        'edit_state' => 'view', //not yet setup in sf
        'sf_title' => 'site_photo', //appears in the titlebar of the subform (mk nname)
        'sf_html_id' => 'cxt_sph_display', //the form id tag (must be unique)
        'script' => 'php/subforms/sf_xmi.php',
        'sf_nav_type' => 'full',
        'xmi_mod' => 'sph',
        'xmi_mode' => 'live',
        'op_lightbox' => TRUE
        'fields' => array(
            $conf_field_xmifield
	);