[turba] attribute with enum array and Advanced Search

Jan Schneider jan at horde.org
Mon Dec 18 08:58:10 PST 2006


Zitat von Mark Hennessy <mhennessy at cloud9.net>:

> I want to have advanced search present a SELECT list to the user when they
> try to fill in a certain category for search.
> I set up the particular category as an enum and made it be an array of an
> array as so:
>
> $attributes['position'] = array(
>     'type' => 'enum',
>     'label' => 'Position',
>     'params' => array(array('','Middle Manager','Executive')),
>     'required' => false
> );
>
> I only get a text box on the advanced search even though that is there.  Do I
> have to kludge in by hand a pull down list into the advanced search screen or
> is there an elegant way to do it using turba's config files currently?

We would need to render the advanced search screen with Horde_Form.

Jan.

--
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/



More information about the turba mailing list