我已经开发了一个以EasyAdmin为后端的在线学习网站。一切正常,但是我想隐藏或禁用Crud页面顶部的搜索栏。我还没有覆盖任何模板,只是基于我的实体创建了带有字段和自定义查询构建器的CRUD来仅通过登录用户创建的索引内容。
似乎找不到有关如何在线或在文档中进行操作的任何信息。是否可以添加隐藏或禁用默认搜索栏的选项?谢谢你!
I have developped an online learning website with EasyAdmin as backend. Everything works fine, but I'd like to hide or disable the search bar on top of the crud pages. I have not overridden any templates, just created crud based on my entities with fields and a custom query builder to only index content created by the logged in user.
Can't seem to find any info on how to do it online or in the doc. Is it possible to add an option to hide or disable the default search bar? Thank you!
发布评论
评论(1)
https://symfony.com/ doc/3.x/easyadminbundle/crud.html#search-order-and-and-pagination-options
在您的仪表板中:
这就是您所要求的。但是您可以走得更远:
- >仅在特定的crudController上隐藏搜索栏:
- >添加颗粒控制条件:
https://symfony.com/doc/3.x/EasyAdminBundle/crud.html#search-order-and-pagination-options
In your Dashboard:
That's what you asked for. But you can go further:
-> Hide the search bar only on a specific CrudController:
-> Add conditions for granular control: