- Posts: 22
- Thank you received: 1
OS Property support center
EXTRA FIELDS
- Igor Blažic
-
Topic Author
- Offline
- Junior Member
-
Less
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.
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.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13059
- Thank you received: 1696
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
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
-
Less
More
- Posts: 22
- Thank you received: 1
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.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13059
- Thank you received: 1696
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
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
-
Less
More
- Posts: 22
- Thank you received: 1
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.
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.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13059
- Thank you received: 1696
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 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
-
Less
More
- Posts: 22
- Thank you received: 1
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.
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.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13059
- Thank you received: 1696
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
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
-
Less
More
- Posts: 22
- Thank you received: 1
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. 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.