Closed (fixed)
Project:
Panelizer (obsolete)
Version:
7.x-3.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
8 Jun 2014 at 21:51 UTC
Updated:
13 Jul 2016 at 10:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
leonardo.drupal commentedHi,
I was having the same problem. I almost gave up on panelizer and planned on using the Display Suite Search Module. But as soon as I turned on the Display Suite Search Module, the panelized search results started showing up in the search.
I have not configured or even enabled the Display Suite Search in the Search configuration. I merely enabled the module.
I do not know what the connection is between the two modules but it worked for me. Maybe you can try.
Leo
Comment #2
joelstein commentedFirst, try applying the patch at #2472519-4: Can't substitute failover default view mode, which resolves some issues substituting view modes.
Then, try adding something like to a custom module, which will populate the search index for nodes managed by Panelizer, and also populate the search result highlighting input from the rendered 'search_result' view mode, according to however you've got Panelizer configured.
You can enable the 'Search index' and 'Search result highlighting input' view modes on your content type display settings, and then configure these with custom panelized layouts. Or you can substitute them with the 'Default' or 'Page manager override' view modes. Or, you can leave them all disabled, and simply enable the 'Default' panelizer with a fallback to 'Page manager override'.
For me, this solution works like a charm, fully indexing my node content, and populating the eligible search result highlighting terms with words from the rendered node content.
Attached is a patch which adds these two hooks to Panelizer, which greatly improves the out-of-the-box experience using Panelizer and core Search.
Comment #3
damienmckennaI was honestly surprised it didn't work out of the box :-\
Comment #4
damienmckennaWill work on tests for this tomorrow.
Comment #6
damienmckennaCommitted.
Comment #7
damienmckennaThe code looks ok, so I've punted the tests to #2757415: Add tests for core search index handling.
Comment #8
joelstein commentedFantastic! Thanks for this and #2472519: Can't substitute failover default view mode.