[turba] Attibute Guide?

Marko Djukic marko at oblo.com
Wed Jun 18 11:35:23 PDT 2003


radio already exists. it's called "set" i believe. i might be wrong. essentially
all the form field types available in Horde_Form are available as attribute
types in turba - look in horde/lib/Form.php

marko


Quoting James Van Sickle <gothbert at spamcop.net>:

> Hey
>
>    Is there a guide for use and formatting of each attribute type for the
> Turba
> attributes.php file?  I am working on adding a Radio field and URL link to
> the
> Address Book.  I have the following code in the attributes.php file, but get
> the following error "Warning: Invalid argument supplied for foreach() in
> /usr/home2/hordexp/lib/Form/Renderer.php on line 747."
>
> $attributes['primaryLocation'] = array(
> 	'label' => _("Primary Location"),
> 	'type' => 'radio',
> 	'required' => false,
> 	'params' => array('Home', 'Work')
> );
>
>    I would also like to add a URL link (i.e. Personal Webpage) to the address
> book.  Should I use a type of 'link' or one of the others?
>
> -James
>
> --
> Turba mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: turba-unsubscribe at lists.horde.org
>




More information about the turba mailing list