It would be great if coffee could find content on the site also.

Comments

michaelmol’s picture

Version: » 7.x-1.0

This can be achieved with an implementation like
#1435460: Select menus in admin interface

For that reason i will close this ticket.

michaelmol’s picture

Status: Active » Closed (duplicate)
maartenverbaarschot’s picture

Status: Closed (duplicate) » Active

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)

michaelmol’s picture

Assigned: Unassigned » michaelmol

Will take a look on that.

maartenverbaarschot’s picture

Version: 7.x-1.0 » 7.x-2.x-dev
fabianderijk’s picture

I;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?

heylookalive’s picture

Status: Active » Closed (won't fix)

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.