- Posts: 23
- Thank you received: 0
OS Property support center
How to delete search form
- paolo
-
Topic Author
- Offline
- Junior Member
-
Less
More
12 years 3 months ago #23380
by paolo
How to delete search form was created by paolo
hi,
i would like not to make appear the two search form that I attach. The first appear above the properties after a general research with the search module; the second appears when i enter a category through the menu.
thank you
i would like not to make appear the two search form that I attach. The first appear above the properties after a general research with the search module; the second appears when i enter a category through the menu.
thank you
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13020
- Thank you received: 1688
12 years 3 months ago #23414
by Mr. Dam
Replied by Mr. Dam on topic Re: How to delete search form
Hi Paolo,
With the first problem, it is the advance search page, so it should have the search form in the top, but it seems you submit from search module and you don't want to have the search form in the top. In new version of OS Property (2.0.3.5), in the search module, we have the new parameter, it allow you to select when submitting from the search module, the next page -advance search - won't show the search form in the top. Please download the latest version of OS Property to get this feature.
If you want to hide the filter form in the listing page (category page), you should edit in the layout file
In the file
components > com_osproperty > templates > default > grid.html.php
remove
<table cellpadding="0" cellspacing="0" width="100%" style="border:0px !important;">
<tr>
<td width="100%" valign="top" style="padding:0px;font-weight:bold;">
<table cellpadding="0" cellspacing="0" width="100%" style="border:1px solid #ccc;background-color:#efefef;padding:0px;color:black;">
<?php
$showcat = 1;
$showtype = 1;
$task = JRequest::getVar('task');
$view = JRequest::getVar('view');
if($view == "ltype"){
$showcat = 0;
$showtype = 0;
}
if($task == "category_details"){
$showcat = 0;
}
if($configClass== 1){
if(($showcat == 1) or ($showtype== 1) ){
?>
<tr>
<td width="100%" align="left" style="padding:5px;">
<?php
if($showcat == 1){
?>
<?php echo JText::_('OS_CATEGORY')?>: <?php echo $lists;?>
<?php
}
if($showtype == 1){
?>
<?php echo JText::_('OS_PROPERTY_TYPE')?>: <?php echo $lists;?>
<?php
}
?>
</td>
</tr>
<?php
}
?>
<?php
//if(($showkeyword == 1) or ($showstate == 1) ){
?>
<tr>
<td width="100%" align="left" style="padding:5px;">
<?php
//if($showkeyword==1){
?>
<?php echo JText::_('OS_KEYWORD')?>: <input type="text" class="inputbox" size="20" name="keyword" id="keyword" value="<?php echo $lists?>" />
</td>
</tr>
<?php
//if($showstate == 1){
?>
<tr>
<td width="100%" align="left" style="padding:5px;">
<?php
//}
if(HelperOspropertyCommon::checkCountry()){
?>
<?php echo JText::_('OS_COUNTRY')?>: <?php echo $lists;?>
<?php
}else{
echo $lists;
}
?>
<?php
//if($showstate == 1){
?>
<div id="div_state" style="display:inline;">
<?php echo JText::_('OS_STATE')?>: <?php echo $lists;?>
</div>
<?php echo JText::_('OS_CITY')?>: <div id="city_div" style="display:inline;"><?php echo $lists;?></div>
<?php
//}
?>
</td>
</tr>
<?php
//}
$showprice = 0;
if($showprice == 1){
?>
<tr>
<td width="100%" align="left" style="padding:5px;">
<?php
if($showprice==1){
?>
<?php echo JText::_('OS_MAXIUM_PRICE')?>: <?php echo $lists;?>
<?php
}
?>
</td>
</tr>
<tr>
<td width="100%" align="left" style="padding:5px;">
</td>
</tr>
<?php
}
}
?>
<tr>
<td width="100%" align="left" style="padding:5px;">
<?php echo JText::_('OS_SORT_BY')?>: <?php echo $lists;?>
<?php echo JText::_('OS_ORDER_BY')?>: <?php echo $lists;?>
<input type="submit" class="button" value="<?php echo JText::_('OS_FILTER')?>" />
<input type="reset" class="button" value="<?php echo JText::_('OS_RESET')?>" />
</td>
</tr>
</table>
</td>
</tr>
</table>
in file components > com_osproperty > templates > default > listing.html.php, please remove
<table cellpadding="0" cellspacing="0" width="100%" style="border:0px !important;">
<tr>
<td width="100%" valign="top" style="padding:0px;font-weight:bold;">
<table cellpadding="0" cellspacing="0" width="100%" style="border:1px solid #ccc;background-color:#efefef;padding:0px;color:black;">
<?php
$showcat = 1;
$showtype = 1;
$task = JRequest::getVar('task');
$view = JRequest::getVar('view');
if($view == "ltype"){
$showcat = 0;
$showtype = 0;
}
if($task == "category_details"){
$showcat = 0;
}
if($configClass== 1){
if(($showcat == 1) or ($showtype== 1) ){
?>
<tr>
<td width="100%" align="left" style="padding:5px;">
<?php
if($showcat == 1){
?>
<?php echo JText::_('OS_CATEGORY')?>: <?php echo $lists;?>
<?php
}
if($showtype == 1){
?>
<?php echo JText::_('OS_PROPERTY_TYPE')?>: <?php echo $lists;?>
<?php
}
?>
</td>
</tr>
<?php
}
?>
<?php
//if(($showkeyword == 1) or ($showstate == 1) ){
?>
<tr>
<td width="100%" align="left" style="padding:5px;">
<?php
//if($showkeyword==1){
?>
<?php echo JText::_('OS_KEYWORD')?>: <input type="text" class="inputbox" size="20" name="keyword" id="keyword" value="<?php echo $lists?>" />
</td>
</tr>
<?php
//if($showstate == 1){
?>
<tr>
<td width="100%" align="left" style="padding:5px;">
<?php
//}
if(HelperOspropertyCommon::checkCountry()){
?>
<?php echo JText::_('OS_COUNTRY')?>: <?php echo $lists;?>
<?php
}else{
echo $lists;
}
?>
<?php
//if($showstate == 1){
?>
<div id="div_state" style="display:inline;">
<?php echo JText::_('OS_STATE')?>: <?php echo $lists;?>
</div>
<?php echo JText::_('OS_CITY')?>: <div id="city_div" style="display:inline;"><?php echo $lists;?></div>
<?php
//}
?>
</td>
</tr>
<?php
//}
$showprice = 0;
if($showprice == 1){
?>
<tr>
<td width="100%" align="left" style="padding:5px;">
<?php
if($showprice==1){
?>
<?php echo JText::_('OS_MAXIUM_PRICE')?>: <?php echo $lists;?>
<?php
}
?>
</td>
</tr>
<tr>
<td width="100%" align="left" style="padding:5px;">
</td>
</tr>
<?php
}
}
?>
<tr>
<td width="100%" align="left" style="padding:5px;">
<?php echo JText::_('OS_SORT_BY')?>: <?php echo $lists;?>
<?php echo JText::_('OS_ORDER_BY')?>: <?php echo $lists;?>
<input type="submit" class="button" value="<?php echo JText::_('OS_FILTER')?>" />
<input type="reset" class="button" value="<?php echo JText::_('OS_RESET')?>" />
</td>
</tr>
</table>
</td>
</tr>
</table>
Good luck
Dam
P/s: In case you don't see the latest version of OS Property in the My download part, please send me the email that you entered when you purchase OS property. I will assign your account to the transaction.
With the first problem, it is the advance search page, so it should have the search form in the top, but it seems you submit from search module and you don't want to have the search form in the top. In new version of OS Property (2.0.3.5), in the search module, we have the new parameter, it allow you to select when submitting from the search module, the next page -advance search - won't show the search form in the top. Please download the latest version of OS Property to get this feature.
If you want to hide the filter form in the listing page (category page), you should edit in the layout file
In the file
components > com_osproperty > templates > default > grid.html.php
remove
<table cellpadding="0" cellspacing="0" width="100%" style="border:0px !important;">
<tr>
<td width="100%" valign="top" style="padding:0px;font-weight:bold;">
<table cellpadding="0" cellspacing="0" width="100%" style="border:1px solid #ccc;background-color:#efefef;padding:0px;color:black;">
<?php
$showcat = 1;
$showtype = 1;
$task = JRequest::getVar('task');
$view = JRequest::getVar('view');
if($view == "ltype"){
$showcat = 0;
$showtype = 0;
}
if($task == "category_details"){
$showcat = 0;
}
if($configClass== 1){
if(($showcat == 1) or ($showtype== 1) ){
?>
<tr>
<td width="100%" align="left" style="padding:5px;">
<?php
if($showcat == 1){
?>
<?php echo JText::_('OS_CATEGORY')?>: <?php echo $lists;?>
<?php
}
if($showtype == 1){
?>
<?php echo JText::_('OS_PROPERTY_TYPE')?>: <?php echo $lists;?>
<?php
}
?>
</td>
</tr>
<?php
}
?>
<?php
//if(($showkeyword == 1) or ($showstate == 1) ){
?>
<tr>
<td width="100%" align="left" style="padding:5px;">
<?php
//if($showkeyword==1){
?>
<?php echo JText::_('OS_KEYWORD')?>: <input type="text" class="inputbox" size="20" name="keyword" id="keyword" value="<?php echo $lists?>" />
</td>
</tr>
<?php
//if($showstate == 1){
?>
<tr>
<td width="100%" align="left" style="padding:5px;">
<?php
//}
if(HelperOspropertyCommon::checkCountry()){
?>
<?php echo JText::_('OS_COUNTRY')?>: <?php echo $lists;?>
<?php
}else{
echo $lists;
}
?>
<?php
//if($showstate == 1){
?>
<div id="div_state" style="display:inline;">
<?php echo JText::_('OS_STATE')?>: <?php echo $lists;?>
</div>
<?php echo JText::_('OS_CITY')?>: <div id="city_div" style="display:inline;"><?php echo $lists;?></div>
<?php
//}
?>
</td>
</tr>
<?php
//}
$showprice = 0;
if($showprice == 1){
?>
<tr>
<td width="100%" align="left" style="padding:5px;">
<?php
if($showprice==1){
?>
<?php echo JText::_('OS_MAXIUM_PRICE')?>: <?php echo $lists;?>
<?php
}
?>
</td>
</tr>
<tr>
<td width="100%" align="left" style="padding:5px;">
</td>
</tr>
<?php
}
}
?>
<tr>
<td width="100%" align="left" style="padding:5px;">
<?php echo JText::_('OS_SORT_BY')?>: <?php echo $lists;?>
<?php echo JText::_('OS_ORDER_BY')?>: <?php echo $lists;?>
<input type="submit" class="button" value="<?php echo JText::_('OS_FILTER')?>" />
<input type="reset" class="button" value="<?php echo JText::_('OS_RESET')?>" />
</td>
</tr>
</table>
</td>
</tr>
</table>
in file components > com_osproperty > templates > default > listing.html.php, please remove
<table cellpadding="0" cellspacing="0" width="100%" style="border:0px !important;">
<tr>
<td width="100%" valign="top" style="padding:0px;font-weight:bold;">
<table cellpadding="0" cellspacing="0" width="100%" style="border:1px solid #ccc;background-color:#efefef;padding:0px;color:black;">
<?php
$showcat = 1;
$showtype = 1;
$task = JRequest::getVar('task');
$view = JRequest::getVar('view');
if($view == "ltype"){
$showcat = 0;
$showtype = 0;
}
if($task == "category_details"){
$showcat = 0;
}
if($configClass== 1){
if(($showcat == 1) or ($showtype== 1) ){
?>
<tr>
<td width="100%" align="left" style="padding:5px;">
<?php
if($showcat == 1){
?>
<?php echo JText::_('OS_CATEGORY')?>: <?php echo $lists;?>
<?php
}
if($showtype == 1){
?>
<?php echo JText::_('OS_PROPERTY_TYPE')?>: <?php echo $lists;?>
<?php
}
?>
</td>
</tr>
<?php
}
?>
<?php
//if(($showkeyword == 1) or ($showstate == 1) ){
?>
<tr>
<td width="100%" align="left" style="padding:5px;">
<?php
//if($showkeyword==1){
?>
<?php echo JText::_('OS_KEYWORD')?>: <input type="text" class="inputbox" size="20" name="keyword" id="keyword" value="<?php echo $lists?>" />
</td>
</tr>
<?php
//if($showstate == 1){
?>
<tr>
<td width="100%" align="left" style="padding:5px;">
<?php
//}
if(HelperOspropertyCommon::checkCountry()){
?>
<?php echo JText::_('OS_COUNTRY')?>: <?php echo $lists;?>
<?php
}else{
echo $lists;
}
?>
<?php
//if($showstate == 1){
?>
<div id="div_state" style="display:inline;">
<?php echo JText::_('OS_STATE')?>: <?php echo $lists;?>
</div>
<?php echo JText::_('OS_CITY')?>: <div id="city_div" style="display:inline;"><?php echo $lists;?></div>
<?php
//}
?>
</td>
</tr>
<?php
//}
$showprice = 0;
if($showprice == 1){
?>
<tr>
<td width="100%" align="left" style="padding:5px;">
<?php
if($showprice==1){
?>
<?php echo JText::_('OS_MAXIUM_PRICE')?>: <?php echo $lists;?>
<?php
}
?>
</td>
</tr>
<tr>
<td width="100%" align="left" style="padding:5px;">
</td>
</tr>
<?php
}
}
?>
<tr>
<td width="100%" align="left" style="padding:5px;">
<?php echo JText::_('OS_SORT_BY')?>: <?php echo $lists;?>
<?php echo JText::_('OS_ORDER_BY')?>: <?php echo $lists;?>
<input type="submit" class="button" value="<?php echo JText::_('OS_FILTER')?>" />
<input type="reset" class="button" value="<?php echo JText::_('OS_RESET')?>" />
</td>
</tr>
</table>
</td>
</tr>
</table>
Good luck
Dam
P/s: In case you don't see the latest version of OS Property in the My download part, please send me the email that you entered when you purchase OS property. I will assign your account to the transaction.
The following user(s) said Thank You: paolo
Please Log in or Create an account to join the conversation.
Moderators: Mr. Dam, Nguyen Phu Quan
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.