-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
Custom search in CP with a named query scope #65
Custom search in CP with a named query scope #65
Conversation
Thanks, I'll take a look at this after work today or at some point during the weekend 👍 |
What's your use case for needing to add a scope to just the search? |
By default it searches on every field. But fields may not been present
(computed fields) or not interesting to search. Or I may want to search on
a relation
Il giorno ven 6 ago 2021 alle 18:43 Duncan McClean ***@***.***>
ha scritto:
What's your use case for needing to add a scope to just the search?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#65 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAINRU5EY73FBFKYXIBQX5TT3QGMLANCNFSM5BVJX3QQ>
.
--
Daniele Rosario
CTO
Weble.it <http://weble.it/>
Via Enrico Fermi 265
36100 Vicenza
+39 0444 130094 <+390444130094>
+39 328 3017134 <+393283017134>
|
Hmm, I'm just wondering if that's the right way to go about it.... What about if developers could customise the fields used when performing a search query? And if they're not configured, it would use all of them, like it does now. // config/runway.php
'search' => [
'fields' => ['title', 'some_field', 'user.name'],
], What do you think - is that something that would work for you? |
That would be an improvement, but still not as flexible as a custom scope.
Maybe both or move the scope as a parameter as well?
Il giorno ven 6 ago 2021 alle 19:58 Duncan McClean ***@***.***>
ha scritto:
Hmm, I'm just wondering if that's the right way to go about it....
What about if developers could customise the fields used when performing a
search query? And if they're not configured, it would use all of them, like
it does now.
// config/runway.php
'search' => [
'fields' => ['title', 'some_field', 'user.name'],
],
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#65 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAINRU6YZJ634I5CZGAA3X3T3QPCTANCNFSM5BVJX3QQ>
.
--
Daniele Rosario
CTO
Weble.it <http://weble.it/>
Via Enrico Fermi 265
36100 Vicenza
+39 0444 130094 <+390444130094>
+39 328 3017134 <+393283017134>
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I think I see where you're coming from - I didn't before - merging now!
Released in v2.1.6. |
Thanks! |
Description
It would be cool to be able to customize the way the CP search works in the Listing page, by adding a scope named
runwaySearch
to your model.