Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude admin from Global search #5988

Closed
SlimenTN opened this issue Mar 25, 2020 · 7 comments
Closed

Exclude admin from Global search #5988

SlimenTN opened this issue Mar 25, 2020 · 7 comments
Labels

Comments

@SlimenTN
Copy link

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
Copy link
Member

core23 commented Mar 25, 2020

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

@core23 core23 closed this as completed Mar 25, 2020
@SlimenTN
Copy link
Author

but no one is answering there !

@VincentLanglet
Copy link
Member

but no one is answering there !

And no one will answer here.

@SlimenTN
Copy link
Author

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

@VincentLanglet
Copy link
Member

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
Copy link
Author

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
Copy link
Member

phansys commented Mar 26, 2021

Feature addressed at #6609.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants