0
Welcome Guest! Login
0 items Join Now

Search Display Question

    • Justin's Avatar
    • Justin
    • Elite Rocketeer
    • Posts: 500
    • Thanks: 3

    Search Display Question

    Posted 16 years 3 months ago
    • Does anyone know how I can get away from the default looking search page of Joomla and produce something simular to the attached image?
    • Last Edit: 16 years 3 months ago by Justin.
  • Re: Search Display Question

    Posted 16 years 3 months ago
    • hi,

      you can customize the php files inside:
      joomla_root\components\com_search\views\search\tmpl\
      to match the layout you like
    • Justin's Avatar
    • Justin
    • Elite Rocketeer
    • Posts: 500
    • Thanks: 3

    Re: Search Display Question

    Posted 16 years 3 months ago
    • Thanks Ariflin,

      Don't suppose you could direct me in the right direction for creating something like the image above?
      Not 100% what to remove/edit in the php files.

      This is the default results php file, what do I change/edit?
      <?php defined('_JEXEC') or die('Restricted access'); ?>
       
      <table class="contentpaneopen<?php echo $this->params->get( 'pageclass_sfx' ); ?>">
           <tr>
                <td>
                <?php
                foreach( $this->results as $result ) : ?>
                     <fieldset>
                          <div>
                               <span class="small<?php echo $this->params->get( 'pageclass_sfx' ); ?>">
                                    <?php echo $this->pagination->limitstart + $result->count.'. ';?>
                               </span>
                               <?php if ( $result->href ) :
                                    if ($result->browsernav == 1 ) : ?>
                                         <a href="<?php echo JRoute::_($result->href); ?>" target="_blank">
                                    <?php else : ?>
                                         <a href="<?php echo JRoute::_($result->href); ?>">
                                    <?php endif;
       
                                    echo $this->escape($result->title);
       
                                    if ( $result->href ) : ?>
                                         </a>
                                    <?php endif;
                                    if ( $result->section ) : ?>
                                         <br />
                                         <span class="small<?php echo $this->params->get( 'pageclass_sfx' ); ?>">
                                              (<?php echo $this->escape($result->section); ?>)
                                         </span>
                                    <?php endif; ?>
                               <?php endif; ?>
                          </div>
                          <div>
                               <?php echo $result->text; ?>
                          </div>
                          <?php
                               if ( $this->params->get( 'show_date' )) : ?>
                          <div class="small<?php echo $this->params->get( 'pageclass_sfx' ); ?>">
                               <?php echo $result->created; ?>
                          </div>
                          <?php endif; ?>
                     </fieldset>
                <?php endforeach; ?>
                </td>
           </tr>
           <tr>
                <td colspan="3">
                     <div align="center">
                          <?php echo $this->pagination->getPagesLinks( ); ?>
                     </div>
                </td>
           </tr>
      </table>
      Thanks
    • Justin's Avatar
    • Justin
    • Elite Rocketeer
    • Posts: 500
    • Thanks: 3

    Re: Search Display Question

    Posted 16 years 3 months ago
    • Anyone help :cry:

Time to create page: 0.069 seconds