joomla-cms icon indicating copy to clipboard operation
joomla-cms copied to clipboard

[5.2] Subformfield groupByFieldset handling - Update default.php

Open BrainforgeUK opened this issue 1 year ago • 8 comments

groupByFieldset functionality added.

Summary of Changes

Setting groupByFieldset parameter in XML to true does not currently serve any purpose.

This change (without any other fieldset parameters) uses CSS grid display to group fields in a fieldset.

Additional parameters can be used with the fieldset(s) can be used to customise how the fields are grouped (e.g. use flex instead of grid).

Testing Instructions

Install the following plugins: bfsubfieldtest1.zip bfsubfieldtest2.zip bfsubfieldtest3.zip

Actual result BEFORE applying this Pull Request

Go to plugin admin page. Unexpected result - there is no difference between bfsubfieldtest1 and bfsubfieldtest2.

Expected result AFTER applying this Pull Request

Go to plugin admin page. With bfsubfieldtest2 the the fields are now grouped by fieldset. bfsubfieldtest3 illustrates how the appearance of fields grouped within fieldsets can be customised.

Link to documentations

The code in this pull request includes comments about the available fieldset attributes. These comments together with the example subform fields from bfsubfieldtest3 need to be included in the documentation. Please select:

  • [*] Documentation link for docs.joomla.org: Avanced Form Guide Subform Form Field

  • [] No documentation changes for docs.joomla.org needed

  • [ ] Pull Request link for manual.joomla.org:

  • [ ] No documentation changes for manual.joomla.org needed

BrainforgeUK avatar Jul 06 '24 13:07 BrainforgeUK

@BrainforgeUK Please fix the PHP code style errors reported here: https://ci.joomla.org/joomla/joomla-cms/77074/1/7

richard67 avatar Jul 06 '24 21:07 richard67

Thanks for the PR, a few notes:

  • Please remove iinline style, CSS in XML will not be accepted. You can use only class.
  • Please use foreach(): ... endforeach; and if (): ... endif in the code that mixing PHP and HTML.

Fedik avatar Jul 08 '24 17:07 Fedik

Phan failing - is that something for me to address?

BrainforgeUK avatar Jul 13 '24 17:07 BrainforgeUK

we really should not be using inline styles

brianteeman avatar Jul 14 '24 17:07 brianteeman

Phan failing - is that something for me to address?

@BrainforgeUK No. Phan is expected to fail.

But you should check the other reviews by others. And you shouldn’t use inline styles as that will not allow to use a strict CSP.

richard67 avatar Jul 14 '24 18:07 richard67

I have tested this item :white_check_mark: successfully on 9a598f2d8dd9d3c27aacfb8983bdde63dcf3b8e7

I can see the difference between the two plugin.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43747.

mabdelaziz77 avatar Aug 24 '24 10:08 mabdelaziz77

I have tested this item :white_check_mark: successfully on 9a598f2d8dd9d3c27aacfb8983bdde63dcf3b8e7


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43747.

dautrich avatar Aug 24 '24 17:08 dautrich

Not setting RTC despite of the 2 successful human tests as this PR adds inline styles which will result in CSP violations when using a reasonably strict CSP rule.

richard67 avatar Aug 24 '24 17:08 richard67

This pull request has been automatically rebased to 5.3-dev.

HLeithner avatar Sep 02 '24 08:09 HLeithner

This pull request has been automatically rebased to 6.0-dev.

HLeithner avatar Mar 04 '25 17:03 HLeithner

This pull request has been automatically rebased to 6.1-dev.

HLeithner avatar Aug 31 '25 11:08 HLeithner