User tests: Successful: Unsuccessful:
Improving @brianteeman PR #41122 to extend to field lists.
Thanks to @alikon for the support.
Extending the possibility of using the header to list fields as well.
So moving some code from SqlField.php
to ListField.php
.
Create a file of type List
Create a file of type SQL
Create a XML field and add header option
You may now specify the header
The SQL field still works
now you can add the header from XML too
Please select:
Documentation link for docs.joomla.org: List_form_field_type
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed
Note:
Eg of SQL query for SQL Field (you need to create some articles for example from sample data):
SELECT #__content.id AS value, #__content.title AS text
FROM #__content
Eg of XML list field:
<field
name="test"
type="list"
label="test"
validate="options"
header="Please select your option"
>
<option value="1">JYES</option>
<option value="0">JNO</option>
</field>
Status | New | ⇒ | Pending |
Category | ⇒ | Administration Language & Strings Libraries Front End Plugins |
Labels |
Added:
Language Change
PR-5.1-dev
|
Labels |
Added:
Feature
|
I have tested this item ✅ successfully on 9c12907
good works
I have tested this item ✅ successfully on 9c12907
Status | Pending | ⇒ | Ready to Commit |
RTC
I have not tested this item.
its ok
I see the benefit of this PR, but there should be the following considerations:
Ok, @LadySolveig fought for this PR and convinced me, that we should merge it, so here we go!
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2024-03-02 16:34:24 |
Closed_By | ⇒ | bembelimen | |
Labels |
Added:
RTC
Updates Requested
PBF
|
Thx
Thanks @Quy !