The following snippet of code is a dropdown that allows the user to filter the results based on what the value of the dropdown (it uses javascript to apply the filter).
The dropdown is generated by the 'LISE Instance Item' custom field definition
The following code is how I think it should work, but alas it does not.
Code: Select all
{foreach from=$fielddefs item=fielddef}
{if $fielddef.type != 'Categories'}
<select class="wide select-filter" name="{$actionid}search_{$fielddef->alias}" id="filter_{$fielddef->alias}">
<option value='all-{$fielddef->name|escape|lower|replace:' ':'-'}'>{$fielddef->name}</option>
{foreach from=$fielddef->values item=value}
{if $value.child-service ne '1'}
<option value="{$value|escape|lower|replace:'&':'and'|replace:' ':'-'}">{$value}</option>
{/if}
{/foreach}
</select>
{/if}
{/foreach}
Any ideas are welcome.
cheers
Mark


