User tests: Successful: Unsuccessful:
Pull Request for Issue #31385 and related to #31396 .
Code to customise site display of Field Groups
Create some article fields that are not in a field group.
Edit an article and populate those fields.
Test the default behaviour.
Create one or more field groups, the example I use is Ingredients and Procedure.
The PR has added some extra fields to the Options tab of the Field Group data entry form:
Select Show Title = Yes
Select a render tag.
Add some fields to those groups.
Edit an article and populate the fields
The default behaviour is to show all fields in a single bulleted list with no 'title'.
The example I use shows a Recipe with Ingredients as a bulleted list and the Procedure as a numbered list, with titles.
Help screen will need revision
Status | New | ⇒ | Pending |
Category | ⇒ | Administration com_fields Language & Strings Front End |
If you dont enter a class then it should not output an empty class. Currently you get for example <ul class="">
@ceford Please use tabs and not spaces to indent code, see PHP CS errors reported by drone: https://ci.joomla.org/joomla/joomla-cms/37579/1/6
Depending on the options you select they are either ignored or they generate invalid mark
You cannot have the following markup
<p>title</p>
<li>field1</li>
<li>field2</li>
But it gets much worse with other combinations
Not sure what the show/hide title is supposed to do but I couldnt see it doing anything
I have tested this item
Labels |
Added:
?
?
|
Thanks for the fixes - getting better
This generates the following
I get why you made it do that - p and dl would be invalid but I you should not be able to select an invalid option or combination in the first place. Otherwise users will think it is broken
It's the same when you set title to hide on a dl. The title is not hidden because it would be invalid
Thanks to @brianteeman for obliging me to think about the form behaviour. After wondering how to compose some javascript and poking around I discovered that all I had to do was add a field attribute to the form xml: showon="show_title:1[AND]render_tag:ul,ol,p,div" which I can only describe as absolutely marvelous. My complements to the javascript developers. I wonder if this sort of stuff is documented somewhere?
I wonder if this sort of stuff is documented somewhere?
I have tested this item
https://tinyurl.com/y5r5ys4z
@ashvini77 you can add a screenshot here so user don't have to open a link.
I have tested this item
Yes, After adding the patch, it works correctly
I have tested this item
It works only if when I save that field group after applying the patch again.
The bug occurs when you set up the test groups before applying the patch. To fix it, apply the patch and then open each Field Group in turn and save. That updates the parameters. I have change the code for backward compatibility purposes. You still need to save the Field Groups with the new features to store them. Please test again.
Pity this is stuck in limbo. All tests have passed and the adverse comments resulted from testing procedure.
Nice feature, for sure something for 4.1
Why put this off for 4.1? It was always intended for 4.0.
This came up as a gripe in the forum because switching custom fields from dl to ul in J4 ruined perfectly good article appearance. Put it off to 4.1 and expect a lot more gripes!
That gripe was already resolved. This adds new functionality
Labels |
Added:
?
Removed: ? |
That gripe was already resolved. This adds new functionality
Exactly. It's a really good enhancement but we should stop adding new stuff into 4.0 to get it released. But with a bit of clean up, we'll have it in 4.1.
Title |
|
Any chance someone else can pick this up? Right now I don't know what to do - too long ago for may failing memory.
Labels |
Added:
Language Change
?
Removed: ? ? |
Category | Administration com_fields Language & Strings Front End | ⇒ | Administration com_admin com_categories com_fields com_joomlaupdate com_tags com_templates Language & Strings Templates (admin) NPM Change |
I have made a complete pig's ear of the changes requested by Phil. My local repo is in a mess and I don't know how to fix it or revoke my latest commit. Annoyed with myself and ...
Labels |
Added:
NPM Resource Changed
|
I am going to have to redo this from scratch starting from a new repo clone.
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2021-12-08 10:00:15 |
Closed_By | ⇒ | ceford |
Warning: Use of undefined constant none - assumed 'none' (this will throw an Error in a future version of PHP) in C:\htdocs\joomla-cms\components\com_fields\layouts\fields\render.php on line 91