Tell me more ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

In search results page,

the search form and search results are in the content area.

Can we insert another block between the search form and results list? Or adjust the order for example put "spelling-suggestions" on the top of the form, then add another block between the form and search extra provided by display suite.

If without existing templates, guessing we will have to modify the $node['content'].

Any ideas are welcome, thanks

<form id="search-form" class="search-form" accept-charset="UTF-8" method="post" action="/search/all/test">
<div class="spelling-suggestions">
<div class="ds-search-extra">One result</div>
share|improve this question

1 Answer

My current method is dirty:

  $build['search_form_resort'] = $build['search_form'];
  unset($build['search_form']);

Then put the $build['search_form_resort'] under the $build['suggestions'].

Read more: http://api.drupal.org/api/drupal/modules%21search%21search.pages.inc/function/search_view/7

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.