Calguys User Directory, custom form texts in search template

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
urheat
Forum Members
Forum Members
Posts: 243
Joined: Sat Oct 17, 2009 6:50 am

Calguys User Directory, custom form texts in search template

Post 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!
urheat
Forum Members
Forum Members
Posts: 243
Joined: Sat Oct 17, 2009 6:50 am

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

Post by urheat »

To be more clear I think my question is simply, how to loop "manually" without using html_options -function?
Post Reply

Return to “Modules/Add-Ons”