- Posts: 4
- Thank you received: 0
OS Property support center
details Problem
- Gherasim Cosmin
- Topic Author
- Offline
- New Member
-
Less
More
12 years 1 month ago #25974
by Gherasim Cosmin
details Problem was created by Gherasim Cosmin
How can i modifie the details.html.tpl.php, extra fields group. I need to put them all the extra field under one table.
like in the picture :
like in the picture :
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13020
- Thank you received: 1688
12 years 1 month ago #25975
by Mr. Dam
Replied by Mr. Dam on topic Re: details Problem
Hi Gherasim,
We don't understand your photo, but with your question : Group all extra fields of all extra field groups to one table
First, good news for you that it's possible, but you need to know a bit about html and php coding.
Second, in file details.html.php
in version 2.0.4.5, the source code to show field groups and fields is started from line 354 with
if(count($row->extra_field_groups) > 0){
you can change the source code
<?php
if(count($row->extra_field_groups) > 0){
$extra_field_groups = $row->extra_field_groups;
for($i=0;$i<count($extra_field_groups);$i++){
$group = $extra_field_groups[$i];
$group_name = $group->group_name;
$fields = $group->fields;
if(count($fields)> 0){
?>
<table class="sTable fg" cellpadding="0" cellspacing="0">
<tr>
<td width="100%">
<div class="width-100 fltlft">
<fieldset class="adminform">
<legend><?php echo $group_name;?> <a href="javascript:showhideDiv('<?php echo $i?>');" id="fsb_<?php echo $i?>">[-]</a></legend>
<div id="fs_<?php echo $i?>" style="margin: 0 7px;display:block;">
<?php
//echo other information
echo '<table cellpadding="0" cellspacing="0" width="100%">';
for($j=0;$j<count($fields);$j++){
$field = $fields[$j];
if($field->displaytitle == 1){
?>
<tr>
<td class="left_details_col">
<?php
if($field->field_description != ""){
?>
<span class="editlinktip hasTip" title="<?php echo $field->field_label;?>::<?php echo $field->field_description?>">
<?php echo $field->field_label;?>
</span>
<?php
}else{
?>
<?php echo $field->field_label;?>
<?php
}
?>
</td>
<td class="right_details_col">
<?php echo $field->value;?>
</td>
</tr>
<?php
}else{
?>
<tr>
<td class="right_details_col">
<?php echo $field->value;?>
</td>
</tr>
<?php
}
}
echo '</table>';
?>
</fieldset>
</div>
</td>
</tr>
</table>
<?php
}
}
}
?>
by
<table class="sTable fg" cellpadding="0" cellspacing="0">
<tr>
<td width="100%">
<div class="width-100 fltlft">
<fieldset class="adminform">
<legend>Other info <a href="javascript:showhideDiv('exg');" id="fsb_exg">[-]</a></legend>
<div id="fs_exg" style="margin: 0 7px;display:block;">
<?php
if(count($row->extra_field_groups) > 0){
$extra_field_groups = $row->extra_field_groups;
for($i=0;$i<count($extra_field_groups);$i++){
$group = $extra_field_groups[$i];
$group_name = $group->group_name;
$fields = $group->fields;
if(count($fields)> 0){
echo $group_name."<BR />";
echo '<table cellpadding="0" cellspacing="0" width="100%">';
for($j=0;$j<count($fields);$j++){
$field = $fields[$j];
if($field->displaytitle == 1){
?>
<tr>
<td class="left_details_col">
<?php
if($field->field_description != ""){
?>
<span class="editlinktip hasTip" title="<?php echo $field->field_label;?>::<?php echo $field->field_description?>">
<?php echo $field->field_label;?>
</span>
<?php
}else{
?>
<?php echo $field->field_label;?>
<?php
}
?>
</td>
<td class="right_details_col">
<?php echo $field->value;?>
</td>
</tr>
<?php
}else{
?>
<tr>
<td class="right_details_col">
<?php echo $field->value;?>
</td>
</tr>
<?php
}
}
echo '</table>';
}
}
}
?>
</div>
</fieldset>
</div>
</td>
</tr>
</table>
Hope it work or you can adjust to make it better
Good luck
Dam
We don't understand your photo, but with your question : Group all extra fields of all extra field groups to one table
First, good news for you that it's possible, but you need to know a bit about html and php coding.
Second, in file details.html.php
in version 2.0.4.5, the source code to show field groups and fields is started from line 354 with
if(count($row->extra_field_groups) > 0){
you can change the source code
<?php
if(count($row->extra_field_groups) > 0){
$extra_field_groups = $row->extra_field_groups;
for($i=0;$i<count($extra_field_groups);$i++){
$group = $extra_field_groups[$i];
$group_name = $group->group_name;
$fields = $group->fields;
if(count($fields)> 0){
?>
<table class="sTable fg" cellpadding="0" cellspacing="0">
<tr>
<td width="100%">
<div class="width-100 fltlft">
<fieldset class="adminform">
<legend><?php echo $group_name;?> <a href="javascript:showhideDiv('<?php echo $i?>');" id="fsb_<?php echo $i?>">[-]</a></legend>
<div id="fs_<?php echo $i?>" style="margin: 0 7px;display:block;">
<?php
//echo other information
echo '<table cellpadding="0" cellspacing="0" width="100%">';
for($j=0;$j<count($fields);$j++){
$field = $fields[$j];
if($field->displaytitle == 1){
?>
<tr>
<td class="left_details_col">
<?php
if($field->field_description != ""){
?>
<span class="editlinktip hasTip" title="<?php echo $field->field_label;?>::<?php echo $field->field_description?>">
<?php echo $field->field_label;?>
</span>
<?php
}else{
?>
<?php echo $field->field_label;?>
<?php
}
?>
</td>
<td class="right_details_col">
<?php echo $field->value;?>
</td>
</tr>
<?php
}else{
?>
<tr>
<td class="right_details_col">
<?php echo $field->value;?>
</td>
</tr>
<?php
}
}
echo '</table>';
?>
</fieldset>
</div>
</td>
</tr>
</table>
<?php
}
}
}
?>
by
<table class="sTable fg" cellpadding="0" cellspacing="0">
<tr>
<td width="100%">
<div class="width-100 fltlft">
<fieldset class="adminform">
<legend>Other info <a href="javascript:showhideDiv('exg');" id="fsb_exg">[-]</a></legend>
<div id="fs_exg" style="margin: 0 7px;display:block;">
<?php
if(count($row->extra_field_groups) > 0){
$extra_field_groups = $row->extra_field_groups;
for($i=0;$i<count($extra_field_groups);$i++){
$group = $extra_field_groups[$i];
$group_name = $group->group_name;
$fields = $group->fields;
if(count($fields)> 0){
echo $group_name."<BR />";
echo '<table cellpadding="0" cellspacing="0" width="100%">';
for($j=0;$j<count($fields);$j++){
$field = $fields[$j];
if($field->displaytitle == 1){
?>
<tr>
<td class="left_details_col">
<?php
if($field->field_description != ""){
?>
<span class="editlinktip hasTip" title="<?php echo $field->field_label;?>::<?php echo $field->field_description?>">
<?php echo $field->field_label;?>
</span>
<?php
}else{
?>
<?php echo $field->field_label;?>
<?php
}
?>
</td>
<td class="right_details_col">
<?php echo $field->value;?>
</td>
</tr>
<?php
}else{
?>
<tr>
<td class="right_details_col">
<?php echo $field->value;?>
</td>
</tr>
<?php
}
}
echo '</table>';
}
}
}
?>
</div>
</fieldset>
</div>
</td>
</tr>
</table>
Hope it work or you can adjust to make it better
Good luck
Dam
The following user(s) said Thank You: Gherasim Cosmin
Please Log in or Create an account to join the conversation.
- Gherasim Cosmin
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 4
- Thank you received: 0
12 years 1 month ago #25981
by Gherasim Cosmin
Replied by Gherasim Cosmin on topic Re: details Problem
where can i download the update's for my ospropriety ?
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13020
- Thank you received: 1688
12 years 1 month ago #25992
by Mr. Dam
Replied by Mr. Dam on topic Re: details Problem
Hi,
If you click on My Download and you don't see the link to download the update, please let us know the email that you enter when you purchased extension. We will assign your account to the transaction so you can download product from our site.
Thanks
Dam
If you click on My Download and you don't see the link to download the update, please let us know the email that you enter when you purchased extension. We will assign your account to the transaction so you can download product from our site.
Thanks
Dam
Please Log in or Create an account to join the conversation.
- Gherasim Cosmin
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 4
- Thank you received: 0
12 years 1 month ago - 12 years 1 month ago #25997
by Gherasim Cosmin
Replied by Gherasim Cosmin on topic Re: details Problem
i can't see any files to download. the email is office@hirisgroup.ro thanks
Last edit: 12 years 1 month ago by Gherasim Cosmin. Reason: ADD the email
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13020
- Thank you received: 1688
12 years 1 month ago #25998
by Mr. Dam
Replied by Mr. Dam on topic Re: details Problem
OK, please send email to damdt@joomservices.com
Thanks
Dam
Thanks
Dam
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.