Jump to content


Remove search controls from list (table)

list table search remove flexigrid

  • Please log in to reply
4 replies to this topic

#1 FilloG

FilloG

    Newbie

  • Members
  • Pip
  • 7 posts

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!



#2 davidoster

davidoster

    Grocery CRUD Ninja

  • Advanced Member
  • PipPipPip
  • 1,068 posts
  • LocationAthens, Greece

Posted 31 March 2013 - 08:43 AM

This is a theme thing!

Which theme do you use?


____________________________________________________________

 

rtfm_small.jpg---!!!Please read these guidelines before asking to the forums!!!---

____________________________________________________________

 

David Oster aka George Pasparakis,
http://odphotography.com
http://eletter.gr


#3 FilloG

FilloG

    Newbie

  • Members
  • Pip
  • 7 posts

Posted 02 April 2013 - 12:22 PM

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



#4 davidoster

davidoster

    Grocery CRUD Ninja

  • Advanced Member
  • PipPipPip
  • 1,068 posts
  • LocationAthens, Greece

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.

 

 

 


Edited by davidoster, 03 April 2013 - 06:59 AM.

____________________________________________________________

 

rtfm_small.jpg---!!!Please read these guidelines before asking to the forums!!!---

____________________________________________________________

 

David Oster aka George Pasparakis,
http://odphotography.com
http://eletter.gr


#5 FilloG

FilloG

    Newbie

  • Members
  • Pip
  • 7 posts

Posted 05 April 2013 - 01:20 AM

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







0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users