Difference between revisions of "Subform Options"

From ARK
Jump to: navigation, search
(op_xmi_sort_field)
Line 1: Line 1:
 +
Optional settings ''should'' all be defined using the 'op_' prefix, however some are not. The optional settings described here are generic to all subforms. Other script specific settings should be documented IN THAT SCRIPT.
 +
 
This is a rough and ready list of op_ setting that can be added to subforms. Options are by their nature optional. Do NOT add any options that must be set (these should be given proper names and descibed  
 
This is a rough and ready list of op_ setting that can be added to subforms. Options are by their nature optional. Do NOT add any options that must be set (these should be given proper names and descibed  
  
===op_xmi_sorting===
+
====op_xmi_sorting====
  
 
* Name: op_xmi_sorting
 
* Name: op_xmi_sorting
Line 10: Line 12:
 
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.
 
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===
+
====op_xmi_sort_field====
  
 
* Name: op_xmi_sort_field
 
* Name: op_xmi_sort_field
Line 19: Line 21:
 
This option requires 'op_xmi_sorting' to be set TRUE. This should be populated with the full field array that is desired.
 
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===
+
====op_xmi_sort_field====
  
 
* Name: op_src_meta_dsiplay
 
* Name: op_src_meta_dsiplay

Revision as of 12:53, 13 November 2008

Optional settings should all be defined using the 'op_' prefix, however some are not. The optional settings described here are generic to all subforms. Other script specific settings should be documented IN THAT SCRIPT.

This is a rough and ready list of op_ setting that can be added to subforms. Options are by their nature optional. Do NOT add any options that must be set (these should be given proper names and descibed

op_xmi_sorting

  • Name: op_xmi_sorting
  • Type: Subform Specific
  • Subform: sf_xmi
  • Requires: op_xmi_sort_field

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

  • Name: op_xmi_sort_field
  • Type: Subform Specific
  • Subform: sf_xmi
  • Requires: op_xmi_sorting

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

  • Name: op_src_meta_dsiplay
  • Type: Subform Specific
  • Subform: anything with a mini search box made by mkSearchSimple()
  • Requires: an array ($conf_mod_res_meta_fields) to be setup for the mod being searched

This option switches on the display of meta fields for the module being searched. eg always show a contact's name when searching the ABK.