Search result page doesn't display article summary

Support desk for Villa Belluci Joomla Hotel Template
GK User
Fri Aug 21, 2015 4:55 pm
Hello,

On search result page, there is no article summary under articles titles. See here :
https://demo.gavick.com/joomla3/hotel/index.php?searchword=room&ordering=newest&searchphrase=all&limit=100&option=com_search&lang=fr

On joomla Protostar template, article summary and category are displayed under each title, like this:
Title 1
[category]
"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla blandit justo rhoncus orci condimentum, eget convallis orci euismod..."

Title 2
[category]
"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla blandit justo rhoncus orci condimentum, eget convallis orci euismod..."

How can I display article details under the titles in my search result page ?
User avatar
Fresh Boarder

GK User
Fri Aug 21, 2015 10:09 pm
I have updated this file html\com_search\search\default_results.php as below and it works.

Code: Select all
          <?php foreach($this->results as $result) : ?>
          <li class="item-view">
               <?php if ($result->href) :?>
               <a href="<?php echo JRoute::_($result->href); ?>"<?php if ($result->browsernav == 1) :?> <?php endif;?> class="inverse"> <?php echo $this->escape($result->title);?> </a>
               <?php else:?>
               <?php echo $this->escape($result->title);?>
               <?php endif; ?>
               <?php if ($result->section) : ?>
               <dd class="result-category">
                  <span class="small<?php echo $this->pageclass_sfx; ?>">
                     (<?php echo $this->escape($result->section); ?>)
                  </span>
               </dd>
            <?php endif; ?>
            <dd class="result-text">
               <?php echo $result->text; ?>
            </dd>
          </li>
          <?php endforeach; ?>
User avatar
Fresh Boarder

teitbite
Sun Aug 23, 2015 8:53 am
Hi

Yes, this is a good solution. A text from articles were removed on purpose here, so there is no long page results produced.

You can also try to disable template override by renaming /html/com_search to /html/_com_search
User avatar
Moderator


cron