OS Property support center

Remove sort fields from advanced search

  • Dimitrios Papanikolaou
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 years 2 months ago #42271 by Dimitrios Papanikolaou
Remove sort fields from advanced search was created by Dimitrios Papanikolaou
How can I remove the fields: featured and title from advanced search?
Thanks in advance

Please Log in or Create an account to join the conversation.

More
11 years 2 months ago #42282 by Mr. Dam
Replied by Mr. Dam on topic Remove sort fields from advanced search
Hi,
To remove fields in Advanced search form, please follow these steps
Open file: components > com_osproperty > helpers > common.php
find

<div class="span12">
<strong>
<?php echo JText::_('OS_FEATURED');?>:
</strong>
<?php
$isFeatured = JRequest::getVar('isFeatured',0);
if($isFeatured == 1){
$checked = "checked";
}else{
$checked = "";
}
?>
<input type="checkbox" name="isFeatured" id="isFeatured" value="<?php echo $isFeatured;?>" <?php echo $checked;?> onclick="javascript:changeValue('isFeatured')" />
</div>

and remove it

find

<div class="span12">
<strong>
<?php echo JText::_('OS_KEYWORD');?>
</strong>
<div class="clearfix"></div>
<input type="text" class="input-large" value="<?php echo htmlspecialchars($lists)?>" name="keyword" style="width:180px !important;" />
</div>

and remove it

Good luck
Dam

Please Log in or Create an account to join the conversation.

Moderators: Mr. DamNguyen Phu Quan