[dev] add attribute in turba

Marko Djukic marko at oblo.com
Mon Jun 30 15:46:41 PDT 2003


Quoting Nuno Loureiro <nuno at co.sapo.pt>:

>
> Hi!
>
> I would like to add an attribute to Turba of the type 'set' (I presume
> this is a checkbox).
yes, it's the checkbox.


> My question is how can I do that or if I need to implement this, where's
> the proper location to do that.
in your turba/config/attributes.php

something like this:
$attributes['myChkBxField'] = array(
    'required' => false,
    'type' => 'set',
    'label' => 'These are my checkboxes',
    'params' => array(
        'values' => array(
            'value1' => 'My first choice',
            'value2' => 'My second choice',
            'value3' => 'My third choice'))
);


marko


More information about the dev mailing list