[turba] How to define dropdown lists and checkboxes in attributes.php?

Volker Then vt at volkerthen.com
Tue Aug 22 04:47:20 PDT 2006


Quoting Jan Schneider <jan at horde.org>:

> Zitat von Volker Then <vt at volkerthen.com>:
>
>> Hi,
>>
>> I need some drop down lists (select fields) and checkboxes (yes/no)  
>> in some of my addressbooks. How would I define those in  
>> config/attributes.php? I'll searched the wiki but did not find  
>> anything.
>
> An enum (select) field looks like this:
>
> $attributes['currency'] = array(
>     'label' => 'Währung',
>     'type' => 'enum',
>     'params' => array(array('EUR' => 'EUR', 'USD' => 'USD')),
>     'required' => false
> );
>
> A checkbox should be straight forward and doesn't even require 'params'.
>
> Jan.

Thanks, Jan!

That helped.

Something else: Would it be possible some day to make certain fields  
(like critical client data) only visible to certain usergroups?

Volker

>
> -- 
> Do you need professional PHP or Horde consulting?
> http://horde.org/consulting/
>
> -- 
> Turba mailing list - Join the hunt: http://horde.org/bounties/#turba
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: turba-unsubscribe at lists.horde.org



-- 

      Volker Then
      Diplom-Physiker
      Kaiser-Friedrich-Ring 48
      65185 Wiesbaden

      +49 611 925 98 70
      vt at volkerthen.com




More information about the turba mailing list