Hi,
I don't know if this is a problem or not but when I use two fields with same label and with code bellow the field with lower id is not visible. This is code from record template.
<?php if(isset($this->item->fields_by_groups[null])):?>
<dl class="dl-horizontal fields-list">
<?php foreach ($this->item->fields_by_groups[null] as $field_id => $field): ?>
<dt id="<?php echo 'dt-'.$field_id; ?>" class="<?php echo $field->fieldclass;?>">
<?php if($field->params->get('core.show_lable') > 1):?>
<label id="<?php echo $field->id;?>-lbl">
<?php echo $field->label; ?>
<?php if($field->params->get('core.icon')):?>
<?php echo HTMLFormatHelper::icon($field->params->get('core.icon')); ?>
<?php endif;?>
</label>
<?php if($field->params->get('core.label_break') > 1):?>
<?php endif;?>
<?php endif;?>
</dt>
<dd id="<?php echo 'dd-'.$field_id; ?>" class="<?php echo $field->fieldclass;?><?php echo ($field->params->get('core.label_break') > 1 ? ' line-brk' : NULL) ?>">
<?php echo $field->result; ?>
</dd>
<?php endforeach;?>
</dl>
<?php unset($this->item->fields_by_groups[null]);?>
<?php endif;?>
Hi,
I don't know if this is a problem or not but when I use two fields with same label and with code bellow the field with lower id is not visible. This is code from record template.