Page 1 of 1

Calguys User Directory, custom form texts in search template

Posted: Tue Jul 22, 2014 1:00 pm
by urheat
In search template the select element is created like this:

Code: Select all

    {else if $data.fieldtype == 'select'}
      <select name="{$actionid}ud_propvalue[{$propname}]">
      {html_options options=$data.options}
      </select>
The result HTML looks something like this:

Code: Select all

<select name="m1025dud_propvalue[food]">
<option value="-1">Choose</option>
<option value="Pizza">Pizza</option>
<option value="Steak">Steak </option>
</select>
Is there a way I could change option’s visible text (the value should naturally be the same)? Like this:

Code: Select all

<select name="m1025dud_propvalue[food]">
<option value="-1">Choose</option>
<option value="Pizza">Order Pizza</option>
<option value="Steak">Enjoy Steak</option>
</select>
The problem – I think – is that option tags are generated with html_option –fucntion.

Thanks in advance!

Re: Calguys User Directory, custom form texts in search temp

Posted: Wed Jul 23, 2014 7:23 am
by urheat
To be more clear I think my question is simply, how to loop "manually" without using html_options -function?