-
AuthorPosts
-
November 22, 2011 at 8:12 am #170958
Hi,
I have a question about the search result page.
When showing the results, it is possible that the visitor can make another query in the results.
I just only want to show the results and number of results. How do I delete the rest in the result page?See image attached. I want to delete the items in the red box.
Thank you!
Regards,
Dion
khoand Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
November 22, 2011 at 3:01 pm #425914You delete code from /components/com_search/views/search/tmpl/default_form.php
<table class="contentpaneopen<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">
<tr>
<td nowrap="nowrap">
<label for="search_searchword">
<?php echo JText::_( 'Search Keyword' ); ?>:
</label>
</td>
<td nowrap="nowrap">
<input type="text" name="searchword" id="search_searchword" size="30" maxlength="20" value="<?php echo $this->escape($this->searchword); ?>" class="inputbox" />
</td>
<td width="100%" nowrap="nowrap">
<button name="Search" onclick="this.form.submit()" class="button"><?php echo JText::_( 'Search' );?></button>
</td>
</tr>
<tr>
<td colspan="3">
<?php echo $this->lists['searchphrase']; ?>
</td>
</tr>
<tr>
<td colspan="3">
<label for="ordering">
<?php echo JText::_( 'Ordering' );?>:
</label>
<?php echo $this->lists['ordering'];?>
</td>
</tr>
</table>
<?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; ?>
AuthorPostsViewing 2 posts - 1 through 2 (of 2 total)This topic contains 2 replies, has 2 voices, and was last updated by khoand 13 years ago.
We moved to new unified forum. Please post all new support queries in our New Forum
How to delete custom query items in search result page?
Viewing 2 posts - 1 through 2 (of 2 total)