Closed (fixed)
Project:
Panopoly
Version:
7.x-1.x-dev
Component:
Search
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
22 Oct 2013 at 14:09 UTC
Updated:
31 Jul 2015 at 15:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
vegardjo commentedThis is kind of related to my question: #2118489: Add (search) widget to template in code
The Search form block is just the standard Drupal search, while the search widget you can add to a panel is a widget that searches the included Search API view "Database Search". There is no way I am aware of that you can use the first block to search in the latter.
I can think of two solutions:
* Follow the question I have above, and (if there is an answer) impement that directly in your page.tpl.php template file
* Expose a fulltext search filter on the view as a block, then place if with Context / block UI. You should find tutorials on how to do this if you Google it.
Comment #2
lsolesen commentedSeems to be an answer here that would do the trick, so closing.
Comment #4
yakoub commentedi believe the correct solution is simply to add search_block_form to $formd_id condition at this line :
http://cgit.drupalcode.org/panopoly_search/tree/panopoly_search.module#n16
what happens is panopoly_search form alter does its work for search_form and not search_block_form .
Comment #5
yakoub commentedi know this patch doesn't follow correct format and naming convention .
but it still describes what needs to be done .
Comment #6
dsnopek@yakoub: Thanks for the patch!
Sounds like a bug, but I haven't tried to reproduce yet. Marking as "Needs review" because it has a patch, and adding to the sprint board.
Comment #7
dsnopekComment #8
mglamanHere is a patch which adds support to the Search Box block provided by core's Search module.
Comment #9
mglamanHere is Travis build from fork: https://travis-ci.org/mglaman/panopoly/builds/70544115
Comment #10
dsnopekHere's another build of the same patch (because @mglaman's errored): https://travis-ci.org/panopoly/panopoly/builds/71269173
Comment #11
dsnopekHrm, also, looking at this patch it appears to also include the changes in #2500307: Update search_api to 1.15 and search_api_solr to 1.8 which should be removed.
Comment #12
dsnopekTests on Travis passed! And worked for me in my manual testing. Here is a reroll of the patch with the changes from #2500307: Update search_api to 1.15 and search_api_solr to 1.8 removed.
Comment #14
dsnopekCommitted this yesterday! Closing.