Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
An actual search would make sense when Coffee doesn't find any menu results. Alfred does a similar thing when no apps are found (Google Search)
So when there are no results, show 1 fake result with "Search site for 'bla'"
Could do that in the JS; only I'm not sure if I can detect there if the search module is enabled. So maybe do it even before the JSON gets rendered (so with PHP code)
Hey @fabianderijk! With the changes in the 2.x branch you can now include content into results via the new commands hook. It won't perform a search as were but allow you to supply a predefined list of nodes to make available.
Marking as closed wont fix. I'm currently thinking on ways to have advanced commands that would allow for searching and other tasks.
Comments
Comment #1
michaelmol commentedThis can be achieved with an implementation like
#1435460: Select menus in admin interface
For that reason i will close this ticket.
Comment #2
michaelmol commentedComment #3
maartenverbaarschot commentedAn actual search would make sense when Coffee doesn't find any menu results. Alfred does a similar thing when no apps are found (Google Search)
So when there are no results, show 1 fake result with "Search site for 'bla'"
Could do that in the JS; only I'm not sure if I can detect there if the search module is enabled. So maybe do it even before the JSON gets rendered (so with PHP code)
Comment #4
michaelmol commentedWill take a look on that.
Comment #5
maartenverbaarschot commentedComment #6
fabianderijkI;ve created a sandbox module for this: http://drupal.org/sandbox/fabianderijk/1645556
Maybe you can take a look at this. Or should I create a patch / submodule for coffee?
Comment #7
heylookalive commentedHey @fabianderijk! With the changes in the 2.x branch you can now include content into results via the new commands hook. It won't perform a search as were but allow you to supply a predefined list of nodes to make available.
Marking as closed wont fix. I'm currently thinking on ways to have advanced commands that would allow for searching and other tasks.