The current repeatable field uses the table layout for form input display.
Nice to display a "typical" data table with headings. It works quite well for a smaller amount of fields and fields that do not require too much space itself. There is also some sort of "responsive" table display through CSS and media-queries...: Columns begin to stack vertically.
But with larger fields like editor or media, it can easily break the layout. Not to mention a greater amount of fields.
The core XML subform field seem to supply different layouts. Excerpt from documentation...
joomla.form.field.subform.default
render the subform in a div container, without support of repeating. Default for single mode.
joomla.form.field.subform.repeatable
render the subform in a div container, used for multiple mode. Support groupByFieldset.
joomla.form.field.subform.repeatable-table
render the subform as a table, used for multiple mode. Supports groupByFieldset. By default each field is rendered as a table column, but if groupByFieldset=true then each fieldset is rendered as a table column.
The 2nd "repeatable" layout is based on DIV's. It always stacks the sub-fields vertically. It has also a different button layout and positions. The DIV layout is always top-to-bottom. It works well on any screen-size.
Currently you can't switch to this or any other layout, because the table based one is a hard-coded default.
A parameter to choose the form input layout.
Maybe a toggle between the 2 multiple mode layouts is enough in this particular case?
Although a dynamic layout select box is probably more versatile and future proof.
Thanks in advance!
Subform field type documentation:
https://docs.joomla.org/Subform_form_field_type
Labels |
Added:
?
|
Labels |
Added:
J3 Issue
|
Category | ⇒ | Feature Request Fields |
Status | New | ⇒ | Information Required |
@franz-wohlkoenig I do not think that it is actual.
The repeatable field are depreciated, and the subform field have an attribute layout
to choose the layout
Closed_Date | 2019-03-05 06:01:23 | ⇒ | 2019-03-05 06:01:24 |
Closed_By | franz-wohlkoenig | ⇒ | joomla-cms-bot |
Status | Information Required | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2019-03-05 06:01:23 |
Closed_By | ⇒ | franz-wohlkoenig |
Set to "closed" on behalf of @franz-wohlkoenig by The JTracker Application at issues.joomla.org/joomla-cms/22412
Thanks for Comment, @Fedik
closed based on Comment above. If closing is wrong please reopen and sorry.
does the Issue stay in latest Version 3.9.3?
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/22412.