OS Property support center

Edit fields in property informations

  • Albert
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
6 years 1 month ago #110153 by Albert
Edit fields in property informations was created by Albert
Good morning.
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!
Attachments:

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

More
6 years 1 month ago #110161 by Mr. Dam
Replied by Mr. Dam on topic Edit fields in property informations
Hi,
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
  • Senior Member
More
6 years 1 month ago #110228 by Albert
Replied by Albert on topic Edit fields in property informations
Sorry Dam i don't know if i explained properly the question: i want to remove those fields from the editor, where the agent inserts the data. I searched the funcion showCoreFields inside helper.php but i have found only this:

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.

More
6 years 1 month ago #110312 by Mr. Dam
Replied by Mr. Dam on topic Edit fields in property informations
Hi,
You can read this documentation: osproperty.ext4joomla.com/documentation/...ove-some-core-fields to find solution to remove core fields.
Thanks
Dam
The following user(s) said Thank You: Albert

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

Moderators: Mr. DamNguyen Phu Quan