Difference between revisions of "Sf file"

From ARK
Jump to: navigation, search
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
===Description===
 
===Description===
The sf_file handles the upload and registering of files.
+
The sf_file provides display and editing of files linked to a record. Uploads and other tasks are provided by [[sf_mediabrowser]].
  
 
===Additional Fields===
 
===Additional Fields===
The sf_file will require:
+
None
*'''op_default_dir''' - the default directory for file uploads
+
 
  
 
===Example Configuration===
 
===Example Configuration===
Line 18: Line 18:
 
         'op_moddif' => FALSE,
 
         'op_moddif' => FALSE,
 
         'op_lightbox' => TRUE,
 
         'op_lightbox' => TRUE,
         'op_default_dir' => 'data/files',
+
         'fields' =>
        'fields' => array(
+
            array(
            $conf_field_file
+
                $conf_field_file
 
         )
 
         )
 
);
 
);

Latest revision as of 14:13, 7 December 2012

Description

The sf_file provides display and editing of files linked to a record. Uploads and other tasks are provided by sf_mediabrowser.

Additional Fields

None


Example Configuration

$conf_mcd_sph =
    array(
        'view_state' => 'max',
        'edit_state' => 'view',
        'sf_nav_type' => 'full',
        'sf_title' => 'site_photo', 
        'sf_html_id' => 'sph_img_display', // Must be unique
        'script' => 'php/subforms/sf_file.php',
        'op_moddif' => FALSE,
        'op_lightbox' => TRUE,
        'fields' =>
            array(
                $conf_field_file
        )
);