User tests: Successful: Unsuccessful:
Pull Request for Issue #13227. It moves all the custom field types to their own plugin.
The text custom field type is moved to it's plugin. The JFormdomfieldinterface is removed.
onCustomFieldsGetTypes
.onCustomFieldsPrepareField
event.onCustomFieldsPrepareDom
.If you are loading this PR trough the patch tester you need to discover the plugins first in the extension manager.
The field should not be shown in the edit form and on the front end.
None, as there is no documentation already for custom fields.
Status | New | ⇒ | Pending |
Category | ⇒ | Administration com_content com_fields Language & Strings Front End Libraries |
Labels |
Added:
?
?
|
I very much like this PR. It makes fetching the fields so much easier to understand. Thank you!
Should we put all fields into this PR, or should I do for every field a new one? The installer script needs then to be adjusted for every PR then, which will cause conflicts in other PR's which do change the installer sql files.
I'd do all types in this PR. There will be no conflicts in the new files anyway and the other file changes are already in this PR.
This PR needs the install and update SQLs to register the added plugins and its default parameter values then.
please also, do not forget to modify en-GB install.xml for any new plugin
Title |
|
A few remarks concerning lang strings:
PLG_FIELDS_TEXT="Fields - Text"
PLG_FIELDS_TEXT_XML_DESCRIPTION="The Text Fields plugin."
and for gallery
PLG_FIELDS_GALLERY="Fields - Gallery"
PLG_FIELDS_GALLERY_XML_DESCRIPTION="The Gallery Fields plugin."
PLG_FIELDS_TEXT_XML_DESCRIPTION="This plugin lets create new fields of type 'Text" in the extensions where custom fields are implemented."
//Correct my English...; Params
and/or empty linesPLG_FIELDS_TEXT_FIELDPARAMS_USE_GLOBAL="Use From Plugin"
instead of
PLG_FIELDS_TEXT_PARAMS_USE_GLOBAL="Use From Plugin"
Category | Administration com_content com_fields Language & Strings Front End Libraries | ⇒ | Administration com_banners com_categories com_content com_fields com_finder com_installer com_menus com_messages com_modules com_newsfeeds com_plugins com_redirect com_templates |
Labels |
Removed:
?
|
Can you alpha order the language strings?
There is also a travis complain. something about calling a static method.
Category | Administration com_content com_fields com_banners com_categories com_finder com_installer com_menus com_messages com_modules com_newsfeeds com_plugins com_redirect com_templates | ⇒ | SQL Administration com_admin Postgresql com_banners com_categories com_content com_fields com_finder com_installer com_menus com_messages com_modules com_newsfeeds com_plugins |
Category | Administration com_content com_fields com_banners com_categories com_finder com_installer com_menus com_messages com_modules com_newsfeeds com_plugins SQL com_admin Postgresql | ⇒ | Administration com_admin SQL Postgresql com_banners com_categories com_content com_fields com_finder com_installer com_menus com_messages com_modules com_newsfeeds |
Are the strings correctly ordered?
no
alphaordering here means any string
current
PLG_FIELDS_CALENDAR="Fields - Calendar"
PLG_FIELDS_CALENDAR_XML_DESCRIPTION="This plugin lets create new fields of type 'Calendar' in the extensions where custom fields are implemented."
PLG_FIELDS_CALENDAR_LABEL="Calendar"
PLG_FIELDS_CALENDAR_PARAMS_FORMAT_DESC="The date format to be used. This is in the format used by PHP to specify date string formats (see below). If no format argument is given, '%Y-%m-%d' is assumed (giving dates like '2008-04-16')."
PLG_FIELDS_CALENDAR_PARAMS_FORMAT_LABEL="Format"
Should be
PLG_FIELDS_CALENDAR="Fields - Calendar"
PLG_FIELDS_CALENDAR_LABEL="Calendar"
PLG_FIELDS_CALENDAR_PARAMS_FORMAT_DESC="The date format to be used. This is in the format used by PHP to specify date string formats (see below). If no format argument is given, '%Y-%m-%d' is assumed (giving dates like '2008-04-16')."
PLG_FIELDS_CALENDAR_PARAMS_FORMAT_LABEL="Format"
PLG_FIELDS_CALENDAR_XML_DESCRIPTION="This plugin lets create new fields of type 'Calendar' in the extensions where custom fields are implemented."
No logical grouping?
No logical grouping?
I don't think we have a file in core where the strings are grouped. Usually we just alpha-order them.
For translation with Crowdin (and I think also com_localise) that wouldn't matter anyway. You only see the grouping if you're translating directly from the raw files.
We have a few files with grouping, alas. Better avoid it indeed.
Installation with postgresql as db works fine. Besides that: is this patch ready for testing?
Despite the language ordering, it is ready for testing.
No empty lines?
Please correct the ini file strings alpha ordering wherever necessary.
We should have for example:
; Joomla! Project
; Copyright (C) 2005 - 2016 Open Source Matters. All rights reserved.
; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php
; Note : All ini files need to be saved as UTF-8
PLG_FIELDS_CHECKBOXES="Fields - Checkboxes"
PLG_FIELDS_CHECKBOXES_LABEL="Checkboxes"
PLG_FIELDS_CHECKBOXES_PARAMS_OPTIONS_DESC="The values of the checkboxes."
PLG_FIELDS_CHECKBOXES_PARAMS_OPTIONS_LABEL="Checkboxes Values"
PLG_FIELDS_CHECKBOXES_PARAMS_OPTIONS_NAME_LABEL="Text"
PLG_FIELDS_CHECKBOXES_PARAMS_OPTIONS_VALUE_LABEL="Value"
PLG_FIELDS_CHECKBOXES_XML_DESCRIPTION="This plugin lets create new fields of type 'Checkboxes' in the extensions where custom fields are implemented."
and NOT
; Joomla! Project
; Copyright (C) 2005 - 2016 Open Source Matters. All rights reserved.
; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php
; Note : All ini files need to be saved as UTF-8
PLG_FIELDS_CHECKBOXES="Fields - Checkboxes"
PLG_FIELDS_CHECKBOXES_XML_DESCRIPTION="This plugin lets create new fields of type 'Checkboxes' in the extensions where custom fields are implemented."
PLG_FIELDS_CHECKBOXES_LABEL="Checkboxes"
PLG_FIELDS_CHECKBOXES_PARAMS_OPTIONS_DESC="The values of the checkboxes."
PLG_FIELDS_CHECKBOXES_PARAMS_OPTIONS_LABEL="Checkboxes Values"
PLG_FIELDS_CHECKBOXES_PARAMS_OPTIONS_VALUE_LABEL="Value"
PLG_FIELDS_CHECKBOXES_PARAMS_OPTIONS_NAME_LABEL="Text"
Concerning alpha order, it now looks fine. Thanks.
Question:
Any reason for adding JFormHelper::loadFieldClass('list');
to contentlanguage.php or frontend_language.php (these are just examples).
Oh, forgot
en-GB.lib_joomla.ini should also be patched in frontend. It should be the exact copy of the admin one.
There is no text for PLG_FIELDS_GALLERY_XML_DESCRIPTION.
Is it possible to show the configuration values set in the fields and system plugin?
Adding a text field for example, there is the field "filter" with the value "Use from plugin" or the field "Automatic Display" with the value "Use Global" and it would be nice to know what these values are without having to look them up.
Frontend lib file is changed.
Any reason for adding JFormHelper::loadFieldClass('list'); to contentlanguage.php or frontend_language.php
Because the JFormFieldList is not loaded automatically so I'v added the import to all fields which are extending list as I converted them back from abstractlist.
Finally found some time to test this.
Main result: It works, but there are a few bugs in the actual plugins.
@rdeutz Imho it could be merged to get the architecture right for the alpha2 and then fix the remaining bugs afterwards.
As for the findings in detail:
Imho those are all minor issues with the respective plugins and could be fixed after this is merged (to not delay this one). But I leave that for others to decide :)
I have tested this item
Set as successful test after talking with @rdeutz
I have tested this item
looks good so far. I have just tested the plugin funktionality.
Status | Pending | ⇒ | Ready to Commit |
Labels |
Added:
?
|
RTC
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-01-09 19:47:04 |
Closed_By | ⇒ | rdeutz | |
Labels |
Added:
?
|
I have tested this item✅ successfully on 47f11c0
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/13319.