After rc1 upgrade labeles display on top of fields

Status
Not open for further replies.

dealio

Member
After upgrading to rc1 The form labels display on top of field even though its set to left position in form Labels position .

Example in my default group.php I have

<?php $this->element = $this->groups['MyReports']->elements["rpt_date"]; echo $this->loadTemplate('element');?>



The label is displaying on top of the field now before it was to the left.
 
I think this might be a bug. I have two instances set up with the same installation. The only difference is I upgraded one of them to RC1 from the latest github right before the RC1 release.

Steps:
1. copy bootstrap form template edit "default_group.php"
ADD:
<?php $this->element = $this->groups['your groups']->elements["your_elemet"]; echo $this->loadTemplate('element');?>

make sure default_element.php is in the same directory

2. Then set the Labels position in the form, notice it works for the release before the RC1 but as soon as you upgrade the Labels position stays on top of the fields.



See the attached files. Before the RC1 upgrade. Labels position working.


Thanks
 

Attachments

  • default_element.php.txt
    1.8 KB · Views: 310
  • default_group.php.txt
    585 bytes · Views: 255
  • default.php.txt
    2.4 KB · Views: 333
Your default_group.php doesn't use the fabrik template structure
(default_group switching to e.g. $this->loadTemplate('group_labels_side');)

So I don't think your form's "Label position" settings can have any effect.
Maybe before 1rc1 it was working by chance.
 
yes at some point we split out the side labels render into its own template, to try to make the layou less cluttered, you may need to revisit/look at how things are done in components/com_fabrik/views/form/tmpl
 
Status
Not open for further replies.
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top