Search Plugin Module enhancement

Hi

I'd like to recommend we add $config['search']['results_page_title'] = 'Search results'; to the Search module config.

We can then improve the search results page by adding $vars['page_title'] = $this->fuel->search->config('results_page_title'); to the controller and editing the search view to use this variable as the h1 title.

Cheers

Comments

  • edited June 2015
    You can actually pass that variable and any other variable to the page if you create a "search" page in the CMS or you use the _variables file:
    http://docs.getfuelcms.com/general/pages-variables
    // in the views/_variables/search.php $vars['page_title'] = 'Search results'; // OR in the views/_variables/global.php $pages['search'] = array('page_title' => 'Search results');
Sign In or Register to comment.