- Posts: 46
- Thank you received: 0
Edit fields in property informations
- Albert
-
Topic Author
- Offline
- Senior Member
-
My client wants to delete some fields in the property informations, i enclose some screenshot of my notes just as an example. As you can see they want to reduce the number of fileds they don't use, and in some cases wants to delete a whole cathegory as per "climate". Can you tell me the files to edit to make that happen?
Thank you!
- Mr. Dam
-
- Offline
- Administrator
-
- Posts: 13021
- Thank you received: 1688
Some core fields can't be removed like Price, Rent time frame.
With other fields in first picture, you can remove fields through file: root > components > com_osproperty > helpers > helper.php
Function: showCoreFields
Thanks
Dam
Please Log in or Create an account to join the conversation.
- Albert
-
Topic Author
- Offline
- Senior Member
-
- Posts: 46
- Thank you received: 0
public static function showCoreFields($property){
global $bootstrapHelper;
$tmpArray = array();
$tmpArray[] = OSPHelper::showBaseFields($property);
$tmpArray[] = OSPHelper::showGarage($property);
$tmpArray[] = OSPHelper::buildingInfo($property);
$tmpArray[] = OSPHelper::basementFoundation($property);
$tmpArray[] = OSPHelper::landInformation($property);
$tmpArray[] = OSPHelper::businessInformation($property);
$tmpArray[] = OSPHelper::ruralInformation($property);
ob_start();
?>
<div class="<?php echo $bootstrapHelper->getClassMapping('row-fluid'); ?>">
<?php
$i = 0;
foreach($tmpArray as $tmp){
if($tmp != ""){
$i++;
?>
<div class="<?php echo $bootstrapHelper->getClassMapping('span4'); ?>">
<?php echo $tmp; ?>
</div>
<?php
if($i == 3){
$i = 0;
echo "</div><div class='amenitygroup ".$bootstrapHelper->getClassMapping('row-fluid')."'></div><div class='".$bootstrapHelper->getClassMapping('row-fluid')."'>";
}
}
}
?>
</div>
<?php
$body = ob_get_contents();
ob_end_clean();
return $body;
}
And there are not the fields that i need to remove (for example the whole cathegory about Energy and Climate or the fileds of Superficie Inferiore,Superficie Livello principale, Superficie Superiore like in the screenshot.. I don't know the names used in the original english version)
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
- Posts: 13021
- Thank you received: 1688
You can read this documentation: osproperty.ext4joomla.com/documentation/...ove-some-core-fields to find solution to remove core fields.
Thanks
Dam
Please Log in or Create an account to join the conversation.
Support
Documentation
Information
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.