Search: Customising the Search Results Page Layout - Joomla! Forum - community, help and support


hello,

i'm running in difficulty editing layout of search result page.

http://waynebank.hostbyweb.net/index.ph ... &itemid=87

as can see, results clip in our main menu. natural in design of our website, , put few breaks in push content down.

unfortunately, don't think can search page. i've been referencing article on joomla! wiki:
http://docs.joomla.org/customising_the_ ... sults_page

more specifically, have been editing default_results.php file within search component directory. (located: /components/com_finder/views/search/tmpl/default_results.php)

however, i'm totally unfamiliar php, , previous 2 attempts @ editing file have not been successful (no changes occurred on search page.) want add 2 breaks page content doesn't clip in our menus.

any on issue appreciated.

here contents of our default_results php file:

code: select all

<?php
/**
 * @package     joomla.site
 * @subpackage  com_finder
 *
 * @copyright   copyright (c) 2005 - 2012 open source matters, inc. rights reserved.
 * @license     gnu general public license version 2 or later; see license
 */

defined('_jexec') or die;

// activate highlighter if enabled.
if (!empty($this->query->highlight) && $this->params->get('highlight_terms', 1)) {
   jhtml::_('behavior.highlighter', $this->query->highlight);
}

// application object.
$app = jfactory::getapplication();

// display suggested search if different current search.
if (($this->suggested && $this->params->get('show_suggested_query', 1)) || ($this->explained && $this->params->get('show_explained_query', 1))):
?>
   <div id="search-query-explained">
      <?php
      // display suggested search query.
      if ($this->suggested && $this->params->get('show_suggested_query', 1))
      {
         // replace base query string suggested query string.
         $uri = juri::getinstance($this->query->touri());
         $uri->setvar('q', $this->suggested);

         // compile suggested query link.
         $link   = '<a href="' . jroute::_($uri->tostring(array('path', 'query'))) . '">'
               . $this->escape($this->suggested)
               . '</a>';

         echo jtext::sprintf('com_finder_search_similar', $link);
      }
      // display explained search query.
      elseif ($this->explained && $this->params->get('show_explained_query', 1)) {
         echo $this->explained;
      }
      ?>
   </div>
<?php
endif;

if ($this->total == 0):
?>

   <div id="search-result-empty">
      <h2><?php echo jtext::_('com_finder_search_no_results_heading'); ?></h2>
      <?php if ($app->getlanguagefilter()) : ?>
      <p><?php echo jtext::sprintf('com_finder_search_no_results_body_multilang', $this->escape($this->query->input)); ?></p>
      <?php else : ?>
      <p><?php echo jtext::sprintf('com_finder_search_no_results_body', $this->escape($this->query->input)); ?></p>
      <?php endif; ?>
   </div>
<?php
else:
   // prepare pagination string.  results x - y of z
   $start   = (int) $this->pagination->get('limitstart')+1;
   $total   = (int) $this->pagination->get('total');
   $limit   = (int) $this->pagination->get('limit') * $this->pagination->get('pages.current');
   $limit   = (int) ($limit > $total ? $total : $limit);
   $pages   = jtext::sprintf('com_finder_search_results_of', $start, $limit, $total);
?>

   <br id="highlighter-start" />
   <dl class="search-results<?php echo $this->pageclass_sfx; ?>">
      <?php
      for ($i = 0, $n = count($this->results); $i < $n; $i++):
         $this->result   = &$this->results[$i];
         $layout         = $this->getlayoutfile($this->result->layout);
      ?>
      <?php echo $this->loadtemplate($layout); ?>
      <?php
      endfor;
      ?>
   </dl>
   <br id="highlighter-end" />

   <div class="search-pagination">
      <div class="pagination">
         <?php echo $this->pagination->getpageslinks(); ?>
      </div>
      <div class="search-pages-counter">
         <?php echo $pages; ?>
      </div>
   </div>
<?php
endif;

i tried solving issue on test joomla site, using same template beez_20. here solution using ie 8.0 developer tools.

steps 5-7 explained in images below.





Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support