Hi,
Well, your modification should work, I recommend you to add quotes around "search".
$html = '<input '.$style.' name="filter_'.$filter->filter_namekey.'" '.$onBlur.' type="search" placeholder="Some text" '.$filter->filter_name.'" value="'.$name.'">';
After that, in order to have something more "clean", using options should be better.
$style='';
if($filter->filter_options['textBoxSize']){
$style='style="width: 90%;"';
}
if(!empty($filter->filter_options['textBoxType'])){
$style .= ' type="'.$filter->filter_options['textBoxType'].'"';
}
if(!empty($filter->filter_options['textBoxPlaceholder'])){
$style .= ' placeholder="'.str_replace('"','"',$filter->filter_options['textBoxPlaceholder']).'"';
}
But it will require some other modifications in order to add these options.
Modification of the filter type (javascript generated), modification of the view "filter | form_option" in the backend, in order to add the new options.
But your current code looks good.
Regards,