Sf place

From ARK
Jump to: navigation, search

Description

The sf_place subform is used to display places that intersect with the geometry of an item.

Please note that as places are not directly attached to the items in the database (only via the spatial data) - this form will not work if you do not have the mapping set up correctly. In particular you will need a $wxs_qlayers array (see page_settings.php - and you will need your places setup correctly (see Places).

Display Modes

sf_place works as a read-only form, therefore even if you set the mode to be edit the data will remain read-only.

Example Configuration

$conf_mcd_settlements =
  array(
      'view_state' => 'max',
      'edit_state' => 'view',
      'sf_nav_type' => 'name',
      'sf_title' => 'settlements', //appears in the titlebar of the subform (mk nname)
      'sf_html_id' => 'settlements', //the form id tag (must be unique)
      'script' => 'php/subforms/sf_place.php',
      'op_label' => 'link',    
      'op_lightbox' => TRUE,
      'op_input' => 'update',
      'fields' => array(
          $conf_field_settlements
      ),
);