Goodday,

I'm trying to use Panels to override the search result page.
It works properly for what concerns layout, styles, content etc, but it does NOT show any search result.

On the contrary if no keywords are posted or if there are no results Panles print out the 'empty text' i set up when I add the search result element in contents.

Is this a bug or something?
Any idea how to fix it?

CommentFileSizeAuthor
#2 search_result_PANELCONTENT.png111.63 KBAlessandraaa

Comments

merlinofchaos’s picture

Can you paste an export of the panel you're using? It may be as simple as just not having the right content type in place?

Alessandraaa’s picture

StatusFileSize
new111.63 KB

Thank you for the reply.

Sure, here it is:


$handler = new stdClass;
$handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
$handler->api_version = 1;
$handler->name = 'search_node_panel_context';
$handler->task = 'search';
$handler->subtask = 'node';
$handler->handler = 'panel_context';
$handler->weight = 0;
$handler->conf = array(
  'title' => 'search results',
  'no_blocks' => 0,
  'pipeline' => 'standard',
  'css_id' => '',
  'css' => '',
  'contexts' => array(),
  'relationships' => array(),
);
$display = new panels_display;
$display->layout = 'onecol';
$display->layout_settings = array();
$display->panel_settings = array(
  'style_settings' => array(
    'default' => NULL,
    'header_top' => NULL,
    'header' => NULL,
    'content' => NULL,
    'footer' => NULL,
  ),
);
$display->cache = array();
$display->title = '%keywords:html_safe';
$display->content = array();
$display->panels = array();
  $pane = new stdClass;
  $pane->pid = 'new-1';
  $pane->panel = 'content';
  $pane->type = 'block';
  $pane->subtype = 'custom_search_blocks-1';
  $pane->shown = TRUE;
  $pane->access = array();
  $pane->configuration = array(
    'override_title' => 1,
    'override_title_text' => 'Cerca ancora',
  );
  $pane->cache = array();
  $pane->style = array(
    'settings' => NULL,
  );
  $pane->css = array();
  $pane->extras = array();
  $pane->position = 0;
  $display->content['new-1'] = $pane;
  $display->panels['content'][0] = 'new-1';
  $pane = new stdClass;
  $pane->pid = 'new-2';
  $pane->panel = 'content';
  $pane->type = 'search_result';
  $pane->subtype = 'search_result';
  $pane->shown = TRUE;
  $pane->access = array();
  $pane->configuration = array(
    'type' => 'node',
    'log' => 1,
    'override_empty' => 1,
    'empty_title' => '',
    'empty' => 'nessun risultato!',
    'empty_format' => '1',
    'override_no_key' => 1,
    'no_key_title' => '',
    'no_key' => 'nessuna keyword',
    'no_key_format' => '1',
    'context' => 'argument_string_1',
    'override_title' => 1,
    'override_title_text' => 'Risultati!',
  );
  $pane->cache = array();
  $pane->style = array(
    'settings' => NULL,
  );
  $pane->css = array();
  $pane->extras = array();
  $pane->position = 1;
  $display->content['new-2'] = $pane;
  $display->panels['content'][1] = 'new-2';
  $pane = new stdClass;
  $pane->pid = 'new-3';
  $pane->panel = 'footer';
  $pane->type = 'custom';
  $pane->subtype = 'lorem_ipsum';
  $pane->shown = TRUE;
  $pane->access = array();
  $pane->configuration = array(
    'admin_title' => '',
    'title' => '',
    'body' => '',
    'format' => 0,
    'substitute' => TRUE,
  );
  $pane->cache = array();
  $pane->style = array(
    'settings' => NULL,
  );
  $pane->css = array();
  $pane->extras = array();
  $pane->position = 0;
  $display->content['new-3'] = $pane;
  $display->panels['footer'][0] = 'new-3';
  $pane = new stdClass;
  $pane->pid = 'new-4';
  $pane->panel = 'header';
  $pane->type = 'page_title';
  $pane->subtype = 'page_title';
  $pane->shown = TRUE;
  $pane->access = array();
  $pane->configuration = array(
    'markup' => 'h1',
    'class' => '',
    'id' => '',
    'override_title' => 1,
    'override_title_text' => '',
  );
  $pane->cache = array();
  $pane->style = array(
    'settings' => NULL,
  );
  $pane->css = array();
  $pane->extras = array();
  $pane->position = 0;
  $display->content['new-4'] = $pane;
  $display->panels['header'][0] = 'new-4';
  $pane = new stdClass;
  $pane->pid = 'new-5';
  $pane->panel = 'header_top';
  $pane->type = 'block';
  $pane->subtype = 'menu-menu-menu-top';
  $pane->shown = TRUE;
  $pane->access = array();
  $pane->configuration = array(
    'override_title' => 1,
    'override_title_text' => '',
  );
  $pane->cache = array();
  $pane->style = array(
    'settings' => NULL,
  );
  $pane->css = array();
  $pane->extras = array();
  $pane->position = 0;
  $display->content['new-5'] = $pane;
  $display->panels['header_top'][0] = 'new-5';
$display->hide_title = PANELS_TITLE_FIXED;
$display->title_pane = 'new-5';
$handler->conf['display'] = $display;


I HOPE I missed something out :)
I'm attaching a screenshot of panel contents.

Alessandraaa’s picture

Anybody has an idea about that?

jason.bell’s picture

Was seeing the same thing today. Not to oversimplify, but I cleared caches and results began to show.

taoofbean’s picture

Jason or Alessandraaa: would either of you mind pasting how you are trying to capture the search results page?
I am trying to create a new panels page to do just that and seem to be missing the correct query string as the title that allows me to take over the results node display
subscribe

Letharion’s picture

Status: Active » Postponed (maintainer needs more info)

Is this a problem to anyone today? I actually experimented with search in Panels recently and found it to work well.

luisfn’s picture

It still a problem to me. I've just added a Header to the panel I'm using to display search results but there isn't anything else. Should I add something to my panel in order to display the results?

Thanks

luisfn’s picture

Just found it. I had to add a content called "Search Results" inside Miscelaneous Tab.

Cheers!

esmerel’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)