⚠ 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. ⚠

  •     

profile picture

Remove search controls from list (table)



FilloG
  • profile picture
  • Member

Posted 29 March 2013 - 03:10 AM

Hello everyone,

 

On my quest to configure the List (table) view, I've found several methods to disable all sorts of functions (export, actions, delete, add, etc.), however I didn't found anything on how to disable the search controls. 

 

So, have I missed something? How can one go about disabling the search fields/buttons on the list (table) view?

 

Thanks in advance for the time taken with this question and for the feedback provided!


davidoster
  • profile picture
  • Member

Posted 31 March 2013 - 08:43 AM

This is a theme thing!

Which theme do you use?


FilloG
  • profile picture
  • Member

Posted 02 April 2013 - 12:22 PM

I was using flexigrid, is there theme without the search bar? How can I remove it?


davidoster
  • profile picture
  • Member

Posted 03 April 2013 - 06:56 AM

For flexigrid you need to go to assets/grocery_crud/themes/flexigrid/views and open the file 

list_template.php

 

there you will find the following code:

 

<div class="pGroup">
<div class="pSearch pButton" id='quickSearchButton' title="<?php echo $this->l('list_search');?>"><span></span>
</div>
</div>
<div class="btnseparator"></div>

 

You need to delete or better html remark it,

<!--<div class="pGroup">
<div class="pSearch pButton" id='quickSearchButton' title="<?php echo $this->l('list_search');?>"><span></span>
</div>
</div>
<div class="btnseparator"></div>-->

 

In order to be 100% correct you should also remove the js functions that toggle the search bar, this is under 

assets/grocery_crud/themes/flexigrid/js/flexigrid.js

 

Good luck.

 

 

 


FilloG
  • profile picture
  • Member

Posted 05 April 2013 - 01:20 AM

Cool! Thanks for the help, I'll try it out ;)