-
-
Notifications
You must be signed in to change notification settings - Fork 485
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
Add the ability to disable global_search #1683
Comments
This feel weird cause if we start adding such config, it would be expected to have
Best would be an entry point on SonataAdminBundle, if it doesn't exist already. I see multiple solutions:
so it would have been easier to set the value be decorating the admin with an admin extension... |
@VincentLanglet Thanks for your help and suggestions. I agree it would be a slippery slope having to allow for every potential config option. Before I go on, please let me prefix this with an apology: Sorry, for only whinging and not offering any solutions. I'd help if I had the time but currently it's not an option for me. I feel like I need to mention this in case someone else comes along with the same issue:
It seems like you can't realistically do that with the code in it's current state. At least not without making and even bigger mess than what I have in my original "solution". |
Good point, does sonata-project/SonataAdminBundle#8170 would solve your issue ? |
Certainly looks like it would help :) |
I release 4.30.0 from SonataAdmin so I think we can close this now |
I'm not entirely sure if this is a bug, or a feature, or me being a dolt but I wanted to exclude the user admin from the global search and the only way I could do it was to completely re-implement the service like this:
All of this, just because I needed to add
global_search: false
. Is there already a better way to do this? If not, is the correct fix to extend the configuration to allow for the extra tag attribute? If so, I could give it a crack.The text was updated successfully, but these errors were encountered: