[4.0] Add display field attibute#32488
Conversation
|
I have tested this item ✅ successfully on 7cef8cf This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/32488. |
Co-authored-by: Quy <quy@fluxbb.org>
|
@chmst Thank you for testing. Strangely I am unable to replicate this issue. Adding to |
|
@chmst My apologies. I see the issue now in component tabs as you said. I'll submit a fix. |
|
@chmst Should be good now. 👍 |
|
I have tested this item ✅ successfully on 780fdc4 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/32488. |
|
I have tested this item ✅ successfully on 780fdc4 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/32488. |
|
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/32488. |
|
|
|
just a note: the code proposed is As it already adds a space, we do not need the space in your example in #32422 also, I do not understand why, in this PR you add stack to the article layout in |
|
@infograf768 My bad, I didn't mean to commit https://github.com/joomla/joomla-cms/pull/32488/files#diff-48dcb2f2108f7b07952c9c407fd23cab28677e3d2fd437030b2f04a043282320R280-R286 (reverted with cb121a5). The PR can remain in RTC as this class was ineffective. And yes, no space is required in the example on #32422. I have edited this accordingly. Thanks for mentioning it! |
|
@korenevskiy I guess the logic of |
The control is let the class be added directly to |
|
by the way, after all these tricks, the next step is this. 1. Creating an XML element to connect the CSS file to the form. 2. Create an XML tag to include Styles in the form.. Maybe this will be the right decision. This will be bad form for developers, but supporting such a feature is the right solution. I've seen modules where CSS is plugged in inside a custom field. This is worse than connecting directly to XML. but Joomla does not know how to do this. You can consider a new attribute for |
|
|
@korenevskiy As this PR is already set to RTC, I'll be unlikely to edit it further. Feel free to create a PR against this code once/if this gets merged 👍 |
* [4.0] Field layout attribute * revert display attribute * inc joomla.content.options_default * Revert "revert display attribute" This reverts commit b1e13e1. * rename to parentclass * Update layouts/joomla/form/renderfield.php Co-authored-by: Quy <quy@fluxbb.org> * Update CalendarField.php * Update CalendarField.php * add since to all * component configs * Update article.xml Co-authored-by: Quy <quy@fluxbb.org>





Pull Request for Issue #32487 .
Summary of Changes
Because the 'class' XML attribute adds the class to the field itself rather than the outside container, it is not suitable for the classes added to #32422. This PR adds a
parentclassattribute which adds a class to the outsidecontrol-groupdiv.Testing Instructions
Ensure #32422 works as described (updated to match)
Documentation Changes Required