From 6ad253be443db075bbece7b8821c1af74a735bbe Mon Sep 17 00:00:00 2001 From: Llewellyn van der Merwe Date: Mon, 24 Sep 2018 16:37:51 +0200 Subject: [PATCH] Resolved gh-341 that adds the feature to expand the custom field option far beyond the default. Moved the menu prefix option in to the Joomla component area -> tab -> Settings to allow each component to override the global setting. --- README.md | 12 +- admin/README.txt | 12 +- admin/access.xml | 16 +- admin/compiler/joomla_3/JFormFieldCustom.php | 35 + admin/compiler/joomla_3/settings.json | 5 + admin/config.xml | 10 +- admin/helpers/compiler/a_Get.php | 72 +- admin/helpers/compiler/c_Fields.php | 229 +++-- admin/helpers/compiler/e_Interpretation.php | 30 +- admin/helpers/componentbuilder.php | 58 +- .../en-GB/en-GB.com_componentbuilder.ini | 26 +- .../en-GB/en-GB.com_componentbuilder.sys.ini | 18 +- .../joomla_component/settings_fullwidth.php | 2 +- .../joomla_component/settings_right.php | 5 +- admin/models/field.php | 34 +- admin/models/fields/adminviews.php | 37 +- admin/models/fields/fieldtypes.php | 37 +- admin/models/fieldtype.php | 68 ++ admin/models/forms/admin_custom_tabs.xml | 2 + admin/models/forms/admin_fields.xml | 9 + .../models/forms/admin_fields_conditions.xml | 4 + admin/models/forms/admin_fields_relations.xml | 4 + admin/models/forms/admin_view.xml | 13 +- admin/models/forms/component_admin_views.xml | 9 +- admin/models/forms/component_config.xml | 3 + .../forms/component_custom_admin_menus.xml | 5 + .../forms/component_custom_admin_views.xml | 8 +- admin/models/forms/component_dashboard.xml | 3 + .../models/forms/component_files_folders.xml | 11 + admin/models/forms/component_mysql_tweaks.xml | 7 +- admin/models/forms/component_site_views.xml | 5 + admin/models/forms/component_updates.xml | 5 + admin/models/forms/custom_admin_view.xml | 10 +- admin/models/forms/custom_code.xml | 3 + admin/models/forms/dynamic_get.xml | 10 +- admin/models/forms/field.xml | 11 +- admin/models/forms/fieldtype.xml | 1 + admin/models/forms/help_document.xml | 8 +- admin/models/forms/joomla_component.xml | 831 +++++++++--------- admin/models/forms/language.xml | 1 + admin/models/forms/language_translation.xml | 1 + admin/models/forms/layout.xml | 2 + admin/models/forms/library.xml | 1 + admin/models/forms/library_config.xml | 2 + .../forms/library_files_folders_urls.xml | 12 + admin/models/forms/server.xml | 12 +- admin/models/forms/site_view.xml | 10 +- admin/models/forms/snippet.xml | 2 + admin/models/forms/template.xml | 2 + admin/models/joomla_component.php | 264 +++--- admin/models/joomla_components.php | 52 +- admin/sql/install.mysql.utf8.sql | 14 +- admin/sql/updates/mysql/2.9.1.sql | 3 + componentbuilder.xml | 6 +- componentbuilder_update_server.xml | 17 + script.php | 10 +- site/helpers/componentbuilder.php | 58 +- 57 files changed, 1324 insertions(+), 813 deletions(-) create mode 100644 admin/compiler/joomla_3/JFormFieldCustom.php create mode 100644 admin/sql/updates/mysql/2.9.1.sql diff --git a/README.md b/README.md index 1ec0d6efb..f9adf6acd 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ The Component Builder for [Joomla](https://extensions.joomla.org/extension/compo Whether you're a seasoned [Joomla](https://extensions.joomla.org/extension/component-builder/) developer, or have just started, Component Builder will safe you lots of time and money. A real must have! -You can install it quite easily and with no limitations. On [github](https://github.com/vdm-io/Joomla-Component-Builder/releases) is the latest release (2.9.1) with **ALL** its features and **ALL** concepts totally open-source and free! +You can install it quite easily and with no limitations. On [github](https://github.com/vdm-io/Joomla-Component-Builder/releases) is the latest release (2.9.3) with **ALL** its features and **ALL** concepts totally open-source and free! > Watch Quick Build of a Hello World component in [JCB on Youtube](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&index=45) @@ -125,13 +125,13 @@ Watch the [proposed development workflow](https://vdm.bz/proposed-development-wo + *Author*: [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com) + *Name*: [Component Builder](https://github.com/vdm-io/Joomla-Component-Builder) + *First Build*: 30th April, 2015 -+ *Last Build*: 20th September, 2018 -+ *Version*: 2.9.1 ++ *Last Build*: 24th September, 2018 ++ *Version*: 2.9.3 + *Copyright*: Copyright (C) 2015 - 2018 Vast Development Method. All rights reserved. + *License*: GNU General Public License version 2 or later; see LICENSE.txt -+ *Line count*: **193777** -+ *Field count*: **1081** -+ *File count*: **1273** ++ *Line count*: **194162** ++ *Field count*: **1084** ++ *File count*: **1274** + *Folder count*: **201** > This **component** was build with a Joomla [Automated Component Builder](http://joomlacomponentbuilder.com). diff --git a/admin/README.txt b/admin/README.txt index 1ec0d6efb..f9adf6acd 100644 --- a/admin/README.txt +++ b/admin/README.txt @@ -9,7 +9,7 @@ The Component Builder for [Joomla](https://extensions.joomla.org/extension/compo Whether you're a seasoned [Joomla](https://extensions.joomla.org/extension/component-builder/) developer, or have just started, Component Builder will safe you lots of time and money. A real must have! -You can install it quite easily and with no limitations. On [github](https://github.com/vdm-io/Joomla-Component-Builder/releases) is the latest release (2.9.1) with **ALL** its features and **ALL** concepts totally open-source and free! +You can install it quite easily and with no limitations. On [github](https://github.com/vdm-io/Joomla-Component-Builder/releases) is the latest release (2.9.3) with **ALL** its features and **ALL** concepts totally open-source and free! > Watch Quick Build of a Hello World component in [JCB on Youtube](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&index=45) @@ -125,13 +125,13 @@ Watch the [proposed development workflow](https://vdm.bz/proposed-development-wo + *Author*: [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com) + *Name*: [Component Builder](https://github.com/vdm-io/Joomla-Component-Builder) + *First Build*: 30th April, 2015 -+ *Last Build*: 20th September, 2018 -+ *Version*: 2.9.1 ++ *Last Build*: 24th September, 2018 ++ *Version*: 2.9.3 + *Copyright*: Copyright (C) 2015 - 2018 Vast Development Method. All rights reserved. + *License*: GNU General Public License version 2 or later; see LICENSE.txt -+ *Line count*: **193777** -+ *Field count*: **1081** -+ *File count*: **1273** ++ *Line count*: **194162** ++ *Field count*: **1084** ++ *File count*: **1274** + *Folder count*: **201** > This **component** was build with a Joomla [Automated Component Builder](http://joomlacomponentbuilder.com). diff --git a/admin/access.xml b/admin/access.xml index 46c536535..1dd2545b9 100644 --- a/admin/access.xml +++ b/admin/access.xml @@ -224,16 +224,16 @@ - + + + + - - - @@ -522,10 +522,10 @@ - - - - + + + +
diff --git a/admin/compiler/joomla_3/JFormFieldCustom.php b/admin/compiler/joomla_3/JFormFieldCustom.php new file mode 100644 index 000000000..59e55edd2 --- /dev/null +++ b/admin/compiler/joomla_3/JFormFieldCustom.php @@ -0,0 +1,35 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2018 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); +?> +###BOM### + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import the list field type +jimport('joomla.form.helper'); +JFormHelper::loadFieldClass('###JFORM_extends###'); + +/** + * ###Type### Form Field class for the ###Component### component + */ +class JFormField###Type### extends JFormField###JFORM_EXTENDS### +{ + /** + * The ###type### field type. + * + * @var string + */ + public $type = '###type###';###JFORM_TYPE_PHP### +} diff --git a/admin/compiler/joomla_3/settings.json b/admin/compiler/joomla_3/settings.json index a56267742..13c789464 100644 --- a/admin/compiler/joomla_3/settings.json +++ b/admin/compiler/joomla_3/settings.json @@ -400,6 +400,11 @@ "rename": "layoutmetadata", "type": "layoutmetadata" }, + "JFormFieldCustom.php": { + "path": "c0mp0n3nt/admin/models/fields", + "rename": "JFormFieldCustom", + "type": "fieldcustom" + }, "JFormFieldList.php": { "path": "c0mp0n3nt/admin/models/fields", "rename": "JFormFieldList", diff --git a/admin/config.xml b/admin/config.xml index 33bb953c6..cc23481cf 100644 --- a/admin/config.xml +++ b/admin/config.xml @@ -86,6 +86,7 @@ description="COM_COMPONENTBUILDER_CONFIG_JCB_PACKAGE_DIRECTORIES_DESCRIPTION" class="list_class" multiple="true" + default="" showon="manage_jcb_package_directories:1"> - - + + - - + +