OS Property support center

EXTRA FIELDS

  • Igor Blažic
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 years 1 month ago #43549 by Igor Blažic
EXTRA FIELDS was created by Igor Blažic
Hi !
I'm back with another question.
When I create custom field I can find it in other information , How can I place it in general information ?

Categories I wan't to add are very important and I want to show it along other general information.

Again, thank you very much for support and patience.

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

More
11 years 1 month ago #43563 by Mr. Dam
Replied by Mr. Dam on topic EXTRA FIELDS
Hi Igor,
You can make the modification in file
components > com_osproperty > helpers > layout > propertyedit.php
front-end
and
administrator > components > com_osproperty > classes > property.html.php
back-end
to move the extra field groups and extra fields from tab Other to tab General Information.
Thanks
Dam

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

  • Igor Blažic
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 years 1 month ago #43684 by Igor Blažic
Replied by Igor Blažic on topic EXTRA FIELDS
I don't know how to do that , I have basic knowledge bu waht to search , do I need to add antyhing or only change.

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

More
11 years 1 month ago #43696 by Mr. Dam
Replied by Mr. Dam on topic EXTRA FIELDS
Hi Igor,
You don't need to add anything, you only need to change a bit in source code to move extra fields to General information tab.
Thanks
Dam

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

  • Igor Blažic
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 years 1 month ago #43969 by Igor Blažic
Replied by Igor Blažic on topic EXTRA FIELDS
I see but I don't realize what I need to change ? Can you send me an edited version of those php in which my extra fields are in general tab. I will pay if needed.

I searched for extra fields in those php files but I really don't see what to change.

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

More
11 years 1 month ago #43975 by Mr. Dam
Replied by Mr. Dam on topic EXTRA FIELDS
Hi,
Please open file
components > com_osproperty > helpers > layout > propertyedit.php
and find this code
[phpcode]
if(count($groups) > 0){
for($i=0;$i<count($groups);$i++){
$group = $groups[$i];
$fields = $group->fields;
if(count($fields) > 0){
echo JHtml::_('sliders.panel', OSPHelper::getLanguageFieldValue($group,'group_name'),strtolower(str_replace(" ","",$group->group_name)));
?>
<table width="100%" class="admintable">
<?php
for($j=0;$j<count($fields);$j++){
$field = $fields[$j];
if($field->required == 1){
$require_field .= $field->field_name.",";
$require_label .= $field->field_label.",";
}
?>
<tr>
<td class="key" valign="top" style="padding-top:4px;">

<span class="hasTip" title="<?php echo $field->field_label?>::<?php echo $field->field_description?>">
<?php echo $field->field_label?>
</span>
</td>
<td>
<?php
HelperOspropertyFields::showField($field,$row->id);
?>
</td>
</tr>
<?php
}
?>
</table>
<?php
//echo $pane->endPanel();
}
}
}
[/phpcode]
and copy it to bellow this code
[phpcode]
<div class="tab-pane" id="addpropertypanel2">
<div class="col width-100">
<fieldset class="fieldsetpropertydetails">
<legend><strong><?php echo JText::_( 'OS_GENERAL_INFORMATION' ); ?></strong></legend>
[/phpcode]
Good luck
Dam

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

  • Igor Blažic
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 years 1 month ago #43982 by Igor Blažic
Replied by Igor Blažic on topic EXTRA FIELDS
Ok I think I did it right but nothing happened , to change .
This is the link to txt file to see what I did , how does propertyedit file looks now... evita-nekretnine.com.hr/hrv/after.txt

Probably I made a small mistake.

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

More
11 years 1 month ago #44002 by Mr. Dam
Replied by Mr. Dam on topic EXTRA FIELDS
Hi Igor,
Please submit ticket and send your site information with super admin acc, ftp account. I will help you to implement it.
Thanks
Dam
The following user(s) said Thank You: Igor Blažic

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

  • Igor Blažic
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 years 1 month ago #44010 by Igor Blažic
Replied by Igor Blažic on topic EXTRA FIELDS
Thank you ! You are really helping me as a customer like no other support would help.

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

Moderators: Mr. DamNguyen Phu Quan