Sf buildfilter
From ARK
As of v1.0, sf_buildfilter is now used to build filters in the left panel of the data view (search) page. Various options exist for the types of filters administrators will want to make available to users- including different stages of pre-built or partially executed filters.
// subform for the filter builder to run in the left panel $dvlp_filter_builder = array( 'view_state' => 'min', 'edit_state' => 'view', 'sf_nav_type' => 'none', 'sf_title' => 'dvlp_filters', 'sf_html_id' => 'dvlp_filters', // Must be unique 'script' => 'php/data_view/subforms/sf_buildfilter.php', 'op_modtype' => FALSE, //if each modtype uses same fields (see below) // Does the linklist use an icon instead of a label as link 'op_sf_cssclass' => 'ftr_subform', 'op_condition' => array( array( 'func'=> 'chkTmpFtr', 'args'=> FALSE ), ), ); // subform for the filter builder in an overlay (no condition) $dvlp_overlay_filter_builder = array( 'view_state' => 'min', 'edit_state' => 'view', 'sf_nav_type' => 'none', 'sf_title' => 'dvlp_filters', 'sf_html_id' => 'dvlp_filter_builder', // Must be unique 'script' => 'php/data_view/subforms/sf_buildfilter.php', 'op_modtype' => FALSE, //if each modtype uses same fields (see below) // Does the linklist use an icon instead of a label as link 'op_sf_cssclass' => 'ftr_subform', ); // subform for the filter builder to run in the left panel preloaded with a filter $dvlp_filter_builder_atridx = array( 'view_state' => 'min', 'edit_state' => 'view', 'sf_nav_type' => 'none', 'sf_title' => 'dvlp_filters', 'sf_html_id' => 'dvlp_filters', // Must be unique 'script' => 'php/data_view/subforms/sf_buildfilter.php', 'op_modtype' => FALSE, //if each modtype uses same fields (see below) // Does the linklist use an icon instead of a label as link 'op_sf_cssclass' => 'ftr_subform', 'op_filter' => 'atr', // the filter to be used 'op_filter_args' => array( // 'arg' => 'var', // example 'atrtype' => 1, 'op_display' => 'dd' ) // 'op_condition' => // array( // array( // 'func'=> 'chkTmpFtr', // 'args'=> FALSE // ), // ), ); // subform for the filter builder to run preloaded with an attribute filter $dvlp_filter_builder_atr_preload = array( 'view_state' => 'min', 'edit_state' => 'view', 'sf_nav_type' => 'none', 'sf_title' => 'dvlp_filters', 'sf_html_id' => 'dvlp_filters', // Must be unique 'script' => 'php/data_view/subforms/sf_buildfilter.php', 'op_modtype' => FALSE, //if each modtype uses same fields (see below) // Does the linklist use an icon instead of a label as link 'op_sf_cssclass' => 'ftr_subform', 'op_filter' => 'atr', // the filter to be used 'op_filter_args' => // the argument(s) to be preloaded (optional) array( 'atrtype' => 1 ) );