sonata-project / SonataAdminBundle

The missing Symfony Admin Generator
https://docs.sonata-project.org/projects/SonataAdminBundle
MIT License
2.11k stars 1.26k forks source link

Exclude admin from Global search #5988

Closed SlimenTN closed 4 years ago

SlimenTN commented 4 years ago

Sorry for this but I had to ask, because I can't find an answer anywhere and this guy asked this question years ago and nobody answered https://stackoverflow.com/questions/54125748/sonata-admin-bundle-exclude-custom-admin-from-global-search

I have an admin without entity and I want to exclude it from global search to avoid Class not found exception I've added global_search="false" inside tag but it didn't work:

<service id="campaign.calendar" class="CampaignBundle\Admin\CalendarAdmin">
      <tag name="sonata.admin" manager_type="orm" group="admin" label="Calendar" global_search="false"/>

      <argument />
      <argument />
      <argument>CampaignBundle\Controller\CalendarController</argument>
</service>
core23 commented 4 years ago

Sorry, but we try to keep github issues for feature requests and bugs only.

SlimenTN commented 4 years ago

but no one is answering there !

VincentLanglet commented 4 years ago

but no one is answering there !

And no one will answer here.

SlimenTN commented 4 years ago

in the documentation they said set global_search="false" but it's not working ! where should look for an answer then ?

VincentLanglet commented 4 years ago

in the documentation they said set global_search="false" but it's not working !

That's not what the documentation is saying: https://symfony.com/doc/master/bundles/SonataAdminBundle/reference/search.html

where should look for an answer then ?

SlimenTN commented 4 years ago

https://stackoverflow.com/questions/54125748/sonata-admin-bundle-exclude-custom-admin-from-global-search this question was posted years ago and nobody answered if I open another one they will mark it as duplicated tell more about getting help from stackoverflow .

phansys commented 3 years ago

Feature addressed at #6609.