php - SilverStripe remove ModelAdmin search -


is there way remove search functionality modeladmin pages?

for i'm using css, there should better solution.

#filters-button {     display: none; } 

we talked on irc, record let me put out here:

there has been possibility overwrite public function searchform() { return false; } , therefore remove form. not effect #filters-button (3.4) or sidebar (3.0-3.3).
@ time, have use css.

i have created pull request implement $showsearchform work same way $showimportform.

https://github.com/silverstripe/silverstripe-framework/pull/6237
https://github.com/silverstripe/silverstripe-framework/pull/6309 (re-raised pull request)

this merged 3.4.2 3.5.0, once in can do:

class foobaradmin extends modeladmin {     private static $url_segment = 'foobar';     private static $managed_models = ['foo', 'bar'];     public $showimportform = false;     public $showseachform = false;     # or if want disable seach foo not bar:     #public $showseachform = ['bar']; } 

Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -