Difference between revisions of "Mod settings.php"

From ARK
Jump to: navigation, search
(Display Options)
Line 7: Line 7:
 
The display options influence how specific types of context record are displayed in navigation forms.  Context data often requires brackets denoting the type of context.  The code for configuring display looks like this:
 
The display options influence how specific types of context record are displayed in navigation forms.  Context data often requires brackets denoting the type of context.  The code for configuring display looks like this:
 
<pre>
 
<pre>
$conf_br = array('type_2_L' => '(', 'type_2_R' => ')','type_1_L' => '[', 'type_1_R' => ']','type_6_L' => '*', 'type_6_R' => '*', 'type_4_L' => '', 'type_4_R' => '');
+
$conf_br = array('type_2_L' => '(', 'type_2_R' => ')','type_1_L' => '[', 'type_1_R' =>  
 +
']','type_6_L' => '*', 'type_6_R' => '*', 'type_4_L' => '', 'type_4_R' => '');
 
</pre>
 
</pre>
 
In the above, 'type_#' refers to the type number in cxt_lut_cxttype.  The L or R refers to the whether the symbol will be displayed to the left or right of the context number.  The symbol itself appears after => between ' '.
 
In the above, 'type_#' refers to the type number in cxt_lut_cxttype.  The L or R refers to the whether the symbol will be displayed to the left or right of the context number.  The symbol itself appears after => between ' '.

Revision as of 07:01, 14 November 2008

These files contain settings for each installed module. Each module will require different settings depending on the data structure. For this documentation a standard single-context recording 'mod_cxt_settings.php' file will be discussed as an example.

Display Options

The display options influence how specific types of context record are displayed in navigation forms. Context data often requires brackets denoting the type of context. The code for configuring display looks like this:

$conf_br = array('type_2_L' => '(', 'type_2_R' => ')','type_1_L' => '[', 'type_1_R' => 
']','type_6_L' => '*', 'type_6_R' => '*', 'type_4_L' => '', 'type_4_R' => '');

In the above, 'type_#' refers to the type number in cxt_lut_cxttype. The L or R refers to the whether the symbol will be displayed to the left or right of the context number. The symbol itself appears after => between ' '.