Sf linklist

From ARK
Revision as of 18:15, 14 July 2010 by Guy (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Description

The sf_linklist is for outputting formatted lists of links. The text appearing within the link is markup and is thus non language specific. The subform does not handle data.

As this does not handle data, the fields array is used to carry the link list. This follows the standard ARK format as follows:

Additional Fields

There are no obligatory additional fields, but beware that 'fields' must contain the link list and should NOT contain ARK fields

Example Configuration

An example of sf_linklist using a single modtype

$delp_subform1 =
    array(
        'view_state' => 'max',
        'edit_state' => 'view',
        'sf_nav_type' => 'none',
        'sf_title' => 'lplinklist', 
        'sf_html_id' => 'lplinklist', // Must be unique
        'script' => 'php/subforms/sf_linklist.php',
        'op_label' => 'space',
        'op_input' => 'save',
        'op_modtype' => FALSE, //if each modtype uses same fields (see below)
        'op_condition' =>
            array(
                array(
                    'func'=> 'chkUserPerm',
                    'args'=> array(84)
            )
        ),
        'fields' => $lp_link_list
);