Hi,
Anyone knows how to remove columns filters on datatables theme? I need to show only the global filter.
Thanks!
⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠
Posted 13 May 2015 - 00:43 AM
Hi,
Anyone knows how to remove columns filters on datatables theme? I need to show only the global filter.
Thanks!
Posted 16 May 2015 - 16:46 PM
Hi Ewerton,
You need to edit the list.php file in view of datatables theme, in the <tfoot> label have a cycle that create a input fields for all columns that you have in your table, so only remove this cycle and check
<tfoot> <tr> <?php foreach($columns as $column){?> <th><input type="text" name="<?php echo $column->field_name; ?>" placeholder="<?php echo $this->l('list_search').' '.$column->display_as; ?>" class="search_<?php echo $column->field_name; ?>" /></th> <?php }?> </tr> </tfoot>