Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • timmiller Friend
    #161800

    Hey Guys,

    I’m not sure if this a Joomla question or a template question…

    I’d like to remove ordering and all the check boxes…see image.

    Not sure how to do it. I tried changing a few files but nothing really.
    Thanks!

    Tim


    1. search-remove
    chavan Friend
    #382833

    Hello,

    Go to this path componentscom_searchviewssearchtmpldefault_form.php

    Remove this code for ordering in default_form.php

    <tr>
    <td colspan="3">
    <label for="ordering">
    <?php echo JText::_( 'Ordering' );?>:
    </label>
    <?php echo $this->lists['ordering'];?>
    </td>
    </tr>

    And also remove this code for checkbox in default_form.php


    <?php if ($this->params->get( 'search_areas', 1 )) : ?>
    <?php echo JText::_( 'Search Only' );?>:
    <?php foreach ($this->searchareas['search'] as $val => $txt) :
    $checked = is_array( $this->searchareas['active'] ) && in_array( $val, $this->searchareas['active'] ) ? 'checked="checked"' : '';
    ?>
    <input type="checkbox" name="areas[]" value="<?php echo $val;?>" id="area_<?php echo $val;?>" <?php echo $checked;?> />
    <label for="area_<?php echo $val;?>">
    <?php echo JText::_($txt); ?>
    </label>
    <?php endforeach; ?>
    <?php endif; ?>

    khoand Friend
    #382834

    Hi,
    You do following steps:
    – Login backend
    – Choose Components–>Search
    – Click Option
    – Choose No for “Use Search Areas” item
    – Save & Close

    timmiller Friend
    #382896

    Chavan,

    Thanks much- that was it. I can’t believe so many levels of directories to get to that page…

    thanks again!

    khoand- there is nothing in Search Component except Statistics.

    Tim

    chavan Friend
    #382919

    you are most welcome Timmiller

Viewing 5 posts - 1 through 5 (of 5 total)

This topic contains 5 replies, has 3 voices, and was last updated by  chavan 13 years, 7 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum