Hello,

I'd like to customize the theme of search results page. As the path is search/google, normally I can create a file page-search-google.tpl.php to override the default template. But if I want to reuse an existing layout in Panels, i.e. create a new Panels page, it's impossible.

As a temporary measure, I can create new page search/mypage, insert the result block. But in the search form block, the path is always search/google. So I stuck again.

Please advise.

Comments

jcisio’s picture

OK, I found a way to do it: hook_form_alter

function mymodule_form_alter(&$form, $form_state, $form_id) {
  if ($form_id == 'google_cse_searchbox_form') {
    $form['#action'] = 'search/mypage';
  }
}

I let you decide if the module need a setting for this functionality, so that we don't need to write own code.

malcomio’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

Tidying up the issue queue, and marking issues as won't fix where the version is no longer supported.