@@ -5262,7 +5280,7 @@ COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_DYNAMIC_DASHBOARD_LABEL="Dynamic Dash
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_MOVED_VIEWS_DESCRIPTION="We have moved the views in to their own tabs for your convenience.
"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_MOVED_VIEWS_LABEL="To add views, please open the corresponding tab."
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_MYSQL_TWEAK_OPTIONS_DESCRIPTION="In each admin view you can add data from a MySQL Table (this is done in the admin view MySQL tab). Here you can limit that data in relation to this component. This feature is useful when an admin view with demo data is used in more then one component, and you would like to exclude some demo data without creating a new admin view.
"
-COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_MYSQL_TWEAK_OPTIONS_LABEL=" MySql Tweak Options"
+COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_MYSQL_TWEAK_OPTIONS_LABEL="MySql Tweak Options"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_ON_ADMIN_VIEWS_DESCRIPTION="Do not add the same view twice it will not work. Please
watch this tutorial for more help ."
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_ON_ADMIN_VIEWS_LABEL="Setting Admin Views"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_ON_CONTRIBUTORS_DESCRIPTION="Only add contributors if you would like them listed on the component dashboard."
@@ -5378,7 +5396,7 @@ COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PUBLISHING="Publishing"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_README="Readme"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_README_LABEL="README.md"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_RUN_EXPANSION_BUTTON_ACCESS="Joomla Component Run Expansion Button Access"
-COM_COMPONENTBUILDER_JOOMLA_COMPONENT_RUN_EXPANSION_BUTTON_ACCESS_DESC=" Allows the users in this group to access the run expansion button."
+COM_COMPONENTBUILDER_JOOMLA_COMPONENT_RUN_EXPANSION_BUTTON_ACCESS_DESC="Allows the users in this group to access the run expansion button."
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_SALES_SERVER="Sales Server"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_SALES_SERVER_DESCRIPTION="Select your sales server for this component"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_SALES_SERVER_LABEL="Sales Server"
@@ -5443,7 +5461,7 @@ COM_COMPONENTBUILDER_JOOMLA_COMPONENT_VERSION_LABEL="Revision"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_WEBSITE="Website"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_WEBSITE_DESCRIPTION="Enter website address"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_WEBSITE_HINT="http://www.example.com"
-COM_COMPONENTBUILDER_JOOMLA_COMPONENT_WEBSITE_LABEL="Website"
+COM_COMPONENTBUILDER_JOOMLA_COMPONENT_WEBSITE_LABEL="Author Website"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_WEBSITE_MESSAGE="Error! Please add website here."
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_WHMCS_BUY_LINK="Whmcs Buy Link"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_WHMCS_BUY_LINK_DESCRIPTION="Enter link where your WHMCS License key can be bought."
@@ -5463,6 +5481,7 @@ COM_COMPONENTBUILDER_JOOMLA_COMPONENT_WHMCS_URL_LABEL="URL to your WHMCS install
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_WHMCS_URL_MESSAGE="Error! Please add website here."
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_YES="Yes"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ZIP="ZIP"
+COM_COMPONENTBUILDER_JOOMLA_FIELDS="Joomla fields"
COM_COMPONENTBUILDER_JUST_GET_ALL_SNIPPETS="Just Get All Snippets"
COM_COMPONENTBUILDER_KEEP_HISTORY="Keep History"
COM_COMPONENTBUILDER_KEEP_ORIGINAL_ACCESS="- Keep Original Access -"
@@ -5518,7 +5537,7 @@ COM_COMPONENTBUILDER_LANGUAGES_N_ITEMS_UNPUBLISHED_1="%s Language unpublished."
COM_COMPONENTBUILDER_LANGUAGES_SUBMENU="Languages Submenu"
COM_COMPONENTBUILDER_LANGUAGES_SUBMENU_DESC="Allows the users in this group to submenu of language"
COM_COMPONENTBUILDER_LANGUAGE_BUILD_BUTTON_ACCESS="Language Build Button Access"
-COM_COMPONENTBUILDER_LANGUAGE_BUILD_BUTTON_ACCESS_DESC=" Allows the users in this group to access the build button."
+COM_COMPONENTBUILDER_LANGUAGE_BUILD_BUTTON_ACCESS_DESC="Allows the users in this group to access the build button."
COM_COMPONENTBUILDER_LANGUAGE_CREATED_BY_DESC="The user that created this Language."
COM_COMPONENTBUILDER_LANGUAGE_CREATED_BY_LABEL="Created By"
COM_COMPONENTBUILDER_LANGUAGE_CREATED_DATE_DESC="The date this Language was created."
@@ -5621,7 +5640,7 @@ COM_COMPONENTBUILDER_LANGUAGE_TRANSLATION_STATUS="Status"
COM_COMPONENTBUILDER_LANGUAGE_TRANSLATION_TRANSLATION="Translation"
COM_COMPONENTBUILDER_LANGUAGE_TRANSLATION_TRANSLATION_DESCRIPTION="The translation strings."
COM_COMPONENTBUILDER_LANGUAGE_TRANSLATION_TRANSLATION_HINT="Translated String Here"
-COM_COMPONENTBUILDER_LANGUAGE_TRANSLATION_TRANSLATION_LABEL="Translated String"
+COM_COMPONENTBUILDER_LANGUAGE_TRANSLATION_TRANSLATION_LABEL="Translation"
COM_COMPONENTBUILDER_LANGUAGE_TRANSLATION_TRANSLATION_MESSAGE="Error! Please add translated string here."
COM_COMPONENTBUILDER_LANGUAGE_TRANSLATION_VERSION_DESC="A count of the number of times this Language Translation has been revised."
COM_COMPONENTBUILDER_LANGUAGE_TRANSLATION_VERSION_LABEL="Revision"
@@ -5705,7 +5724,7 @@ COM_COMPONENTBUILDER_LAYOUT_DYNAMIC_VALUES_LABEL="Dynamic Values"
COM_COMPONENTBUILDER_LAYOUT_EDIT="Editing the Layout"
COM_COMPONENTBUILDER_LAYOUT_ERROR_UNIQUE_ALIAS="Another Layout has the same alias."
COM_COMPONENTBUILDER_LAYOUT_GET_SNIPPETS_BUTTON_ACCESS="Layout Get Snippets Button Access"
-COM_COMPONENTBUILDER_LAYOUT_GET_SNIPPETS_BUTTON_ACCESS_DESC=" Allows the users in this group to access the get snippets button."
+COM_COMPONENTBUILDER_LAYOUT_GET_SNIPPETS_BUTTON_ACCESS_DESC="Allows the users in this group to access the get snippets button."
COM_COMPONENTBUILDER_LAYOUT_ID="Id"
COM_COMPONENTBUILDER_LAYOUT_LAYOUT="Layout"
COM_COMPONENTBUILDER_LAYOUT_LAYOUT_DESCRIPTION="Add the layout code here."
@@ -5747,7 +5766,7 @@ COM_COMPONENTBUILDER_LAYOUT_VERSION_LABEL="Revision"
COM_COMPONENTBUILDER_LAYOUT_YES="Yes"
COM_COMPONENTBUILDER_LEFT_IN_TAB="Left in Tab"
COM_COMPONENTBUILDER_LEFT_OF_TABS="Left of Tabs"
-COM_COMPONENTBUILDER_LIBRARIES="Libraries"
+COM_COMPONENTBUILDER_LIBRARIES="libraries"
COM_COMPONENTBUILDER_LIBRARIES_ACCESS="Libraries Access"
COM_COMPONENTBUILDER_LIBRARIES_ACCESS_DESC="Allows the users in this group to access access libraries"
COM_COMPONENTBUILDER_LIBRARIES_BATCH_OPTIONS="Batch process the selected Libraries"
@@ -5876,7 +5895,7 @@ COM_COMPONENTBUILDER_LIBRARY_ANY_SELECTION_ONLY_FOUR_LISTRADIOCHECKBOXESDYNAMIC_
COM_COMPONENTBUILDER_LIBRARY_BEHAVIOUR="Behaviour"
COM_COMPONENTBUILDER_LIBRARY_BUNDLE="Bundle"
COM_COMPONENTBUILDER_LIBRARY_CHAIN="Chain"
-COM_COMPONENTBUILDER_LIBRARY_CONFIG="Library Config"
+COM_COMPONENTBUILDER_LIBRARY_CONFIG="Config"
COM_COMPONENTBUILDER_LIBRARY_CONFIG_ADDCONFIG="Addconfig"
COM_COMPONENTBUILDER_LIBRARY_CONFIG_ADDCONFIG_DESCRIPTION="Setup config fields."
COM_COMPONENTBUILDER_LIBRARY_CONFIG_ADDCONFIG_LABEL="Config"
@@ -5929,7 +5948,7 @@ COM_COMPONENTBUILDER_LIBRARY_EXCLUDE="exclude"
COM_COMPONENTBUILDER_LIBRARY_FIELD_OPTIONS_HINT="Options here"
COM_COMPONENTBUILDER_LIBRARY_FIELD_OPTIONS_LABEL="Field Options"
COM_COMPONENTBUILDER_LIBRARY_FILE="File"
-COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS="Library Files, Folders & URLs"
+COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS="Files, Folders & URLs"
COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_ADDFILES="Addfiles"
COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_ADDFILESFULLPATH="Addfilesfullpath"
COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_ADDFILESFULLPATH_DESCRIPTION="Add files to this component using the full path."
@@ -6029,7 +6048,7 @@ COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_NOTE_CONSTANT_PATHS_LABEL="Const
COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_NOTNEW_DESCRIPTION="Should file be updated."
COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_NOTNEW_LABEL="Update"
COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_ORDERING_LABEL="Ordering"
-COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_PATH_DESCRIPTION="Path in relation to the folder structure in the install package,
unzip the compiled zip file to see the structure. "
+COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_PATH_DESCRIPTION="Path in relation to the folder structure in the install package,
unzip the compiled zip file to see the structure."
COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_PATH_HINT="Target Path Here"
COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_PATH_LABEL="Target Path"
COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_PATH_MESSAGE="Error! Please add target path."
@@ -6049,7 +6068,7 @@ COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_VERSION_LABEL="Revision"
COM_COMPONENTBUILDER_LIBRARY_FILE_DESCRIPTION="to library"
COM_COMPONENTBUILDER_LIBRARY_FILE_LABEL="Target File Linked"
COM_COMPONENTBUILDER_LIBRARY_GET_SNIPPETS_BUTTON_ACCESS="Library Get Snippets Button Access"
-COM_COMPONENTBUILDER_LIBRARY_GET_SNIPPETS_BUTTON_ACCESS_DESC=" Allows the users in this group to access the get snippets button."
+COM_COMPONENTBUILDER_LIBRARY_GET_SNIPPETS_BUTTON_ACCESS_DESC="Allows the users in this group to access the get snippets button."
COM_COMPONENTBUILDER_LIBRARY_HOW="How"
COM_COMPONENTBUILDER_LIBRARY_HOW_DESCRIPTION="Select how you want to control the behaviour of the library file inclusion."
COM_COMPONENTBUILDER_LIBRARY_HOW_LABEL="File Behaviour"
@@ -6162,7 +6181,7 @@ COM_COMPONENTBUILDER_NONE_DB="None DB"
COM_COMPONENTBUILDER_NONE_SELECTED="None selected"
COM_COMPONENTBUILDER_NOTICE_BOARD="Notice Board"
COM_COMPONENTBUILDER_NOTRANSLATION="no-translation"
-COM_COMPONENTBUILDER_NOT_FOUND_OR_ACCESS_DENIED="Not found or access denied!"
+COM_COMPONENTBUILDER_NOT_FOUND_OR_ACCESS_DENIED="Not found, or access denied."
COM_COMPONENTBUILDER_NOT_SET="not set"
COM_COMPONENTBUILDER_NO_ACCESS_GRANTED="No Access Granted!"
COM_COMPONENTBUILDER_NO_COMPONENTS_WERE_SELECTED_PLEASE_MAKE_A_SELECTION_AND_TRY_AGAIN="No components were selected, please make a selection and try again!"
@@ -6275,18 +6294,20 @@ COM_COMPONENTBUILDER_PLACEHOLDER_NOTE_PLACEHOLDERS_PLACEDIN_DESCRIPTION="
Soon as enough data is available we will display all the areas where this placeholder is used.
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Scanning Database..
You can edit the above areas where this placeholder is used.
This placeholder is not used in any area of the JCB custom code blocks at this time.
@@ -6739,7 +6760,7 @@ COM_COMPONENTBUILDER_SITE_VIEW_FORWARD_CIRCLE="Forward Circle"
COM_COMPONENTBUILDER_SITE_VIEW_FORWARD_TWO="Forward 2"
COM_COMPONENTBUILDER_SITE_VIEW_GENERIC="Generic"
COM_COMPONENTBUILDER_SITE_VIEW_GET_SNIPPETS_BUTTON_ACCESS="Site View Get Snippets Button Access"
-COM_COMPONENTBUILDER_SITE_VIEW_GET_SNIPPETS_BUTTON_ACCESS_DESC=" Allows the users in this group to access the get snippets button."
+COM_COMPONENTBUILDER_SITE_VIEW_GET_SNIPPETS_BUTTON_ACCESS_DESC="Allows the users in this group to access the get snippets button."
COM_COMPONENTBUILDER_SITE_VIEW_GRID="Grid"
COM_COMPONENTBUILDER_SITE_VIEW_GRID_TWO="Grid 2"
COM_COMPONENTBUILDER_SITE_VIEW_HEALTH="Health"
@@ -7055,7 +7076,7 @@ COM_COMPONENTBUILDER_SNIPPET_DETAILS="Details"
COM_COMPONENTBUILDER_SNIPPET_EDIT="Editing the Snippet"
COM_COMPONENTBUILDER_SNIPPET_ERROR_UNIQUE_ALIAS="Another Snippet has the same alias."
COM_COMPONENTBUILDER_SNIPPET_GET_SNIPPETS_BUTTON_ACCESS="Snippet Get Snippets Button Access"
-COM_COMPONENTBUILDER_SNIPPET_GET_SNIPPETS_BUTTON_ACCESS_DESC=" Allows the users in this group to access the get snippets button."
+COM_COMPONENTBUILDER_SNIPPET_GET_SNIPPETS_BUTTON_ACCESS_DESC="Allows the users in this group to access the get snippets button."
COM_COMPONENTBUILDER_SNIPPET_HEADING="Heading"
COM_COMPONENTBUILDER_SNIPPET_HEADING_DESCRIPTION="Enter short heading"
COM_COMPONENTBUILDER_SNIPPET_HEADING_HINT="Your Heading Here"
@@ -7082,12 +7103,12 @@ COM_COMPONENTBUILDER_SNIPPET_PERMISSION="Permissions"
COM_COMPONENTBUILDER_SNIPPET_PUBLISHING="Publishing"
COM_COMPONENTBUILDER_SNIPPET_SAVE_WARNING="Alias already existed so a number was added at the end. You can re-edit the Snippet to customise the alias."
COM_COMPONENTBUILDER_SNIPPET_SHARE_SNIPPETS_BUTTON_ACCESS="Snippet Share Snippets Button Access"
-COM_COMPONENTBUILDER_SNIPPET_SHARE_SNIPPETS_BUTTON_ACCESS_DESC=" Allows the users in this group to access the share snippets button."
+COM_COMPONENTBUILDER_SNIPPET_SHARE_SNIPPETS_BUTTON_ACCESS_DESC="Allows the users in this group to access the share snippets button."
COM_COMPONENTBUILDER_SNIPPET_SNIPPET="Snippet"
COM_COMPONENTBUILDER_SNIPPET_SNIPPET_HINT="// Add the snippets code here"
COM_COMPONENTBUILDER_SNIPPET_SNIPPET_LABEL="Snippet"
COM_COMPONENTBUILDER_SNIPPET_STATUS="Status"
-COM_COMPONENTBUILDER_SNIPPET_TYPE="Snippet Type"
+COM_COMPONENTBUILDER_SNIPPET_TYPE="Type"
COM_COMPONENTBUILDER_SNIPPET_TYPES="Snippet Types"
COM_COMPONENTBUILDER_SNIPPET_TYPES_ACCESS="Snippet Types Access"
COM_COMPONENTBUILDER_SNIPPET_TYPES_ACCESS_DESC="Allows the users in this group to access access snippet types"
@@ -7128,7 +7149,7 @@ COM_COMPONENTBUILDER_SNIPPET_TYPE_CREATED_BY_DESC="The user that created this Sn
COM_COMPONENTBUILDER_SNIPPET_TYPE_CREATED_BY_LABEL="Created By"
COM_COMPONENTBUILDER_SNIPPET_TYPE_CREATED_DATE_DESC="The date this Snippet Type was created."
COM_COMPONENTBUILDER_SNIPPET_TYPE_CREATED_DATE_LABEL="Created Date"
-COM_COMPONENTBUILDER_SNIPPET_TYPE_DESCRIPTION="Description"
+COM_COMPONENTBUILDER_SNIPPET_TYPE_DESCRIPTION="Snippet Types"
COM_COMPONENTBUILDER_SNIPPET_TYPE_DESCRIPTION_DESCRIPTION="Enter some description"
COM_COMPONENTBUILDER_SNIPPET_TYPE_DESCRIPTION_HINT="Description Here"
COM_COMPONENTBUILDER_SNIPPET_TYPE_DESCRIPTION_LABEL="Description"
@@ -7284,7 +7305,7 @@ COM_COMPONENTBUILDER_TEMPLATE_DYNAMIC_VALUES_LABEL="Dynamic Values"
COM_COMPONENTBUILDER_TEMPLATE_EDIT="Editing the Template"
COM_COMPONENTBUILDER_TEMPLATE_ERROR_UNIQUE_ALIAS="Another Template has the same alias."
COM_COMPONENTBUILDER_TEMPLATE_GET_SNIPPETS_BUTTON_ACCESS="Template Get Snippets Button Access"
-COM_COMPONENTBUILDER_TEMPLATE_GET_SNIPPETS_BUTTON_ACCESS_DESC=" Allows the users in this group to access the get snippets button."
+COM_COMPONENTBUILDER_TEMPLATE_GET_SNIPPETS_BUTTON_ACCESS_DESC="Allows the users in this group to access the get snippets button."
COM_COMPONENTBUILDER_TEMPLATE_ID="Id"
COM_COMPONENTBUILDER_TEMPLATE_LIBRARIES="Libraries"
COM_COMPONENTBUILDER_TEMPLATE_LIBRARIES_DESCRIPTION="Select the libraries you want to use here."
@@ -7413,7 +7434,7 @@ COM_COMPONENTBUILDER_UP_TO_DATE="Up to date"
COM_COMPONENTBUILDER_USAGE="Usage"
COM_COMPONENTBUILDER_USED_IN="used in"
COM_COMPONENTBUILDER_USE_BATCH="Use Batch"
-COM_COMPONENTBUILDER_USE_BATCH_DESC=" Allows users in this group to use batch copy/update method."
+COM_COMPONENTBUILDER_USE_BATCH_DESC="Allows users in this group to use batch copy/update method."
COM_COMPONENTBUILDER_USE_KEY="Use Key"
COM_COMPONENTBUILDER_VALIDATE="Validate"
COM_COMPONENTBUILDER_VALIDATES_THAT_THE_VALUE_DOES_NOT_APPEAR_AS_A_USERNAME_ON_THE_SYSTEM_THAT_IS_THAT_IT_IS_A_VALID_NEW_USERNAME_DOES_NOT_SYNTAX_CHECK_IT_AS_A_VALID_NAME="Validates that the value does NOT appear as a username on the system; that is, that it is a valid new username. Does not syntax check it as a valid name."
diff --git a/admin/language/en-GB/en-GB.com_componentbuilder.sys.ini b/admin/language/en-GB/en-GB.com_componentbuilder.sys.ini
index 3bf832b79..4d342ddc2 100644
--- a/admin/language/en-GB/en-GB.com_componentbuilder.sys.ini
+++ b/admin/language/en-GB/en-GB.com_componentbuilder.sys.ini
@@ -110,19 +110,19 @@ COM_COMPONENTBUILDER_ADMIN_VIEWS_IMPORT_DESC="Allows the users in this group to
COM_COMPONENTBUILDER_ADMIN_VIEWS_SUBMENU="Admin Views Submenu"
COM_COMPONENTBUILDER_ADMIN_VIEWS_SUBMENU_DESC="Allows the users in this group to submenu of admin view"
COM_COMPONENTBUILDER_ADMIN_VIEW_RUN_EXPANSION_BUTTON_ACCESS="Admin View Run Expansion Button Access"
-COM_COMPONENTBUILDER_ADMIN_VIEW_RUN_EXPANSION_BUTTON_ACCESS_DESC=" Allows the users in this group to access the run expansion button."
+COM_COMPONENTBUILDER_ADMIN_VIEW_RUN_EXPANSION_BUTTON_ACCESS_DESC="Allows the users in this group to access the run expansion button."
COM_COMPONENTBUILDER_COMPILER_ACCESS="Compiler Access"
-COM_COMPONENTBUILDER_COMPILER_ACCESS_DESC=" Allows the users in this group to access compiler."
+COM_COMPONENTBUILDER_COMPILER_ACCESS_DESC="Allows the users in this group to access compiler."
COM_COMPONENTBUILDER_COMPILER_CLEAR_TMP_BUTTON_ACCESS="Compiler Clear tmp Button Access"
-COM_COMPONENTBUILDER_COMPILER_CLEAR_TMP_BUTTON_ACCESS_DESC=" Allows the users in this group to access the clear tmp button."
+COM_COMPONENTBUILDER_COMPILER_CLEAR_TMP_BUTTON_ACCESS_DESC="Allows the users in this group to access the clear tmp button."
COM_COMPONENTBUILDER_COMPILER_DASHBOARD_LIST="Compiler Dashboard List"
COM_COMPONENTBUILDER_COMPILER_DASHBOARD_LIST_DESC="Allows the users in this group to dashboard list of Compiler"
COM_COMPONENTBUILDER_COMPILER_RUN_EXPANSION_BUTTON_ACCESS="Compiler Run Expansion Button Access"
-COM_COMPONENTBUILDER_COMPILER_RUN_EXPANSION_BUTTON_ACCESS_DESC=" Allows the users in this group to access the run expansion button."
+COM_COMPONENTBUILDER_COMPILER_RUN_EXPANSION_BUTTON_ACCESS_DESC="Allows the users in this group to access the run expansion button."
COM_COMPONENTBUILDER_COMPILER_SUBMENU="Compiler Submenu"
COM_COMPONENTBUILDER_COMPILER_SUBMENU_DESC="Allows the users in this group to submenu of Compiler"
COM_COMPONENTBUILDER_COMPILER_TRANSLATE_BUTTON_ACCESS="Compiler Translate Button Access"
-COM_COMPONENTBUILDER_COMPILER_TRANSLATE_BUTTON_ACCESS_DESC=" Allows the users in this group to access the translate button."
+COM_COMPONENTBUILDER_COMPILER_TRANSLATE_BUTTON_ACCESS_DESC="Allows the users in this group to access the translate button."
COM_COMPONENTBUILDER_COMPONENTS_ADMIN_VIEWS_ACCESS="Components Admin Views Access"
COM_COMPONENTBUILDER_COMPONENTS_ADMIN_VIEWS_ACCESS_DESC="Allows the users in this group to access access components admin views"
COM_COMPONENTBUILDER_COMPONENTS_ADMIN_VIEWS_BATCH_USE="Components Admin Views Batch Use"
@@ -351,7 +351,7 @@ COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_IMPORT_DESC="Allows the users in this gr
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_SUBMENU="Custom Admin Views Submenu"
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_SUBMENU_DESC="Allows the users in this group to submenu of custom admin view"
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_GET_SNIPPETS_BUTTON_ACCESS="Custom Admin View Get Snippets Button Access"
-COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_GET_SNIPPETS_BUTTON_ACCESS_DESC=" Allows the users in this group to access the get snippets button."
+COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_GET_SNIPPETS_BUTTON_ACCESS_DESC="Allows the users in this group to access the get snippets button."
COM_COMPONENTBUILDER_CUSTOM_CODES_ACCESS="Custom Codes Access"
COM_COMPONENTBUILDER_CUSTOM_CODES_ACCESS_DESC="Allows the users in this group to access access custom codes"
COM_COMPONENTBUILDER_CUSTOM_CODES_BATCH_USE="Custom Codes Batch Use"
@@ -381,7 +381,7 @@ COM_COMPONENTBUILDER_CUSTOM_CODES_IMPORT_DESC="Allows the users in this group to
COM_COMPONENTBUILDER_CUSTOM_CODES_SUBMENU="Custom Codes Submenu"
COM_COMPONENTBUILDER_CUSTOM_CODES_SUBMENU_DESC="Allows the users in this group to submenu of custom code"
COM_COMPONENTBUILDER_CUSTOM_CODE_RUN_EXPANSION_BUTTON_ACCESS="Custom Code Run Expansion Button Access"
-COM_COMPONENTBUILDER_CUSTOM_CODE_RUN_EXPANSION_BUTTON_ACCESS_DESC=" Allows the users in this group to access the run expansion button."
+COM_COMPONENTBUILDER_CUSTOM_CODE_RUN_EXPANSION_BUTTON_ACCESS_DESC="Allows the users in this group to access the run expansion button."
COM_COMPONENTBUILDER_DYNAMIC_GETS_ACCESS="Dynamic Gets Access"
COM_COMPONENTBUILDER_DYNAMIC_GETS_ACCESS_DESC="Allows the users in this group to access access dynamic gets"
COM_COMPONENTBUILDER_DYNAMIC_GETS_BATCH_USE="Dynamic Gets Batch Use"
@@ -409,15 +409,15 @@ COM_COMPONENTBUILDER_DYNAMIC_GETS_IMPORT_DESC="Allows the users in this group to
COM_COMPONENTBUILDER_DYNAMIC_GETS_SUBMENU="Dynamic Gets Submenu"
COM_COMPONENTBUILDER_DYNAMIC_GETS_SUBMENU_DESC="Allows the users in this group to submenu of dynamic get"
COM_COMPONENTBUILDER_DYNAMIC_GET_RUN_EXPANSION_BUTTON_ACCESS="Dynamic Get Run Expansion Button Access"
-COM_COMPONENTBUILDER_DYNAMIC_GET_RUN_EXPANSION_BUTTON_ACCESS_DESC=" Allows the users in this group to access the run expansion button."
+COM_COMPONENTBUILDER_DYNAMIC_GET_RUN_EXPANSION_BUTTON_ACCESS_DESC="Allows the users in this group to access the run expansion button."
COM_COMPONENTBUILDER_EDIT_CREATED_BY="Edit Created By"
-COM_COMPONENTBUILDER_EDIT_CREATED_BY_DESC=" Allows users in this group to edit created by."
+COM_COMPONENTBUILDER_EDIT_CREATED_BY_DESC="Allows users in this group to edit created by."
COM_COMPONENTBUILDER_EDIT_CREATED_DATE="Edit Created Date"
-COM_COMPONENTBUILDER_EDIT_CREATED_DATE_DESC=" Allows users in this group to edit created date."
+COM_COMPONENTBUILDER_EDIT_CREATED_DATE_DESC="Allows users in this group to edit created date."
COM_COMPONENTBUILDER_EDIT_VERSIONS="Edit Version"
-COM_COMPONENTBUILDER_EDIT_VERSIONS_DESC=" Allows users in this group to edit versions."
+COM_COMPONENTBUILDER_EDIT_VERSIONS_DESC="Allows users in this group to edit versions."
COM_COMPONENTBUILDER_EXPORT_DATA="Export Data"
-COM_COMPONENTBUILDER_EXPORT_DATA_DESC=" Allows users in this group to export data."
+COM_COMPONENTBUILDER_EXPORT_DATA_DESC="Allows users in this group to export data."
COM_COMPONENTBUILDER_FIELDS_ACCESS="Fields Access"
COM_COMPONENTBUILDER_FIELDS_ACCESS_DESC="Allows the users in this group to access access fields"
COM_COMPONENTBUILDER_FIELDS_BATCH_USE="Fields Batch Use"
@@ -469,25 +469,25 @@ COM_COMPONENTBUILDER_FIELDTYPES_IMPORT_DESC="Allows the users in this group to i
COM_COMPONENTBUILDER_FIELDTYPES_SUBMENU="Fieldtypes Submenu"
COM_COMPONENTBUILDER_FIELDTYPES_SUBMENU_DESC="Allows the users in this group to submenu of fieldtype"
COM_COMPONENTBUILDER_FIELD_RUN_EXPANSION_BUTTON_ACCESS="Field Run Expansion Button Access"
-COM_COMPONENTBUILDER_FIELD_RUN_EXPANSION_BUTTON_ACCESS_DESC=" Allows the users in this group to access the run expansion button."
+COM_COMPONENTBUILDER_FIELD_RUN_EXPANSION_BUTTON_ACCESS_DESC="Allows the users in this group to access the run expansion button."
COM_COMPONENTBUILDER_GET_SNIPPETS_ACCESS="Get Snippets Access"
-COM_COMPONENTBUILDER_GET_SNIPPETS_ACCESS_DESC=" Allows the users in this group to access get snippets."
+COM_COMPONENTBUILDER_GET_SNIPPETS_ACCESS_DESC="Allows the users in this group to access get snippets."
COM_COMPONENTBUILDER_GET_SNIPPETS_CUSTOM_ADMIN_VIEWS_BUTTON_ACCESS="Get Snippets Custom Admin Views Button Access"
-COM_COMPONENTBUILDER_GET_SNIPPETS_CUSTOM_ADMIN_VIEWS_BUTTON_ACCESS_DESC=" Allows the users in this group to access the custom admin views button."
+COM_COMPONENTBUILDER_GET_SNIPPETS_CUSTOM_ADMIN_VIEWS_BUTTON_ACCESS_DESC="Allows the users in this group to access the custom admin views button."
COM_COMPONENTBUILDER_GET_SNIPPETS_DASHBOARD_LIST="Get Snippets Dashboard List"
COM_COMPONENTBUILDER_GET_SNIPPETS_DASHBOARD_LIST_DESC="Allows the users in this group to dashboard list of Get Snippets"
COM_COMPONENTBUILDER_GET_SNIPPETS_LAYOUTS_BUTTON_ACCESS="Get Snippets Layouts Button Access"
-COM_COMPONENTBUILDER_GET_SNIPPETS_LAYOUTS_BUTTON_ACCESS_DESC=" Allows the users in this group to access the layouts button."
+COM_COMPONENTBUILDER_GET_SNIPPETS_LAYOUTS_BUTTON_ACCESS_DESC="Allows the users in this group to access the layouts button."
COM_COMPONENTBUILDER_GET_SNIPPETS_LIBRARIES_BUTTON_ACCESS="Get Snippets Libraries Button Access"
-COM_COMPONENTBUILDER_GET_SNIPPETS_LIBRARIES_BUTTON_ACCESS_DESC=" Allows the users in this group to access the libraries button."
+COM_COMPONENTBUILDER_GET_SNIPPETS_LIBRARIES_BUTTON_ACCESS_DESC="Allows the users in this group to access the libraries button."
COM_COMPONENTBUILDER_GET_SNIPPETS_SITE_VIEWS_BUTTON_ACCESS="Get Snippets Site Views Button Access"
-COM_COMPONENTBUILDER_GET_SNIPPETS_SITE_VIEWS_BUTTON_ACCESS_DESC=" Allows the users in this group to access the site views button."
+COM_COMPONENTBUILDER_GET_SNIPPETS_SITE_VIEWS_BUTTON_ACCESS_DESC="Allows the users in this group to access the site views button."
COM_COMPONENTBUILDER_GET_SNIPPETS_SNIPPETS_BUTTON_ACCESS="Get Snippets Snippets Button Access"
-COM_COMPONENTBUILDER_GET_SNIPPETS_SNIPPETS_BUTTON_ACCESS_DESC=" Allows the users in this group to access the snippets button."
+COM_COMPONENTBUILDER_GET_SNIPPETS_SNIPPETS_BUTTON_ACCESS_DESC="Allows the users in this group to access the snippets button."
COM_COMPONENTBUILDER_GET_SNIPPETS_SUBMENU="Get Snippets Submenu"
COM_COMPONENTBUILDER_GET_SNIPPETS_SUBMENU_DESC="Allows the users in this group to submenu of Get Snippets"
COM_COMPONENTBUILDER_GET_SNIPPETS_TEMPLATES_BUTTON_ACCESS="Get Snippets Templates Button Access"
-COM_COMPONENTBUILDER_GET_SNIPPETS_TEMPLATES_BUTTON_ACCESS_DESC=" Allows the users in this group to access the templates button."
+COM_COMPONENTBUILDER_GET_SNIPPETS_TEMPLATES_BUTTON_ACCESS_DESC="Allows the users in this group to access the templates button."
COM_COMPONENTBUILDER_HELP_DOCUMENTS_ACCESS="Help Documents Access"
COM_COMPONENTBUILDER_HELP_DOCUMENTS_ACCESS_DESC="Allows the users in this group to access access help documents"
COM_COMPONENTBUILDER_HELP_DOCUMENTS_BATCH_USE="Help Documents Batch Use"
@@ -513,7 +513,7 @@ COM_COMPONENTBUILDER_HELP_DOCUMENTS_IMPORT_DESC="Allows the users in this group
COM_COMPONENTBUILDER_HELP_DOCUMENTS_SUBMENU="Help Documents Submenu"
COM_COMPONENTBUILDER_HELP_DOCUMENTS_SUBMENU_DESC="Allows the users in this group to submenu of help document"
COM_COMPONENTBUILDER_IMPORT_DATA="Import Data"
-COM_COMPONENTBUILDER_IMPORT_DATA_DESC=" Allows users in this group to import data."
+COM_COMPONENTBUILDER_IMPORT_DATA_DESC="Allows users in this group to import data."
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_ACCESS="Joomla Components Access"
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_ACCESS_DESC="Allows the users in this group to access access joomla components"
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_BATCH_USE="Joomla Components Batch Use"
@@ -541,17 +541,17 @@ COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_VERSION_DESC="Allows users in this g
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_SUBMENU="Joomla Components Submenu"
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_SUBMENU_DESC="Allows the users in this group to submenu of joomla component"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_BACKUP_BUTTON_ACCESS="Joomla Component Backup Button Access"
-COM_COMPONENTBUILDER_JOOMLA_COMPONENT_BACKUP_BUTTON_ACCESS_DESC=" Allows the users in this group to access the backup button."
+COM_COMPONENTBUILDER_JOOMLA_COMPONENT_BACKUP_BUTTON_ACCESS_DESC="Allows the users in this group to access the backup button."
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CLEAR_TMP_BUTTON_ACCESS="Joomla Component Clear tmp Button Access"
-COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CLEAR_TMP_BUTTON_ACCESS_DESC=" Allows the users in this group to access the clear tmp button."
+COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CLEAR_TMP_BUTTON_ACCESS_DESC="Allows the users in this group to access the clear tmp button."
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CLONE_BUTTON_ACCESS="Joomla Component Clone Button Access"
-COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CLONE_BUTTON_ACCESS_DESC=" Allows the users in this group to access the clone button."
+COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CLONE_BUTTON_ACCESS_DESC="Allows the users in this group to access the clone button."
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_EXPORT_JCB_PACKAGES_BUTTON_ACCESS="Joomla Component Export JCB Packages Button Access"
-COM_COMPONENTBUILDER_JOOMLA_COMPONENT_EXPORT_JCB_PACKAGES_BUTTON_ACCESS_DESC=" Allows the users in this group to access the export jcb packages button."
+COM_COMPONENTBUILDER_JOOMLA_COMPONENT_EXPORT_JCB_PACKAGES_BUTTON_ACCESS_DESC="Allows the users in this group to access the export jcb packages button."
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_IMPORT_JCB_PACKAGES_BUTTON_ACCESS="Joomla Component Import JCB Packages Button Access"
-COM_COMPONENTBUILDER_JOOMLA_COMPONENT_IMPORT_JCB_PACKAGES_BUTTON_ACCESS_DESC=" Allows the users in this group to access the import jcb packages button."
+COM_COMPONENTBUILDER_JOOMLA_COMPONENT_IMPORT_JCB_PACKAGES_BUTTON_ACCESS_DESC="Allows the users in this group to access the import jcb packages button."
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_RUN_EXPANSION_BUTTON_ACCESS="Joomla Component Run Expansion Button Access"
-COM_COMPONENTBUILDER_JOOMLA_COMPONENT_RUN_EXPANSION_BUTTON_ACCESS_DESC=" Allows the users in this group to access the run expansion button."
+COM_COMPONENTBUILDER_JOOMLA_COMPONENT_RUN_EXPANSION_BUTTON_ACCESS_DESC="Allows the users in this group to access the run expansion button."
COM_COMPONENTBUILDER_LANGUAGES_ACCESS="Languages Access"
COM_COMPONENTBUILDER_LANGUAGES_ACCESS_DESC="Allows the users in this group to access access languages"
COM_COMPONENTBUILDER_LANGUAGES_BATCH_USE="Languages Batch Use"
@@ -575,7 +575,7 @@ COM_COMPONENTBUILDER_LANGUAGES_IMPORT_DESC="Allows the users in this group to im
COM_COMPONENTBUILDER_LANGUAGES_SUBMENU="Languages Submenu"
COM_COMPONENTBUILDER_LANGUAGES_SUBMENU_DESC="Allows the users in this group to submenu of language"
COM_COMPONENTBUILDER_LANGUAGE_BUILD_BUTTON_ACCESS="Language Build Button Access"
-COM_COMPONENTBUILDER_LANGUAGE_BUILD_BUTTON_ACCESS_DESC=" Allows the users in this group to access the build button."
+COM_COMPONENTBUILDER_LANGUAGE_BUILD_BUTTON_ACCESS_DESC="Allows the users in this group to access the build button."
COM_COMPONENTBUILDER_LANGUAGE_TRANSLATIONS_ACCESS="Language Translations Access"
COM_COMPONENTBUILDER_LANGUAGE_TRANSLATIONS_ACCESS_DESC="Allows the users in this group to access access language translations"
COM_COMPONENTBUILDER_LANGUAGE_TRANSLATIONS_BATCH_USE="Language Translations Batch Use"
@@ -627,7 +627,7 @@ COM_COMPONENTBUILDER_LAYOUTS_IMPORT_DESC="Allows the users in this group to impo
COM_COMPONENTBUILDER_LAYOUTS_SUBMENU="Layouts Submenu"
COM_COMPONENTBUILDER_LAYOUTS_SUBMENU_DESC="Allows the users in this group to submenu of layout"
COM_COMPONENTBUILDER_LAYOUT_GET_SNIPPETS_BUTTON_ACCESS="Layout Get Snippets Button Access"
-COM_COMPONENTBUILDER_LAYOUT_GET_SNIPPETS_BUTTON_ACCESS_DESC=" Allows the users in this group to access the get snippets button."
+COM_COMPONENTBUILDER_LAYOUT_GET_SNIPPETS_BUTTON_ACCESS_DESC="Allows the users in this group to access the get snippets button."
COM_COMPONENTBUILDER_LIBRARIES_ACCESS="Libraries Access"
COM_COMPONENTBUILDER_LIBRARIES_ACCESS_DESC="Allows the users in this group to access access libraries"
COM_COMPONENTBUILDER_LIBRARIES_BATCH_USE="Libraries Batch Use"
@@ -689,7 +689,7 @@ COM_COMPONENTBUILDER_LIBRARIES_FILES_FOLDERS_URLS_EDIT_VERSION_DESC="Allows user
COM_COMPONENTBUILDER_LIBRARIES_SUBMENU="Libraries Submenu"
COM_COMPONENTBUILDER_LIBRARIES_SUBMENU_DESC="Allows the users in this group to submenu of library"
COM_COMPONENTBUILDER_LIBRARY_GET_SNIPPETS_BUTTON_ACCESS="Library Get Snippets Button Access"
-COM_COMPONENTBUILDER_LIBRARY_GET_SNIPPETS_BUTTON_ACCESS_DESC=" Allows the users in this group to access the get snippets button."
+COM_COMPONENTBUILDER_LIBRARY_GET_SNIPPETS_BUTTON_ACCESS_DESC="Allows the users in this group to access the get snippets button."
COM_COMPONENTBUILDER_MENU="✓ Component Builder"
COM_COMPONENTBUILDER_MENU_ADMIN_VIEWS="Admin Views"
COM_COMPONENTBUILDER_MENU_COMPILER="Compiler"
@@ -787,7 +787,7 @@ COM_COMPONENTBUILDER_SITE_VIEWS_IMPORT_DESC="Allows the users in this group to i
COM_COMPONENTBUILDER_SITE_VIEWS_SUBMENU="Site Views Submenu"
COM_COMPONENTBUILDER_SITE_VIEWS_SUBMENU_DESC="Allows the users in this group to submenu of site view"
COM_COMPONENTBUILDER_SITE_VIEW_GET_SNIPPETS_BUTTON_ACCESS="Site View Get Snippets Button Access"
-COM_COMPONENTBUILDER_SITE_VIEW_GET_SNIPPETS_BUTTON_ACCESS_DESC=" Allows the users in this group to access the get snippets button."
+COM_COMPONENTBUILDER_SITE_VIEW_GET_SNIPPETS_BUTTON_ACCESS_DESC="Allows the users in this group to access the get snippets button."
COM_COMPONENTBUILDER_SNIPPETS_ACCESS="Snippets Access"
COM_COMPONENTBUILDER_SNIPPETS_ACCESS_DESC="Allows the users in this group to access access snippets"
COM_COMPONENTBUILDER_SNIPPETS_BATCH_USE="Snippets Batch Use"
@@ -813,9 +813,9 @@ COM_COMPONENTBUILDER_SNIPPETS_IMPORT_DESC="Allows the users in this group to imp
COM_COMPONENTBUILDER_SNIPPETS_SUBMENU="Snippets Submenu"
COM_COMPONENTBUILDER_SNIPPETS_SUBMENU_DESC="Allows the users in this group to submenu of snippet"
COM_COMPONENTBUILDER_SNIPPET_GET_SNIPPETS_BUTTON_ACCESS="Snippet Get Snippets Button Access"
-COM_COMPONENTBUILDER_SNIPPET_GET_SNIPPETS_BUTTON_ACCESS_DESC=" Allows the users in this group to access the get snippets button."
+COM_COMPONENTBUILDER_SNIPPET_GET_SNIPPETS_BUTTON_ACCESS_DESC="Allows the users in this group to access the get snippets button."
COM_COMPONENTBUILDER_SNIPPET_SHARE_SNIPPETS_BUTTON_ACCESS="Snippet Share Snippets Button Access"
-COM_COMPONENTBUILDER_SNIPPET_SHARE_SNIPPETS_BUTTON_ACCESS_DESC=" Allows the users in this group to access the share snippets button."
+COM_COMPONENTBUILDER_SNIPPET_SHARE_SNIPPETS_BUTTON_ACCESS_DESC="Allows the users in this group to access the share snippets button."
COM_COMPONENTBUILDER_SNIPPET_TYPES_ACCESS="Snippet Types Access"
COM_COMPONENTBUILDER_SNIPPET_TYPES_ACCESS_DESC="Allows the users in this group to access access snippet types"
COM_COMPONENTBUILDER_SNIPPET_TYPES_BATCH_USE="Snippet Types Batch Use"
@@ -859,9 +859,9 @@ COM_COMPONENTBUILDER_TEMPLATES_IMPORT_DESC="Allows the users in this group to im
COM_COMPONENTBUILDER_TEMPLATES_SUBMENU="Templates Submenu"
COM_COMPONENTBUILDER_TEMPLATES_SUBMENU_DESC="Allows the users in this group to submenu of template"
COM_COMPONENTBUILDER_TEMPLATE_GET_SNIPPETS_BUTTON_ACCESS="Template Get Snippets Button Access"
-COM_COMPONENTBUILDER_TEMPLATE_GET_SNIPPETS_BUTTON_ACCESS_DESC=" Allows the users in this group to access the get snippets button."
+COM_COMPONENTBUILDER_TEMPLATE_GET_SNIPPETS_BUTTON_ACCESS_DESC="Allows the users in this group to access the get snippets button."
COM_COMPONENTBUILDER_USE_BATCH="Use Batch"
-COM_COMPONENTBUILDER_USE_BATCH_DESC=" Allows users in this group to use batch copy/update method."
+COM_COMPONENTBUILDER_USE_BATCH_DESC="Allows users in this group to use batch copy/update method."
COM_COMPONENTBUILDER_VALIDATION_RULES_ACCESS="Validation Rules Access"
COM_COMPONENTBUILDER_VALIDATION_RULES_ACCESS_DESC="Allows the users in this group to access access validation rules"
COM_COMPONENTBUILDER_VALIDATION_RULES_BATCH_USE="Validation Rules Batch Use"
diff --git a/admin/layouts/admin_custom_tabs/publishing.php b/admin/layouts/admin_custom_tabs/publishing.php
index 07d6717ac..68e3657ce 100644
--- a/admin/layouts/admin_custom_tabs/publishing.php
+++ b/admin/layouts/admin_custom_tabs/publishing.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'created',
'created_by',
'modified',
@@ -24,9 +35,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/admin_custom_tabs/publlshing.php b/admin/layouts/admin_custom_tabs/publlshing.php
index 8ab7976f8..a7ff8580c 100644
--- a/admin/layouts/admin_custom_tabs/publlshing.php
+++ b/admin/layouts/admin_custom_tabs/publlshing.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'published',
'ordering',
'access',
@@ -26,9 +37,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/admin_custom_tabs/tabs_above.php b/admin/layouts/admin_custom_tabs/tabs_above.php
index a8b093d83..b2b40c7ec 100644
--- a/admin/layouts/admin_custom_tabs/tabs_above.php
+++ b/admin/layouts/admin_custom_tabs/tabs_above.php
@@ -12,15 +12,27 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'admin_view'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
+
diff --git a/admin/layouts/admin_custom_tabs/tabs_fullwidth.php b/admin/layouts/admin_custom_tabs/tabs_fullwidth.php
index c8ac24925..a752552d2 100644
--- a/admin/layouts/admin_custom_tabs/tabs_fullwidth.php
+++ b/admin/layouts/admin_custom_tabs/tabs_fullwidth.php
@@ -12,15 +12,27 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'tabs'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
@@ -29,3 +41,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/admin_fields/fields_above.php b/admin/layouts/admin_fields/fields_above.php
index a8b093d83..b2b40c7ec 100644
--- a/admin/layouts/admin_fields/fields_above.php
+++ b/admin/layouts/admin_fields/fields_above.php
@@ -12,15 +12,27 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'admin_view'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
+
diff --git a/admin/layouts/admin_fields/fields_fullwidth.php b/admin/layouts/admin_fields/fields_fullwidth.php
index 78175ea82..a918a2705 100644
--- a/admin/layouts/admin_fields/fields_fullwidth.php
+++ b/admin/layouts/admin_fields/fields_fullwidth.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'note_on_views',
'addfields'
);
@@ -22,6 +33,7 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
@@ -30,3 +42,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/admin_fields/publishing.php b/admin/layouts/admin_fields/publishing.php
index 07d6717ac..68e3657ce 100644
--- a/admin/layouts/admin_fields/publishing.php
+++ b/admin/layouts/admin_fields/publishing.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'created',
'created_by',
'modified',
@@ -24,9 +35,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/admin_fields/publlshing.php b/admin/layouts/admin_fields/publlshing.php
index 8ab7976f8..a7ff8580c 100644
--- a/admin/layouts/admin_fields/publlshing.php
+++ b/admin/layouts/admin_fields/publlshing.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'published',
'ordering',
'access',
@@ -26,9 +37,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/admin_fields_conditions/conditions_above.php b/admin/layouts/admin_fields_conditions/conditions_above.php
index a8b093d83..b2b40c7ec 100644
--- a/admin/layouts/admin_fields_conditions/conditions_above.php
+++ b/admin/layouts/admin_fields_conditions/conditions_above.php
@@ -12,15 +12,27 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'admin_view'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
+
diff --git a/admin/layouts/admin_fields_conditions/conditions_fullwidth.php b/admin/layouts/admin_fields_conditions/conditions_fullwidth.php
index 055fa58d4..1b15b3b5a 100644
--- a/admin/layouts/admin_fields_conditions/conditions_fullwidth.php
+++ b/admin/layouts/admin_fields_conditions/conditions_fullwidth.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'note_on_conditions',
'addconditions'
);
@@ -22,6 +33,7 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
@@ -30,3 +42,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/admin_fields_conditions/publishing.php b/admin/layouts/admin_fields_conditions/publishing.php
index 07d6717ac..68e3657ce 100644
--- a/admin/layouts/admin_fields_conditions/publishing.php
+++ b/admin/layouts/admin_fields_conditions/publishing.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'created',
'created_by',
'modified',
@@ -24,9 +35,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/admin_fields_conditions/publlshing.php b/admin/layouts/admin_fields_conditions/publlshing.php
index 8ab7976f8..a7ff8580c 100644
--- a/admin/layouts/admin_fields_conditions/publlshing.php
+++ b/admin/layouts/admin_fields_conditions/publlshing.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'published',
'ordering',
'access',
@@ -26,9 +37,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/admin_fields_relations/publishing.php b/admin/layouts/admin_fields_relations/publishing.php
index 07d6717ac..68e3657ce 100644
--- a/admin/layouts/admin_fields_relations/publishing.php
+++ b/admin/layouts/admin_fields_relations/publishing.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'created',
'created_by',
'modified',
@@ -24,9 +35,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/admin_fields_relations/publlshing.php b/admin/layouts/admin_fields_relations/publlshing.php
index 8ab7976f8..a7ff8580c 100644
--- a/admin/layouts/admin_fields_relations/publlshing.php
+++ b/admin/layouts/admin_fields_relations/publlshing.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'published',
'ordering',
'access',
@@ -26,9 +37,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/admin_fields_relations/relations_above.php b/admin/layouts/admin_fields_relations/relations_above.php
index a8b093d83..b2b40c7ec 100644
--- a/admin/layouts/admin_fields_relations/relations_above.php
+++ b/admin/layouts/admin_fields_relations/relations_above.php
@@ -12,15 +12,27 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'admin_view'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
+
diff --git a/admin/layouts/admin_fields_relations/relations_fullwidth.php b/admin/layouts/admin_fields_relations/relations_fullwidth.php
index 8f36f70aa..e9924f9f5 100644
--- a/admin/layouts/admin_fields_relations/relations_fullwidth.php
+++ b/admin/layouts/admin_fields_relations/relations_fullwidth.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'note_on_relations',
'addrelations'
);
@@ -22,6 +33,7 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
@@ -30,3 +42,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/admin_view/css_fullwidth.php b/admin/layouts/admin_view/css_fullwidth.php
index 54bc14a23..f0d6b08f1 100644
--- a/admin/layouts/admin_view/css_fullwidth.php
+++ b/admin/layouts/admin_view/css_fullwidth.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'add_css_view',
'css_view',
'add_css_views',
@@ -24,6 +35,7 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
@@ -32,3 +44,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/admin_view/custom_buttons_fullwidth.php b/admin/layouts/admin_view/custom_buttons_fullwidth.php
index 991fecdaa..4ad01649d 100644
--- a/admin/layouts/admin_view/custom_buttons_fullwidth.php
+++ b/admin/layouts/admin_view/custom_buttons_fullwidth.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'php_controller',
'php_model',
'php_controller_list',
@@ -24,6 +35,7 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
@@ -32,3 +44,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/admin_view/custom_buttons_left.php b/admin/layouts/admin_view/custom_buttons_left.php
index ca9bfab48..473668b80 100644
--- a/admin/layouts/admin_view/custom_buttons_left.php
+++ b/admin/layouts/admin_view/custom_buttons_left.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'add_custom_button',
'custom_button'
);
@@ -22,9 +33,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/admin_view/custom_import_fullwidth.php b/admin/layouts/admin_view/custom_import_fullwidth.php
index 1145a7385..e85f78a27 100644
--- a/admin/layouts/admin_view/custom_import_fullwidth.php
+++ b/admin/layouts/admin_view/custom_import_fullwidth.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'note_beginner_import',
'note_advanced_import',
'add_custom_import',
@@ -30,6 +41,7 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
@@ -38,3 +50,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/admin_view/details_above.php b/admin/layouts/admin_view/details_above.php
index d8761d659..0b9969524 100644
--- a/admin/layouts/admin_view/details_above.php
+++ b/admin/layouts/admin_view/details_above.php
@@ -12,15 +12,27 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'system_name'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
+
diff --git a/admin/layouts/admin_view/details_fullwidth.php b/admin/layouts/admin_view/details_fullwidth.php
index f72766e64..039e99c5d 100644
--- a/admin/layouts/admin_view/details_fullwidth.php
+++ b/admin/layouts/admin_view/details_fullwidth.php
@@ -12,15 +12,27 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'note_linked_to_notice'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
@@ -29,3 +41,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/admin_view/details_left.php b/admin/layouts/admin_view/details_left.php
index c9a5837cf..52336d424 100644
--- a/admin/layouts/admin_view/details_left.php
+++ b/admin/layouts/admin_view/details_left.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'name_single',
'name_list',
'type',
@@ -26,9 +37,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/admin_view/details_right.php b/admin/layouts/admin_view/details_right.php
index ea24651db..61beabab2 100644
--- a/admin/layouts/admin_view/details_right.php
+++ b/admin/layouts/admin_view/details_right.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'short_description',
'description',
'add_fadein'
@@ -23,9 +34,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/admin_view/details_under.php b/admin/layouts/admin_view/details_under.php
index d4c77dda2..c1b7ce8e9 100644
--- a/admin/layouts/admin_view/details_under.php
+++ b/admin/layouts/admin_view/details_under.php
@@ -12,15 +12,27 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'not_required'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
+
diff --git a/admin/layouts/admin_view/fields_fullwidth.php b/admin/layouts/admin_view/fields_fullwidth.php
index 2321c09b2..b51b04d26 100644
--- a/admin/layouts/admin_view/fields_fullwidth.php
+++ b/admin/layouts/admin_view/fields_fullwidth.php
@@ -12,15 +12,27 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'note_create_edit_display'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
@@ -29,3 +41,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/admin_view/fields_left.php b/admin/layouts/admin_view/fields_left.php
index 01d0e36bf..45f312f65 100644
--- a/admin/layouts/admin_view/fields_left.php
+++ b/admin/layouts/admin_view/fields_left.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'note_create_edit_notice',
'alias_builder_type',
'note_alias_builder_custom',
@@ -25,9 +36,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/admin_view/fields_right.php b/admin/layouts/admin_view/fields_right.php
index 318e7a147..f21758690 100644
--- a/admin/layouts/admin_view/fields_right.php
+++ b/admin/layouts/admin_view/fields_right.php
@@ -12,18 +12,31 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'note_create_edit_buttons'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/admin_view/javascript_fullwidth.php b/admin/layouts/admin_view/javascript_fullwidth.php
index 4c55e4a6f..95b40a13a 100644
--- a/admin/layouts/admin_view/javascript_fullwidth.php
+++ b/admin/layouts/admin_view/javascript_fullwidth.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'add_javascript_view_file',
'javascript_view_file',
'add_javascript_view_footer',
@@ -28,6 +39,7 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
@@ -36,3 +48,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/admin_view/mysql_fullwidth.php b/admin/layouts/admin_view/mysql_fullwidth.php
index 640f82da2..b8ff4a775 100644
--- a/admin/layouts/admin_view/mysql_fullwidth.php
+++ b/admin/layouts/admin_view/mysql_fullwidth.php
@@ -12,15 +12,27 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'sql'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
@@ -29,3 +41,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/admin_view/mysql_left.php b/admin/layouts/admin_view/mysql_left.php
index 26f3e5c48..c4958cca5 100644
--- a/admin/layouts/admin_view/mysql_left.php
+++ b/admin/layouts/admin_view/mysql_left.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'mysql_table_engine',
'mysql_table_charset',
'mysql_table_collate',
@@ -27,9 +38,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/admin_view/php_fullwidth.php b/admin/layouts/admin_view/php_fullwidth.php
index 0e66638d4..288767a5c 100644
--- a/admin/layouts/admin_view/php_fullwidth.php
+++ b/admin/layouts/admin_view/php_fullwidth.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'add_php_ajax',
'php_ajaxmethod',
'ajax_input',
@@ -38,6 +49,10 @@ $fields = $displayData->get('fields') ?: array(
'php_allowadd',
'add_php_allowedit',
'php_allowedit',
+ 'add_php_before_cancel',
+ 'php_before_cancel',
+ 'add_php_after_cancel',
+ 'php_after_cancel',
'add_php_batchcopy',
'php_batchcopy',
'add_php_batchmove',
@@ -57,6 +72,7 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
@@ -65,3 +81,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/admin_view/publishing.php b/admin/layouts/admin_view/publishing.php
index 07d6717ac..68e3657ce 100644
--- a/admin/layouts/admin_view/publishing.php
+++ b/admin/layouts/admin_view/publishing.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'created',
'created_by',
'modified',
@@ -24,9 +35,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/admin_view/publlshing.php b/admin/layouts/admin_view/publlshing.php
index 8ab7976f8..a7ff8580c 100644
--- a/admin/layouts/admin_view/publlshing.php
+++ b/admin/layouts/admin_view/publlshing.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'published',
'ordering',
'access',
@@ -26,9 +37,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/admin_view/settings_fullwidth.php b/admin/layouts/admin_view/settings_fullwidth.php
index 53193b6e8..1992187e4 100644
--- a/admin/layouts/admin_view/settings_fullwidth.php
+++ b/admin/layouts/admin_view/settings_fullwidth.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'note_on_permissions',
'addpermissions',
'note_on_tabs',
@@ -27,6 +38,7 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
@@ -35,3 +47,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/component_admin_views/publishing.php b/admin/layouts/component_admin_views/publishing.php
index 07d6717ac..68e3657ce 100644
--- a/admin/layouts/component_admin_views/publishing.php
+++ b/admin/layouts/component_admin_views/publishing.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'created',
'created_by',
'modified',
@@ -24,9 +35,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/component_admin_views/publlshing.php b/admin/layouts/component_admin_views/publlshing.php
index 8ab7976f8..a7ff8580c 100644
--- a/admin/layouts/component_admin_views/publlshing.php
+++ b/admin/layouts/component_admin_views/publlshing.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'published',
'ordering',
'access',
@@ -26,9 +37,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/component_admin_views/views_above.php b/admin/layouts/component_admin_views/views_above.php
index 386139b66..0da7e528d 100644
--- a/admin/layouts/component_admin_views/views_above.php
+++ b/admin/layouts/component_admin_views/views_above.php
@@ -12,15 +12,27 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'joomla_component'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
+
diff --git a/admin/layouts/component_admin_views/views_fullwidth.php b/admin/layouts/component_admin_views/views_fullwidth.php
index 5d443a5b3..cedd88ba6 100644
--- a/admin/layouts/component_admin_views/views_fullwidth.php
+++ b/admin/layouts/component_admin_views/views_fullwidth.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'note_on_admin_views',
'addadmin_views'
);
@@ -22,6 +33,7 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
@@ -30,3 +42,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/component_config/publishing.php b/admin/layouts/component_config/publishing.php
index 07d6717ac..68e3657ce 100644
--- a/admin/layouts/component_config/publishing.php
+++ b/admin/layouts/component_config/publishing.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'created',
'created_by',
'modified',
@@ -24,9 +35,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/component_config/publlshing.php b/admin/layouts/component_config/publlshing.php
index 8ab7976f8..a7ff8580c 100644
--- a/admin/layouts/component_config/publlshing.php
+++ b/admin/layouts/component_config/publlshing.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'published',
'ordering',
'access',
@@ -26,9 +37,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/component_config/tweaks_above.php b/admin/layouts/component_config/tweaks_above.php
index 386139b66..0da7e528d 100644
--- a/admin/layouts/component_config/tweaks_above.php
+++ b/admin/layouts/component_config/tweaks_above.php
@@ -12,15 +12,27 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'joomla_component'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
+
diff --git a/admin/layouts/component_config/tweaks_fullwidth.php b/admin/layouts/component_config/tweaks_fullwidth.php
index 3fcdda1e5..b74219ebe 100644
--- a/admin/layouts/component_config/tweaks_fullwidth.php
+++ b/admin/layouts/component_config/tweaks_fullwidth.php
@@ -12,15 +12,27 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'addconfig'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
@@ -29,3 +41,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/component_custom_admin_menus/publishing.php b/admin/layouts/component_custom_admin_menus/publishing.php
index 07d6717ac..68e3657ce 100644
--- a/admin/layouts/component_custom_admin_menus/publishing.php
+++ b/admin/layouts/component_custom_admin_menus/publishing.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'created',
'created_by',
'modified',
@@ -24,9 +35,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/component_custom_admin_menus/publlshing.php b/admin/layouts/component_custom_admin_menus/publlshing.php
index 8ab7976f8..a7ff8580c 100644
--- a/admin/layouts/component_custom_admin_menus/publlshing.php
+++ b/admin/layouts/component_custom_admin_menus/publlshing.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'published',
'ordering',
'access',
@@ -26,9 +37,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/component_custom_admin_menus/tweaks_above.php b/admin/layouts/component_custom_admin_menus/tweaks_above.php
index 386139b66..0da7e528d 100644
--- a/admin/layouts/component_custom_admin_menus/tweaks_above.php
+++ b/admin/layouts/component_custom_admin_menus/tweaks_above.php
@@ -12,15 +12,27 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'joomla_component'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
+
diff --git a/admin/layouts/component_custom_admin_menus/tweaks_fullwidth.php b/admin/layouts/component_custom_admin_menus/tweaks_fullwidth.php
index e41be7f7c..ca966437b 100644
--- a/admin/layouts/component_custom_admin_menus/tweaks_fullwidth.php
+++ b/admin/layouts/component_custom_admin_menus/tweaks_fullwidth.php
@@ -12,15 +12,27 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'addcustommenus'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
@@ -29,3 +41,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/component_custom_admin_views/publishing.php b/admin/layouts/component_custom_admin_views/publishing.php
index 07d6717ac..68e3657ce 100644
--- a/admin/layouts/component_custom_admin_views/publishing.php
+++ b/admin/layouts/component_custom_admin_views/publishing.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'created',
'created_by',
'modified',
@@ -24,9 +35,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/component_custom_admin_views/publlshing.php b/admin/layouts/component_custom_admin_views/publlshing.php
index 8ab7976f8..a7ff8580c 100644
--- a/admin/layouts/component_custom_admin_views/publlshing.php
+++ b/admin/layouts/component_custom_admin_views/publlshing.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'published',
'ordering',
'access',
@@ -26,9 +37,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/component_custom_admin_views/views_above.php b/admin/layouts/component_custom_admin_views/views_above.php
index 386139b66..0da7e528d 100644
--- a/admin/layouts/component_custom_admin_views/views_above.php
+++ b/admin/layouts/component_custom_admin_views/views_above.php
@@ -12,15 +12,27 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'joomla_component'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
+
diff --git a/admin/layouts/component_custom_admin_views/views_fullwidth.php b/admin/layouts/component_custom_admin_views/views_fullwidth.php
index 7ddadfb4a..e0542065f 100644
--- a/admin/layouts/component_custom_admin_views/views_fullwidth.php
+++ b/admin/layouts/component_custom_admin_views/views_fullwidth.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'note_on_custom_admin_views',
'addcustom_admin_views'
);
@@ -22,6 +33,7 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
@@ -30,3 +42,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/component_dashboard/dashboard_above.php b/admin/layouts/component_dashboard/dashboard_above.php
index 386139b66..0da7e528d 100644
--- a/admin/layouts/component_dashboard/dashboard_above.php
+++ b/admin/layouts/component_dashboard/dashboard_above.php
@@ -12,15 +12,27 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'joomla_component'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
+
diff --git a/admin/layouts/component_dashboard/dashboard_fullwidth.php b/admin/layouts/component_dashboard/dashboard_fullwidth.php
index 01362056f..075cab4d6 100644
--- a/admin/layouts/component_dashboard/dashboard_fullwidth.php
+++ b/admin/layouts/component_dashboard/dashboard_fullwidth.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'php_dashboard_methods',
'dashboard_tab'
);
@@ -22,6 +33,7 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
@@ -30,3 +42,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/component_dashboard/publishing.php b/admin/layouts/component_dashboard/publishing.php
index 07d6717ac..68e3657ce 100644
--- a/admin/layouts/component_dashboard/publishing.php
+++ b/admin/layouts/component_dashboard/publishing.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'created',
'created_by',
'modified',
@@ -24,9 +35,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/component_dashboard/publlshing.php b/admin/layouts/component_dashboard/publlshing.php
index 8ab7976f8..a7ff8580c 100644
--- a/admin/layouts/component_dashboard/publlshing.php
+++ b/admin/layouts/component_dashboard/publlshing.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'published',
'ordering',
'access',
@@ -26,9 +37,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/component_files_folders/advance_fullwidth.php b/admin/layouts/component_files_folders/advance_fullwidth.php
index a6c96f370..b5112d859 100644
--- a/admin/layouts/component_files_folders/advance_fullwidth.php
+++ b/admin/layouts/component_files_folders/advance_fullwidth.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'note_add_files_fullpath',
'addfilesfullpath',
'note_add_folders_fullpath',
@@ -25,6 +36,7 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
@@ -33,3 +45,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/component_files_folders/basic_above.php b/admin/layouts/component_files_folders/basic_above.php
index 386139b66..0da7e528d 100644
--- a/admin/layouts/component_files_folders/basic_above.php
+++ b/admin/layouts/component_files_folders/basic_above.php
@@ -12,15 +12,27 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'joomla_component'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
+
diff --git a/admin/layouts/component_files_folders/basic_fullwidth.php b/admin/layouts/component_files_folders/basic_fullwidth.php
index eb0acf684..c027419f9 100644
--- a/admin/layouts/component_files_folders/basic_fullwidth.php
+++ b/admin/layouts/component_files_folders/basic_fullwidth.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'note_add_files',
'addfiles',
'note_add_folders',
@@ -24,6 +35,7 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
@@ -32,3 +44,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/component_files_folders/publishing.php b/admin/layouts/component_files_folders/publishing.php
index 07d6717ac..68e3657ce 100644
--- a/admin/layouts/component_files_folders/publishing.php
+++ b/admin/layouts/component_files_folders/publishing.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'created',
'created_by',
'modified',
@@ -24,9 +35,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/component_files_folders/publlshing.php b/admin/layouts/component_files_folders/publlshing.php
index 8ab7976f8..a7ff8580c 100644
--- a/admin/layouts/component_files_folders/publlshing.php
+++ b/admin/layouts/component_files_folders/publlshing.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'published',
'ordering',
'access',
@@ -26,9 +37,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/component_mysql_tweaks/publishing.php b/admin/layouts/component_mysql_tweaks/publishing.php
index 07d6717ac..68e3657ce 100644
--- a/admin/layouts/component_mysql_tweaks/publishing.php
+++ b/admin/layouts/component_mysql_tweaks/publishing.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'created',
'created_by',
'modified',
@@ -24,9 +35,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/component_mysql_tweaks/publlshing.php b/admin/layouts/component_mysql_tweaks/publlshing.php
index 8ab7976f8..a7ff8580c 100644
--- a/admin/layouts/component_mysql_tweaks/publlshing.php
+++ b/admin/layouts/component_mysql_tweaks/publlshing.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'published',
'ordering',
'access',
@@ -26,9 +37,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/component_mysql_tweaks/tweaks_above.php b/admin/layouts/component_mysql_tweaks/tweaks_above.php
index 386139b66..0da7e528d 100644
--- a/admin/layouts/component_mysql_tweaks/tweaks_above.php
+++ b/admin/layouts/component_mysql_tweaks/tweaks_above.php
@@ -12,15 +12,27 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'joomla_component'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
+
diff --git a/admin/layouts/component_mysql_tweaks/tweaks_fullwidth.php b/admin/layouts/component_mysql_tweaks/tweaks_fullwidth.php
index 8660eb189..696368c1c 100644
--- a/admin/layouts/component_mysql_tweaks/tweaks_fullwidth.php
+++ b/admin/layouts/component_mysql_tweaks/tweaks_fullwidth.php
@@ -12,15 +12,27 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'sql_tweak'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
@@ -29,3 +41,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/component_placeholders/details_above.php b/admin/layouts/component_placeholders/details_above.php
index 386139b66..0da7e528d 100644
--- a/admin/layouts/component_placeholders/details_above.php
+++ b/admin/layouts/component_placeholders/details_above.php
@@ -12,15 +12,27 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'joomla_component'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
+
diff --git a/admin/layouts/component_placeholders/details_fullwidth.php b/admin/layouts/component_placeholders/details_fullwidth.php
index f23de1666..57405bc2f 100644
--- a/admin/layouts/component_placeholders/details_fullwidth.php
+++ b/admin/layouts/component_placeholders/details_fullwidth.php
@@ -12,15 +12,27 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'addplaceholders'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
@@ -29,3 +41,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/component_placeholders/publishing.php b/admin/layouts/component_placeholders/publishing.php
index 07d6717ac..68e3657ce 100644
--- a/admin/layouts/component_placeholders/publishing.php
+++ b/admin/layouts/component_placeholders/publishing.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'created',
'created_by',
'modified',
@@ -24,9 +35,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/component_placeholders/publlshing.php b/admin/layouts/component_placeholders/publlshing.php
index 8ab7976f8..a7ff8580c 100644
--- a/admin/layouts/component_placeholders/publlshing.php
+++ b/admin/layouts/component_placeholders/publlshing.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'published',
'ordering',
'access',
@@ -26,9 +37,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/component_site_views/publishing.php b/admin/layouts/component_site_views/publishing.php
index 07d6717ac..68e3657ce 100644
--- a/admin/layouts/component_site_views/publishing.php
+++ b/admin/layouts/component_site_views/publishing.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'created',
'created_by',
'modified',
@@ -24,9 +35,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/component_site_views/publlshing.php b/admin/layouts/component_site_views/publlshing.php
index 8ab7976f8..a7ff8580c 100644
--- a/admin/layouts/component_site_views/publlshing.php
+++ b/admin/layouts/component_site_views/publlshing.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'published',
'ordering',
'access',
@@ -26,9 +37,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/component_site_views/views_above.php b/admin/layouts/component_site_views/views_above.php
index 386139b66..0da7e528d 100644
--- a/admin/layouts/component_site_views/views_above.php
+++ b/admin/layouts/component_site_views/views_above.php
@@ -12,15 +12,27 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'joomla_component'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
+
diff --git a/admin/layouts/component_site_views/views_fullwidth.php b/admin/layouts/component_site_views/views_fullwidth.php
index 465f08534..e01f97e8e 100644
--- a/admin/layouts/component_site_views/views_fullwidth.php
+++ b/admin/layouts/component_site_views/views_fullwidth.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'note_on_site_views',
'addsite_views'
);
@@ -22,6 +33,7 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
@@ -30,3 +42,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/component_updates/publishing.php b/admin/layouts/component_updates/publishing.php
index 07d6717ac..68e3657ce 100644
--- a/admin/layouts/component_updates/publishing.php
+++ b/admin/layouts/component_updates/publishing.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'created',
'created_by',
'modified',
@@ -24,9 +35,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/component_updates/publlshing.php b/admin/layouts/component_updates/publlshing.php
index 8ab7976f8..a7ff8580c 100644
--- a/admin/layouts/component_updates/publlshing.php
+++ b/admin/layouts/component_updates/publlshing.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'published',
'ordering',
'access',
@@ -26,9 +37,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/component_updates/updates_above.php b/admin/layouts/component_updates/updates_above.php
index 386139b66..0da7e528d 100644
--- a/admin/layouts/component_updates/updates_above.php
+++ b/admin/layouts/component_updates/updates_above.php
@@ -12,15 +12,27 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'joomla_component'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
+
diff --git a/admin/layouts/component_updates/updates_fullwidth.php b/admin/layouts/component_updates/updates_fullwidth.php
index 9e225baad..37710d615 100644
--- a/admin/layouts/component_updates/updates_fullwidth.php
+++ b/admin/layouts/component_updates/updates_fullwidth.php
@@ -12,15 +12,27 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'version_update'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
@@ -29,3 +41,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/custom_admin_view/custom_buttons_fullwidth.php b/admin/layouts/custom_admin_view/custom_buttons_fullwidth.php
index 5b66cc781..da2e095b1 100644
--- a/admin/layouts/custom_admin_view/custom_buttons_fullwidth.php
+++ b/admin/layouts/custom_admin_view/custom_buttons_fullwidth.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'php_controller',
'php_model'
);
@@ -22,6 +33,7 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
@@ -30,3 +42,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/custom_admin_view/custom_buttons_left.php b/admin/layouts/custom_admin_view/custom_buttons_left.php
index ca9bfab48..473668b80 100644
--- a/admin/layouts/custom_admin_view/custom_buttons_left.php
+++ b/admin/layouts/custom_admin_view/custom_buttons_left.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'add_custom_button',
'custom_button'
);
@@ -22,9 +33,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/custom_admin_view/details_above.php b/admin/layouts/custom_admin_view/details_above.php
index 564ef15e9..e36b108b9 100644
--- a/admin/layouts/custom_admin_view/details_above.php
+++ b/admin/layouts/custom_admin_view/details_above.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'system_name',
'context'
);
@@ -22,6 +33,7 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
+
diff --git a/admin/layouts/custom_admin_view/details_fullwidth.php b/admin/layouts/custom_admin_view/details_fullwidth.php
index 7e5054615..6d03f6c71 100644
--- a/admin/layouts/custom_admin_view/details_fullwidth.php
+++ b/admin/layouts/custom_admin_view/details_fullwidth.php
@@ -12,15 +12,27 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'default'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
@@ -29,3 +41,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/custom_admin_view/details_left.php b/admin/layouts/custom_admin_view/details_left.php
index 686776af3..3c95591f7 100644
--- a/admin/layouts/custom_admin_view/details_left.php
+++ b/admin/layouts/custom_admin_view/details_left.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'name',
'codename',
'description',
@@ -26,9 +37,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/custom_admin_view/details_right.php b/admin/layouts/custom_admin_view/details_right.php
index 85377a1f1..1feadf4ee 100644
--- a/admin/layouts/custom_admin_view/details_right.php
+++ b/admin/layouts/custom_admin_view/details_right.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'icon',
'snippet',
'note_uikit_snippet',
@@ -24,9 +35,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/custom_admin_view/details_rightside.php b/admin/layouts/custom_admin_view/details_rightside.php
index dddfb3d0f..76933ba52 100644
--- a/admin/layouts/custom_admin_view/details_rightside.php
+++ b/admin/layouts/custom_admin_view/details_rightside.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'custom_get',
'main_get',
'dynamic_get',
@@ -24,9 +35,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/custom_admin_view/details_under.php b/admin/layouts/custom_admin_view/details_under.php
index d4c77dda2..c1b7ce8e9 100644
--- a/admin/layouts/custom_admin_view/details_under.php
+++ b/admin/layouts/custom_admin_view/details_under.php
@@ -12,15 +12,27 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'not_required'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
+
diff --git a/admin/layouts/custom_admin_view/javascript_css_fullwidth.php b/admin/layouts/custom_admin_view/javascript_css_fullwidth.php
index 8b87f9de2..85d3704e6 100644
--- a/admin/layouts/custom_admin_view/javascript_css_fullwidth.php
+++ b/admin/layouts/custom_admin_view/javascript_css_fullwidth.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'add_js_document',
'js_document',
'add_javascript_file',
@@ -28,6 +39,7 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
@@ -36,3 +48,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/custom_admin_view/linked_components_fullwidth.php b/admin/layouts/custom_admin_view/linked_components_fullwidth.php
index f72766e64..039e99c5d 100644
--- a/admin/layouts/custom_admin_view/linked_components_fullwidth.php
+++ b/admin/layouts/custom_admin_view/linked_components_fullwidth.php
@@ -12,15 +12,27 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'note_linked_to_notice'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
@@ -29,3 +41,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/custom_admin_view/php_fullwidth.php b/admin/layouts/custom_admin_view/php_fullwidth.php
index cf7142f5a..38eca1009 100644
--- a/admin/layouts/custom_admin_view/php_fullwidth.php
+++ b/admin/layouts/custom_admin_view/php_fullwidth.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'add_php_ajax',
'php_ajaxmethod',
'ajax_input',
@@ -31,6 +42,7 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
@@ -39,3 +51,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/custom_admin_view/publishing.php b/admin/layouts/custom_admin_view/publishing.php
index 07d6717ac..68e3657ce 100644
--- a/admin/layouts/custom_admin_view/publishing.php
+++ b/admin/layouts/custom_admin_view/publishing.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'created',
'created_by',
'modified',
@@ -24,9 +35,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/custom_admin_view/publlshing.php b/admin/layouts/custom_admin_view/publlshing.php
index 8ab7976f8..a7ff8580c 100644
--- a/admin/layouts/custom_admin_view/publlshing.php
+++ b/admin/layouts/custom_admin_view/publlshing.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'published',
'ordering',
'access',
@@ -26,9 +37,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/custom_code/details_above.php b/admin/layouts/custom_code/details_above.php
index d54ecc0ad..811bcf109 100644
--- a/admin/layouts/custom_code/details_above.php
+++ b/admin/layouts/custom_code/details_above.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'target',
'system_name',
'function_name'
@@ -23,6 +34,7 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
+
diff --git a/admin/layouts/custom_code/details_fullwidth.php b/admin/layouts/custom_code/details_fullwidth.php
index 313061d34..1d7ea82e0 100644
--- a/admin/layouts/custom_code/details_fullwidth.php
+++ b/admin/layouts/custom_code/details_fullwidth.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'path',
'note_jcb_placeholder',
'code',
@@ -24,6 +35,7 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
@@ -32,3 +44,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/custom_code/details_left.php b/admin/layouts/custom_code/details_left.php
index 32218d885..002297f05 100644
--- a/admin/layouts/custom_code/details_left.php
+++ b/admin/layouts/custom_code/details_left.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'comment_type',
'component',
'type',
@@ -24,9 +35,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/custom_code/details_right.php b/admin/layouts/custom_code/details_right.php
index be1e3d3b0..3f92a2ff9 100644
--- a/admin/layouts/custom_code/details_right.php
+++ b/admin/layouts/custom_code/details_right.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'from_line',
'to_line',
'hashendtarget'
@@ -23,9 +34,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/custom_code/details_under.php b/admin/layouts/custom_code/details_under.php
index d4c77dda2..c1b7ce8e9 100644
--- a/admin/layouts/custom_code/details_under.php
+++ b/admin/layouts/custom_code/details_under.php
@@ -12,15 +12,27 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'not_required'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
+
diff --git a/admin/layouts/custom_code/publishing.php b/admin/layouts/custom_code/publishing.php
index 07d6717ac..68e3657ce 100644
--- a/admin/layouts/custom_code/publishing.php
+++ b/admin/layouts/custom_code/publishing.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'created',
'created_by',
'modified',
@@ -24,9 +35,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/custom_code/publlshing.php b/admin/layouts/custom_code/publlshing.php
index 8ab7976f8..a7ff8580c 100644
--- a/admin/layouts/custom_code/publlshing.php
+++ b/admin/layouts/custom_code/publlshing.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'published',
'ordering',
'access',
@@ -26,9 +37,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/dynamic_get/abacus_fullwidth.php b/admin/layouts/dynamic_get/abacus_fullwidth.php
index b96bde05d..8a61afadd 100644
--- a/admin/layouts/dynamic_get/abacus_fullwidth.php
+++ b/admin/layouts/dynamic_get/abacus_fullwidth.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'note_calculation_item',
'note_calculation_items',
'php_calculation'
@@ -23,6 +34,7 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
@@ -31,3 +43,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/dynamic_get/abacus_left.php b/admin/layouts/dynamic_get/abacus_left.php
index eba7a926d..1db9b61d0 100644
--- a/admin/layouts/dynamic_get/abacus_left.php
+++ b/admin/layouts/dynamic_get/abacus_left.php
@@ -12,18 +12,31 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'addcalculation'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/dynamic_get/custom_script_fullwidth.php b/admin/layouts/dynamic_get/custom_script_fullwidth.php
index eb83596bf..25ed34938 100644
--- a/admin/layouts/dynamic_get/custom_script_fullwidth.php
+++ b/admin/layouts/dynamic_get/custom_script_fullwidth.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'add_php_before_getitem',
'php_before_getitem',
'add_php_after_getitem',
@@ -32,6 +43,7 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
@@ -40,3 +52,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/dynamic_get/joint_fullwidth.php b/admin/layouts/dynamic_get/joint_fullwidth.php
index bd61af3b7..dec197175 100644
--- a/admin/layouts/dynamic_get/joint_fullwidth.php
+++ b/admin/layouts/dynamic_get/joint_fullwidth.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'join_view_table',
'join_db_table'
);
@@ -22,6 +33,7 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
@@ -30,3 +42,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/dynamic_get/main_above.php b/admin/layouts/dynamic_get/main_above.php
index d87e3fa26..e2304a9bd 100644
--- a/admin/layouts/dynamic_get/main_above.php
+++ b/admin/layouts/dynamic_get/main_above.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'name',
'gettype',
'getcustom',
@@ -24,6 +35,7 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
+
diff --git a/admin/layouts/dynamic_get/main_fullwidth.php b/admin/layouts/dynamic_get/main_fullwidth.php
index 417a38333..64a9af834 100644
--- a/admin/layouts/dynamic_get/main_fullwidth.php
+++ b/admin/layouts/dynamic_get/main_fullwidth.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'php_custom_get',
'note_linked_to_notice'
);
@@ -22,6 +33,7 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
@@ -30,3 +42,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/dynamic_get/main_left.php b/admin/layouts/dynamic_get/main_left.php
index d5fde1138..06118e5c1 100644
--- a/admin/layouts/dynamic_get/main_left.php
+++ b/admin/layouts/dynamic_get/main_left.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'main_source',
'view_table_main',
'db_table_main',
@@ -26,9 +37,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/dynamic_get/main_right.php b/admin/layouts/dynamic_get/main_right.php
index 5ea710619..e50880b0e 100644
--- a/admin/layouts/dynamic_get/main_right.php
+++ b/admin/layouts/dynamic_get/main_right.php
@@ -12,18 +12,31 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'plugin_events'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/dynamic_get/main_under.php b/admin/layouts/dynamic_get/main_under.php
index d4c77dda2..c1b7ce8e9 100644
--- a/admin/layouts/dynamic_get/main_under.php
+++ b/admin/layouts/dynamic_get/main_under.php
@@ -12,15 +12,27 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'not_required'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
+
diff --git a/admin/layouts/dynamic_get/publishing.php b/admin/layouts/dynamic_get/publishing.php
index 07d6717ac..68e3657ce 100644
--- a/admin/layouts/dynamic_get/publishing.php
+++ b/admin/layouts/dynamic_get/publishing.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'created',
'created_by',
'modified',
@@ -24,9 +35,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/dynamic_get/publlshing.php b/admin/layouts/dynamic_get/publlshing.php
index 8ab7976f8..a7ff8580c 100644
--- a/admin/layouts/dynamic_get/publlshing.php
+++ b/admin/layouts/dynamic_get/publlshing.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'published',
'ordering',
'access',
@@ -26,9 +37,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/dynamic_get/tweak_fullwidth.php b/admin/layouts/dynamic_get/tweak_fullwidth.php
index 0a85c6f11..106ac847a 100644
--- a/admin/layouts/dynamic_get/tweak_fullwidth.php
+++ b/admin/layouts/dynamic_get/tweak_fullwidth.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'filter',
'where',
'order',
@@ -25,6 +36,7 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
@@ -33,3 +45,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/field/database_fullwidth.php b/admin/layouts/field/database_fullwidth.php
index 124269579..ad559fa96 100644
--- a/admin/layouts/field/database_fullwidth.php
+++ b/admin/layouts/field/database_fullwidth.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'note_no_database_settings_needed',
'note_database_settings_needed'
);
@@ -22,6 +33,7 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
@@ -30,3 +42,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/field/database_left.php b/admin/layouts/field/database_left.php
index 3832e4b83..4d70bc133 100644
--- a/admin/layouts/field/database_left.php
+++ b/admin/layouts/field/database_left.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'datatype',
'datalenght',
'datalenght_other',
@@ -25,9 +36,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/field/database_right.php b/admin/layouts/field/database_right.php
index 738776e97..b311d32ec 100644
--- a/admin/layouts/field/database_right.php
+++ b/admin/layouts/field/database_right.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'indexes',
'null_switch',
'store',
@@ -24,9 +35,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/field/publishing.php b/admin/layouts/field/publishing.php
index 07d6717ac..68e3657ce 100644
--- a/admin/layouts/field/publishing.php
+++ b/admin/layouts/field/publishing.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'created',
'created_by',
'modified',
@@ -24,9 +35,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/field/publlshing.php b/admin/layouts/field/publlshing.php
index 8ab7976f8..a7ff8580c 100644
--- a/admin/layouts/field/publlshing.php
+++ b/admin/layouts/field/publlshing.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'published',
'ordering',
'access',
@@ -26,9 +37,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/field/scripts_left.php b/admin/layouts/field/scripts_left.php
index 7ba4d502c..3963c887f 100644
--- a/admin/layouts/field/scripts_left.php
+++ b/admin/layouts/field/scripts_left.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'add_css_view',
'css_view',
'add_css_views',
@@ -24,9 +35,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/field/scripts_right.php b/admin/layouts/field/scripts_right.php
index b38bc241a..2e852c926 100644
--- a/admin/layouts/field/scripts_right.php
+++ b/admin/layouts/field/scripts_right.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'add_javascript_view_footer',
'javascript_view_footer',
'add_javascript_views_footer',
@@ -24,9 +35,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/field/set_properties_above.php b/admin/layouts/field/set_properties_above.php
index 538a7f8f0..fe606e164 100644
--- a/admin/layouts/field/set_properties_above.php
+++ b/admin/layouts/field/set_properties_above.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'fieldtype',
'name',
'catid'
@@ -23,6 +34,7 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
+
diff --git a/admin/layouts/field/set_properties_fullwidth.php b/admin/layouts/field/set_properties_fullwidth.php
index 0ee91fbe6..de505c49a 100644
--- a/admin/layouts/field/set_properties_fullwidth.php
+++ b/admin/layouts/field/set_properties_fullwidth.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'note_select_field_type',
'note_filter_information'
);
@@ -22,6 +33,7 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
@@ -30,3 +42,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/field/set_properties_under.php b/admin/layouts/field/set_properties_under.php
index d4c77dda2..c1b7ce8e9 100644
--- a/admin/layouts/field/set_properties_under.php
+++ b/admin/layouts/field/set_properties_under.php
@@ -12,15 +12,27 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'not_required'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
+
diff --git a/admin/layouts/field/type_info_fullwidth.php b/admin/layouts/field/type_info_fullwidth.php
index 5ac146da2..7cc6478c3 100644
--- a/admin/layouts/field/type_info_fullwidth.php
+++ b/admin/layouts/field/type_info_fullwidth.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'helpnote',
'xml'
);
@@ -22,6 +33,7 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
@@ -30,3 +42,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/fieldtype/database_defaults_left.php b/admin/layouts/fieldtype/database_defaults_left.php
index c47a0b0db..56d886fb4 100644
--- a/admin/layouts/fieldtype/database_defaults_left.php
+++ b/admin/layouts/fieldtype/database_defaults_left.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'has_defaults',
'datatype',
'datalenght',
@@ -26,9 +37,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/fieldtype/database_defaults_right.php b/admin/layouts/fieldtype/database_defaults_right.php
index 738776e97..b311d32ec 100644
--- a/admin/layouts/fieldtype/database_defaults_right.php
+++ b/admin/layouts/fieldtype/database_defaults_right.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'indexes',
'null_switch',
'store',
@@ -24,9 +35,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/fieldtype/details_above.php b/admin/layouts/fieldtype/details_above.php
index 1fb957c8f..3527a8cb4 100644
--- a/admin/layouts/fieldtype/details_above.php
+++ b/admin/layouts/fieldtype/details_above.php
@@ -12,15 +12,27 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'name'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
+
diff --git a/admin/layouts/fieldtype/details_fullwidth.php b/admin/layouts/fieldtype/details_fullwidth.php
index 1666a0816..c563d214f 100644
--- a/admin/layouts/fieldtype/details_fullwidth.php
+++ b/admin/layouts/fieldtype/details_fullwidth.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'note_on_fields',
'properties',
'not_required'
@@ -23,6 +34,7 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
@@ -31,3 +43,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/fieldtype/details_left.php b/admin/layouts/fieldtype/details_left.php
index ce4ad69ad..79c66a29d 100644
--- a/admin/layouts/fieldtype/details_left.php
+++ b/admin/layouts/fieldtype/details_left.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'catid',
'short_description'
);
@@ -22,9 +33,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/fieldtype/details_right.php b/admin/layouts/fieldtype/details_right.php
index 679874d4e..3ce9fbbfa 100644
--- a/admin/layouts/fieldtype/details_right.php
+++ b/admin/layouts/fieldtype/details_right.php
@@ -12,18 +12,31 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'description'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/fieldtype/fields_fullwidth.php b/admin/layouts/fieldtype/fields_fullwidth.php
index 9e78718bf..87f383cbc 100644
--- a/admin/layouts/fieldtype/fields_fullwidth.php
+++ b/admin/layouts/fieldtype/fields_fullwidth.php
@@ -13,7 +13,7 @@
defined('_JEXEC') or die('Restricted access');
// set the defaults
-$items = $displayData->wapfields;
+$items = $displayData->warfields;
$user = JFactory::getUser();
$id = $displayData->item->id;
// set the edit URL
diff --git a/admin/layouts/fieldtype/publishing.php b/admin/layouts/fieldtype/publishing.php
index 07d6717ac..68e3657ce 100644
--- a/admin/layouts/fieldtype/publishing.php
+++ b/admin/layouts/fieldtype/publishing.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'created',
'created_by',
'modified',
@@ -24,9 +35,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/fieldtype/publlshing.php b/admin/layouts/fieldtype/publlshing.php
index 8ab7976f8..a7ff8580c 100644
--- a/admin/layouts/fieldtype/publlshing.php
+++ b/admin/layouts/fieldtype/publlshing.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'published',
'ordering',
'access',
@@ -26,9 +37,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/help_document/details_above.php b/admin/layouts/help_document/details_above.php
index 481838ff8..2c4504f83 100644
--- a/admin/layouts/help_document/details_above.php
+++ b/admin/layouts/help_document/details_above.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'title',
'alias'
);
@@ -22,6 +33,7 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
+
diff --git a/admin/layouts/help_document/details_fullwidth.php b/admin/layouts/help_document/details_fullwidth.php
index fc702b376..6e4ede945 100644
--- a/admin/layouts/help_document/details_fullwidth.php
+++ b/admin/layouts/help_document/details_fullwidth.php
@@ -12,15 +12,27 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'content'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
@@ -29,3 +41,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/help_document/details_left.php b/admin/layouts/help_document/details_left.php
index 2110045f5..c9581d983 100644
--- a/admin/layouts/help_document/details_left.php
+++ b/admin/layouts/help_document/details_left.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'target',
'groups',
'location',
@@ -25,9 +36,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/help_document/details_right.php b/admin/layouts/help_document/details_right.php
index 29221087f..7171927ee 100644
--- a/admin/layouts/help_document/details_right.php
+++ b/admin/layouts/help_document/details_right.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'type',
'url',
'article'
@@ -23,9 +34,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/help_document/details_under.php b/admin/layouts/help_document/details_under.php
index d4c77dda2..c1b7ce8e9 100644
--- a/admin/layouts/help_document/details_under.php
+++ b/admin/layouts/help_document/details_under.php
@@ -12,15 +12,27 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'not_required'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
+
diff --git a/admin/layouts/help_document/publishing.php b/admin/layouts/help_document/publishing.php
index 07d6717ac..68e3657ce 100644
--- a/admin/layouts/help_document/publishing.php
+++ b/admin/layouts/help_document/publishing.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'created',
'created_by',
'modified',
@@ -24,9 +35,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/help_document/publlshing.php b/admin/layouts/help_document/publlshing.php
index 7d86382ff..c40fd6c94 100644
--- a/admin/layouts/help_document/publlshing.php
+++ b/admin/layouts/help_document/publlshing.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'published',
'ordering',
'version',
@@ -25,9 +36,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/joomla_component/admin_views_fullwidth.php b/admin/layouts/joomla_component/admin_views_fullwidth.php
index ea4e55d8c..ddffd390b 100644
--- a/admin/layouts/joomla_component/admin_views_fullwidth.php
+++ b/admin/layouts/joomla_component/admin_views_fullwidth.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'note_on_admin_views',
'note_display_component_admin_views'
);
@@ -22,6 +33,7 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
@@ -30,3 +42,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/joomla_component/custom_admin_views_fullwidth.php b/admin/layouts/joomla_component/custom_admin_views_fullwidth.php
index 4d22dc6c4..356d1c2ee 100644
--- a/admin/layouts/joomla_component/custom_admin_views_fullwidth.php
+++ b/admin/layouts/joomla_component/custom_admin_views_fullwidth.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'note_on_custom_admin_views',
'note_display_component_custom_admin_views'
);
@@ -22,6 +33,7 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
@@ -30,3 +42,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/joomla_component/dash_install_fullwidth.php b/admin/layouts/joomla_component/dash_install_fullwidth.php
index 5a6e42f01..99069e861 100644
--- a/admin/layouts/joomla_component/dash_install_fullwidth.php
+++ b/admin/layouts/joomla_component/dash_install_fullwidth.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'add_php_preflight_install',
'php_preflight_install',
'add_php_preflight_update',
@@ -30,6 +41,7 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
@@ -38,3 +50,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/joomla_component/dash_install_left.php b/admin/layouts/joomla_component/dash_install_left.php
index 3547d54d1..9ad875a90 100644
--- a/admin/layouts/joomla_component/dash_install_left.php
+++ b/admin/layouts/joomla_component/dash_install_left.php
@@ -12,18 +12,31 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'dashboard_type'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/joomla_component/dash_install_right.php b/admin/layouts/joomla_component/dash_install_right.php
index d5a36d891..b5edf8afd 100644
--- a/admin/layouts/joomla_component/dash_install_right.php
+++ b/admin/layouts/joomla_component/dash_install_right.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'note_dynamic_dashboard',
'dashboard',
'note_botton_component_dashboard'
@@ -23,9 +34,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/joomla_component/details_above.php b/admin/layouts/joomla_component/details_above.php
index d8761d659..0b9969524 100644
--- a/admin/layouts/joomla_component/details_above.php
+++ b/admin/layouts/joomla_component/details_above.php
@@ -12,15 +12,27 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'system_name'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
+
diff --git a/admin/layouts/joomla_component/details_left.php b/admin/layouts/joomla_component/details_left.php
index 89fc23a04..9f01c24f0 100644
--- a/admin/layouts/joomla_component/details_left.php
+++ b/admin/layouts/joomla_component/details_left.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'name',
'name_code',
'component_version',
@@ -32,9 +43,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/joomla_component/details_right.php b/admin/layouts/joomla_component/details_right.php
index 1be7b87c8..7bd15612c 100644
--- a/admin/layouts/joomla_component/details_right.php
+++ b/admin/layouts/joomla_component/details_right.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'companyname',
'author',
'email',
@@ -33,9 +44,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/joomla_component/details_under.php b/admin/layouts/joomla_component/details_under.php
index d4c77dda2..c1b7ce8e9 100644
--- a/admin/layouts/joomla_component/details_under.php
+++ b/admin/layouts/joomla_component/details_under.php
@@ -12,15 +12,27 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'not_required'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
+
diff --git a/admin/layouts/joomla_component/dynamic_build_beta_fullwidth.php b/admin/layouts/joomla_component/dynamic_build_beta_fullwidth.php
index 120955d39..fa524f2a6 100644
--- a/admin/layouts/joomla_component/dynamic_build_beta_fullwidth.php
+++ b/admin/layouts/joomla_component/dynamic_build_beta_fullwidth.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'note_buildcomp_dynamic_mysql',
'buildcomp',
'buildcompsql'
@@ -23,6 +34,7 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
@@ -31,3 +43,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/joomla_component/dynamic_integration_left.php b/admin/layouts/joomla_component/dynamic_integration_left.php
index 36818ddf9..45d0c1960 100644
--- a/admin/layouts/joomla_component/dynamic_integration_left.php
+++ b/admin/layouts/joomla_component/dynamic_integration_left.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'add_update_server',
'update_server_url',
'update_server_target',
@@ -29,9 +40,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/joomla_component/dynamic_integration_right.php b/admin/layouts/joomla_component/dynamic_integration_right.php
index f5315bdb4..72351b669 100644
--- a/admin/layouts/joomla_component/dynamic_integration_right.php
+++ b/admin/layouts/joomla_component/dynamic_integration_right.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'translation_tool',
'note_crowdin',
'crowdin_project_identifier',
@@ -26,9 +37,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/joomla_component/libs_helpers_fullwidth.php b/admin/layouts/joomla_component/libs_helpers_fullwidth.php
index 75471afa1..8ac6a3745 100644
--- a/admin/layouts/joomla_component/libs_helpers_fullwidth.php
+++ b/admin/layouts/joomla_component/libs_helpers_fullwidth.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'creatuserhelper',
'adduikit',
'addfootable',
@@ -40,6 +51,7 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
@@ -48,3 +60,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/joomla_component/mysql_fullwidth.php b/admin/layouts/joomla_component/mysql_fullwidth.php
index 297d6dd2e..95a45a88b 100644
--- a/admin/layouts/joomla_component/mysql_fullwidth.php
+++ b/admin/layouts/joomla_component/mysql_fullwidth.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'add_sql',
'sql',
'add_sql_uninstall',
@@ -24,6 +35,7 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
@@ -32,3 +44,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/joomla_component/publishing.php b/admin/layouts/joomla_component/publishing.php
index af672bb37..7f3f312c2 100644
--- a/admin/layouts/joomla_component/publishing.php
+++ b/admin/layouts/joomla_component/publishing.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'created',
'created_by',
'modified',
@@ -30,9 +41,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/joomla_component/readme_left.php b/admin/layouts/joomla_component/readme_left.php
index d904442c0..bc6fda557 100644
--- a/admin/layouts/joomla_component/readme_left.php
+++ b/admin/layouts/joomla_component/readme_left.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'addreadme',
'readme'
);
@@ -22,9 +33,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/joomla_component/readme_right.php b/admin/layouts/joomla_component/readme_right.php
index c521ff3bd..9c4959e63 100644
--- a/admin/layouts/joomla_component/readme_right.php
+++ b/admin/layouts/joomla_component/readme_right.php
@@ -12,18 +12,31 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'note_readme'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/joomla_component/settings_fullwidth.php b/admin/layouts/joomla_component/settings_fullwidth.php
index 4d7f7412f..83d1c02a6 100644
--- a/admin/layouts/joomla_component/settings_fullwidth.php
+++ b/admin/layouts/joomla_component/settings_fullwidth.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'spacer_hr_seven',
'note_on_contributors',
'addcontributors',
@@ -25,6 +36,7 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
@@ -33,3 +45,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/joomla_component/settings_left.php b/admin/layouts/joomla_component/settings_left.php
index bd91f16e8..1926c7a9b 100644
--- a/admin/layouts/joomla_component/settings_left.php
+++ b/admin/layouts/joomla_component/settings_left.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'note_moved_views',
'spacer_hr_one',
'note_mysql_tweak_options',
@@ -27,9 +38,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/joomla_component/settings_right.php b/admin/layouts/joomla_component/settings_right.php
index 9e99a711a..929cd3b08 100644
--- a/admin/layouts/joomla_component/settings_right.php
+++ b/admin/layouts/joomla_component/settings_right.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'note_component_files_folders',
'spacer_hr_four',
'add_menu_prefix',
@@ -32,9 +43,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/joomla_component/site_views_fullwidth.php b/admin/layouts/joomla_component/site_views_fullwidth.php
index 456bcff1e..f8485fd37 100644
--- a/admin/layouts/joomla_component/site_views_fullwidth.php
+++ b/admin/layouts/joomla_component/site_views_fullwidth.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'note_on_site_views',
'note_display_component_site_views'
);
@@ -22,6 +33,7 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
@@ -30,3 +42,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/language/details_left.php b/admin/layouts/language/details_left.php
index 5c6226fd3..18159298f 100644
--- a/admin/layouts/language/details_left.php
+++ b/admin/layouts/language/details_left.php
@@ -12,18 +12,31 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'name'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/language/details_right.php b/admin/layouts/language/details_right.php
index b0c3c99ce..d5c6ea351 100644
--- a/admin/layouts/language/details_right.php
+++ b/admin/layouts/language/details_right.php
@@ -12,18 +12,31 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'langtag'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/language/publishing.php b/admin/layouts/language/publishing.php
index 07d6717ac..68e3657ce 100644
--- a/admin/layouts/language/publishing.php
+++ b/admin/layouts/language/publishing.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'created',
'created_by',
'modified',
@@ -24,9 +35,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/language/publlshing.php b/admin/layouts/language/publlshing.php
index 8ab7976f8..a7ff8580c 100644
--- a/admin/layouts/language/publlshing.php
+++ b/admin/layouts/language/publlshing.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'published',
'ordering',
'access',
@@ -26,9 +37,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/language_translation/details_fullwidth.php b/admin/layouts/language_translation/details_fullwidth.php
index aa696de85..bb4e00bdf 100644
--- a/admin/layouts/language_translation/details_fullwidth.php
+++ b/admin/layouts/language_translation/details_fullwidth.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'source',
'translation',
'components'
@@ -23,6 +34,7 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
@@ -31,3 +43,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/language_translation/publishing.php b/admin/layouts/language_translation/publishing.php
index 07d6717ac..68e3657ce 100644
--- a/admin/layouts/language_translation/publishing.php
+++ b/admin/layouts/language_translation/publishing.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'created',
'created_by',
'modified',
@@ -24,9 +35,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/language_translation/publlshing.php b/admin/layouts/language_translation/publlshing.php
index 8ab7976f8..a7ff8580c 100644
--- a/admin/layouts/language_translation/publlshing.php
+++ b/admin/layouts/language_translation/publlshing.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'published',
'ordering',
'access',
@@ -26,9 +37,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/layout/custom_script_fullwidth.php b/admin/layouts/layout/custom_script_fullwidth.php
index 086c0795d..99ccd4de2 100644
--- a/admin/layouts/layout/custom_script_fullwidth.php
+++ b/admin/layouts/layout/custom_script_fullwidth.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'add_php_view',
'php_view'
);
@@ -22,6 +33,7 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
@@ -30,3 +42,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/layout/details_fullwidth.php b/admin/layouts/layout/details_fullwidth.php
index 761b526e3..c3f2241c1 100644
--- a/admin/layouts/layout/details_fullwidth.php
+++ b/admin/layouts/layout/details_fullwidth.php
@@ -12,15 +12,27 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'layout'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
@@ -29,3 +41,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/layout/details_left.php b/admin/layouts/layout/details_left.php
index 94595a664..b1e8dac3d 100644
--- a/admin/layouts/layout/details_left.php
+++ b/admin/layouts/layout/details_left.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'name',
'alias',
'description',
@@ -26,9 +37,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/layout/details_right.php b/admin/layouts/layout/details_right.php
index 9a1b6f719..1f3346970 100644
--- a/admin/layouts/layout/details_right.php
+++ b/admin/layouts/layout/details_right.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'snippet',
'note_uikit_snippet',
'note_snippet_usage'
@@ -23,9 +34,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/layout/details_rightside.php b/admin/layouts/layout/details_rightside.php
index c959fb10a..67bfa97e3 100644
--- a/admin/layouts/layout/details_rightside.php
+++ b/admin/layouts/layout/details_rightside.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'dynamic_get',
'dynamic_values'
);
@@ -22,9 +33,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/layout/details_under.php b/admin/layouts/layout/details_under.php
index d4c77dda2..c1b7ce8e9 100644
--- a/admin/layouts/layout/details_under.php
+++ b/admin/layouts/layout/details_under.php
@@ -12,15 +12,27 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'not_required'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
+
diff --git a/admin/layouts/layout/publishing.php b/admin/layouts/layout/publishing.php
index 07d6717ac..68e3657ce 100644
--- a/admin/layouts/layout/publishing.php
+++ b/admin/layouts/layout/publishing.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'created',
'created_by',
'modified',
@@ -24,9 +35,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/layout/publlshing.php b/admin/layouts/layout/publlshing.php
index 8ab7976f8..a7ff8580c 100644
--- a/admin/layouts/layout/publlshing.php
+++ b/admin/layouts/layout/publlshing.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'published',
'ordering',
'access',
@@ -26,9 +37,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/library/behaviour_above.php b/admin/layouts/library/behaviour_above.php
index cf89269be..62a28fbaf 100644
--- a/admin/layouts/library/behaviour_above.php
+++ b/admin/layouts/library/behaviour_above.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'name',
'how',
'type'
@@ -23,6 +34,7 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
+
diff --git a/admin/layouts/library/behaviour_fullwidth.php b/admin/layouts/library/behaviour_fullwidth.php
index c5b68899e..fb59668b7 100644
--- a/admin/layouts/library/behaviour_fullwidth.php
+++ b/admin/layouts/library/behaviour_fullwidth.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'note_no_behaviour_one',
'note_yes_behaviour_one',
'note_build_in_behaviour_one',
@@ -25,6 +36,7 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
@@ -33,3 +45,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/library/behaviour_left.php b/admin/layouts/library/behaviour_left.php
index bb381c8d9..f3d40f38c 100644
--- a/admin/layouts/library/behaviour_left.php
+++ b/admin/layouts/library/behaviour_left.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'note_library_instruction',
'libraries'
);
@@ -22,9 +33,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/library/behaviour_right.php b/admin/layouts/library/behaviour_right.php
index 679874d4e..3ce9fbbfa 100644
--- a/admin/layouts/library/behaviour_right.php
+++ b/admin/layouts/library/behaviour_right.php
@@ -12,18 +12,31 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'description'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/library/behaviour_under.php b/admin/layouts/library/behaviour_under.php
index d4c77dda2..c1b7ce8e9 100644
--- a/admin/layouts/library/behaviour_under.php
+++ b/admin/layouts/library/behaviour_under.php
@@ -12,15 +12,27 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'not_required'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
+
diff --git a/admin/layouts/library/config_fullwidth.php b/admin/layouts/library/config_fullwidth.php
index 64088b18b..3f32c559e 100644
--- a/admin/layouts/library/config_fullwidth.php
+++ b/admin/layouts/library/config_fullwidth.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'note_no_behaviour_two',
'note_yes_behaviour_two',
'note_build_in_behaviour_two',
@@ -24,6 +35,7 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
@@ -32,3 +44,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/library/files_folders_urls_fullwidth.php b/admin/layouts/library/files_folders_urls_fullwidth.php
index 43c397a35..19ff750bf 100644
--- a/admin/layouts/library/files_folders_urls_fullwidth.php
+++ b/admin/layouts/library/files_folders_urls_fullwidth.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'note_no_behaviour_three',
'note_build_in_behaviour_three',
'note_display_library_files_folders_urls'
@@ -23,6 +34,7 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
@@ -31,3 +43,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/library/linked_fullwidth.php b/admin/layouts/library/linked_fullwidth.php
index f72766e64..039e99c5d 100644
--- a/admin/layouts/library/linked_fullwidth.php
+++ b/admin/layouts/library/linked_fullwidth.php
@@ -12,15 +12,27 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'note_linked_to_notice'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
@@ -29,3 +41,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/library/publishing.php b/admin/layouts/library/publishing.php
index 07d6717ac..68e3657ce 100644
--- a/admin/layouts/library/publishing.php
+++ b/admin/layouts/library/publishing.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'created',
'created_by',
'modified',
@@ -24,9 +35,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/library/publlshing.php b/admin/layouts/library/publlshing.php
index 8ab7976f8..a7ff8580c 100644
--- a/admin/layouts/library/publlshing.php
+++ b/admin/layouts/library/publlshing.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'published',
'ordering',
'access',
@@ -26,9 +37,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/library_config/publishing.php b/admin/layouts/library_config/publishing.php
index 07d6717ac..68e3657ce 100644
--- a/admin/layouts/library_config/publishing.php
+++ b/admin/layouts/library_config/publishing.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'created',
'created_by',
'modified',
@@ -24,9 +35,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/library_config/publlshing.php b/admin/layouts/library_config/publlshing.php
index 8ab7976f8..a7ff8580c 100644
--- a/admin/layouts/library_config/publlshing.php
+++ b/admin/layouts/library_config/publlshing.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'published',
'ordering',
'access',
@@ -26,9 +37,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/library_config/tweaks_above.php b/admin/layouts/library_config/tweaks_above.php
index 9c6adbb27..8503987e0 100644
--- a/admin/layouts/library_config/tweaks_above.php
+++ b/admin/layouts/library_config/tweaks_above.php
@@ -12,15 +12,27 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'library'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
+
diff --git a/admin/layouts/library_config/tweaks_fullwidth.php b/admin/layouts/library_config/tweaks_fullwidth.php
index 3fcdda1e5..b74219ebe 100644
--- a/admin/layouts/library_config/tweaks_fullwidth.php
+++ b/admin/layouts/library_config/tweaks_fullwidth.php
@@ -12,15 +12,27 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'addconfig'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
@@ -29,3 +41,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/library_files_folders_urls/advance_fullwidth.php b/admin/layouts/library_files_folders_urls/advance_fullwidth.php
index a6c96f370..b5112d859 100644
--- a/admin/layouts/library_files_folders_urls/advance_fullwidth.php
+++ b/admin/layouts/library_files_folders_urls/advance_fullwidth.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'note_add_files_fullpath',
'addfilesfullpath',
'note_add_folders_fullpath',
@@ -25,6 +36,7 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
@@ -33,3 +45,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/library_files_folders_urls/basic_above.php b/admin/layouts/library_files_folders_urls/basic_above.php
index 9c6adbb27..8503987e0 100644
--- a/admin/layouts/library_files_folders_urls/basic_above.php
+++ b/admin/layouts/library_files_folders_urls/basic_above.php
@@ -12,15 +12,27 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'library'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
+
diff --git a/admin/layouts/library_files_folders_urls/basic_fullwidth.php b/admin/layouts/library_files_folders_urls/basic_fullwidth.php
index 7dcdef114..60e54aae2 100644
--- a/admin/layouts/library_files_folders_urls/basic_fullwidth.php
+++ b/admin/layouts/library_files_folders_urls/basic_fullwidth.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'note_add_urls',
'addurls',
'note_add_files',
@@ -26,6 +37,7 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
@@ -34,3 +46,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/library_files_folders_urls/publishing.php b/admin/layouts/library_files_folders_urls/publishing.php
index 07d6717ac..68e3657ce 100644
--- a/admin/layouts/library_files_folders_urls/publishing.php
+++ b/admin/layouts/library_files_folders_urls/publishing.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'created',
'created_by',
'modified',
@@ -24,9 +35,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/library_files_folders_urls/publlshing.php b/admin/layouts/library_files_folders_urls/publlshing.php
index 8ab7976f8..a7ff8580c 100644
--- a/admin/layouts/library_files_folders_urls/publlshing.php
+++ b/admin/layouts/library_files_folders_urls/publlshing.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'published',
'ordering',
'access',
@@ -26,9 +37,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/placeholder/details_fullwidth.php b/admin/layouts/placeholder/details_fullwidth.php
index 81b416823..66e50cfcf 100644
--- a/admin/layouts/placeholder/details_fullwidth.php
+++ b/admin/layouts/placeholder/details_fullwidth.php
@@ -12,15 +12,27 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'note_placeholders_placedin'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
@@ -29,3 +41,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/placeholder/details_left.php b/admin/layouts/placeholder/details_left.php
index e768c77e1..97c37799b 100644
--- a/admin/layouts/placeholder/details_left.php
+++ b/admin/layouts/placeholder/details_left.php
@@ -12,18 +12,31 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'target'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/placeholder/details_right.php b/admin/layouts/placeholder/details_right.php
index 6cd004a6e..a4b3f71b9 100644
--- a/admin/layouts/placeholder/details_right.php
+++ b/admin/layouts/placeholder/details_right.php
@@ -12,18 +12,31 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'value'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/placeholder/publishing.php b/admin/layouts/placeholder/publishing.php
index 07d6717ac..68e3657ce 100644
--- a/admin/layouts/placeholder/publishing.php
+++ b/admin/layouts/placeholder/publishing.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'created',
'created_by',
'modified',
@@ -24,9 +35,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/placeholder/publlshing.php b/admin/layouts/placeholder/publlshing.php
index 8ab7976f8..a7ff8580c 100644
--- a/admin/layouts/placeholder/publlshing.php
+++ b/admin/layouts/placeholder/publlshing.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'published',
'ordering',
'access',
@@ -26,9 +37,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/server/details_above.php b/admin/layouts/server/details_above.php
index d34733ceb..0e0361fcc 100644
--- a/admin/layouts/server/details_above.php
+++ b/admin/layouts/server/details_above.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'name',
'protocol'
);
@@ -22,6 +33,7 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
+
diff --git a/admin/layouts/server/details_fullwidth.php b/admin/layouts/server/details_fullwidth.php
index c8b458ebf..064de9bd9 100644
--- a/admin/layouts/server/details_fullwidth.php
+++ b/admin/layouts/server/details_fullwidth.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'note_ftp_signature',
'signature',
'note_ssh_security',
@@ -24,6 +35,7 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
@@ -32,3 +44,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/server/details_left.php b/admin/layouts/server/details_left.php
index da3f41193..e3257bc34 100644
--- a/admin/layouts/server/details_left.php
+++ b/admin/layouts/server/details_left.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'username',
'host',
'port',
@@ -24,9 +35,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/server/details_right.php b/admin/layouts/server/details_right.php
index 484c26bcd..154e5469b 100644
--- a/admin/layouts/server/details_right.php
+++ b/admin/layouts/server/details_right.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'authentication',
'password',
'private',
@@ -25,9 +36,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/server/linked_components_fullwidth.php b/admin/layouts/server/linked_components_fullwidth.php
index 1b07ca66f..859a76e18 100644
--- a/admin/layouts/server/linked_components_fullwidth.php
+++ b/admin/layouts/server/linked_components_fullwidth.php
@@ -13,7 +13,7 @@
defined('_JEXEC') or die('Restricted access');
// set the defaults
-$items = $displayData->wazlinked_components;
+$items = $displayData->wbblinked_components;
$user = JFactory::getUser();
$id = $displayData->item->id;
// set the edit URL
diff --git a/admin/layouts/server/publishing.php b/admin/layouts/server/publishing.php
index 07d6717ac..68e3657ce 100644
--- a/admin/layouts/server/publishing.php
+++ b/admin/layouts/server/publishing.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'created',
'created_by',
'modified',
@@ -24,9 +35,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/server/publlshing.php b/admin/layouts/server/publlshing.php
index 8ab7976f8..a7ff8580c 100644
--- a/admin/layouts/server/publlshing.php
+++ b/admin/layouts/server/publlshing.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'published',
'ordering',
'access',
@@ -26,9 +37,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/site_view/custom_buttons_fullwidth.php b/admin/layouts/site_view/custom_buttons_fullwidth.php
index 5d9f0db34..665c1c65d 100644
--- a/admin/layouts/site_view/custom_buttons_fullwidth.php
+++ b/admin/layouts/site_view/custom_buttons_fullwidth.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'note_custom_toolbar_placeholder',
'custom_button',
'php_controller',
@@ -24,6 +35,7 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
@@ -32,3 +44,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/site_view/custom_buttons_left.php b/admin/layouts/site_view/custom_buttons_left.php
index 4838206d2..6c13821c3 100644
--- a/admin/layouts/site_view/custom_buttons_left.php
+++ b/admin/layouts/site_view/custom_buttons_left.php
@@ -12,18 +12,31 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'add_custom_button'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/site_view/custom_buttons_right.php b/admin/layouts/site_view/custom_buttons_right.php
index 2428befae..9a91c2772 100644
--- a/admin/layouts/site_view/custom_buttons_right.php
+++ b/admin/layouts/site_view/custom_buttons_right.php
@@ -12,18 +12,31 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'button_position'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/site_view/details_above.php b/admin/layouts/site_view/details_above.php
index 564ef15e9..e36b108b9 100644
--- a/admin/layouts/site_view/details_above.php
+++ b/admin/layouts/site_view/details_above.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'system_name',
'context'
);
@@ -22,6 +33,7 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
+
diff --git a/admin/layouts/site_view/details_fullwidth.php b/admin/layouts/site_view/details_fullwidth.php
index 7e5054615..6d03f6c71 100644
--- a/admin/layouts/site_view/details_fullwidth.php
+++ b/admin/layouts/site_view/details_fullwidth.php
@@ -12,15 +12,27 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'default'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
@@ -29,3 +41,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/site_view/details_left.php b/admin/layouts/site_view/details_left.php
index 686776af3..3c95591f7 100644
--- a/admin/layouts/site_view/details_left.php
+++ b/admin/layouts/site_view/details_left.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'name',
'codename',
'description',
@@ -26,9 +37,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/site_view/details_right.php b/admin/layouts/site_view/details_right.php
index 9a1b6f719..1f3346970 100644
--- a/admin/layouts/site_view/details_right.php
+++ b/admin/layouts/site_view/details_right.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'snippet',
'note_uikit_snippet',
'note_snippet_usage'
@@ -23,9 +34,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/site_view/details_rightside.php b/admin/layouts/site_view/details_rightside.php
index dddfb3d0f..76933ba52 100644
--- a/admin/layouts/site_view/details_rightside.php
+++ b/admin/layouts/site_view/details_rightside.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'custom_get',
'main_get',
'dynamic_get',
@@ -24,9 +35,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/site_view/details_under.php b/admin/layouts/site_view/details_under.php
index d4c77dda2..c1b7ce8e9 100644
--- a/admin/layouts/site_view/details_under.php
+++ b/admin/layouts/site_view/details_under.php
@@ -12,15 +12,27 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'not_required'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
+
diff --git a/admin/layouts/site_view/javascript_css_fullwidth.php b/admin/layouts/site_view/javascript_css_fullwidth.php
index 182cd1d05..dcf04dde8 100644
--- a/admin/layouts/site_view/javascript_css_fullwidth.php
+++ b/admin/layouts/site_view/javascript_css_fullwidth.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'add_javascript_file',
'javascript_file',
'add_js_document',
@@ -28,6 +39,7 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
@@ -36,3 +48,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/site_view/linked_components_fullwidth.php b/admin/layouts/site_view/linked_components_fullwidth.php
index f72766e64..039e99c5d 100644
--- a/admin/layouts/site_view/linked_components_fullwidth.php
+++ b/admin/layouts/site_view/linked_components_fullwidth.php
@@ -12,15 +12,27 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'note_linked_to_notice'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
@@ -29,3 +41,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/site_view/php_fullwidth.php b/admin/layouts/site_view/php_fullwidth.php
index cf7142f5a..38eca1009 100644
--- a/admin/layouts/site_view/php_fullwidth.php
+++ b/admin/layouts/site_view/php_fullwidth.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'add_php_ajax',
'php_ajaxmethod',
'ajax_input',
@@ -31,6 +42,7 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
@@ -39,3 +51,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/site_view/publishing.php b/admin/layouts/site_view/publishing.php
index 07d6717ac..68e3657ce 100644
--- a/admin/layouts/site_view/publishing.php
+++ b/admin/layouts/site_view/publishing.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'created',
'created_by',
'modified',
@@ -24,9 +35,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/site_view/publlshing.php b/admin/layouts/site_view/publlshing.php
index 8ab7976f8..a7ff8580c 100644
--- a/admin/layouts/site_view/publlshing.php
+++ b/admin/layouts/site_view/publlshing.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'published',
'ordering',
'access',
@@ -26,9 +37,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/snippet/contributor_fullwidth.php b/admin/layouts/snippet/contributor_fullwidth.php
index 7c3b14d09..e98254a15 100644
--- a/admin/layouts/snippet/contributor_fullwidth.php
+++ b/admin/layouts/snippet/contributor_fullwidth.php
@@ -12,15 +12,27 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'note_contributor_details'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
@@ -29,3 +41,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/snippet/contributor_left.php b/admin/layouts/snippet/contributor_left.php
index 1c3e5f647..469c5e7a1 100644
--- a/admin/layouts/snippet/contributor_left.php
+++ b/admin/layouts/snippet/contributor_left.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'contributor_company',
'contributor_website'
);
@@ -22,9 +33,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/snippet/contributor_right.php b/admin/layouts/snippet/contributor_right.php
index b0885808e..ac2e16f7a 100644
--- a/admin/layouts/snippet/contributor_right.php
+++ b/admin/layouts/snippet/contributor_right.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'contributor_name',
'contributor_email'
);
@@ -22,9 +33,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/snippet/details_above.php b/admin/layouts/snippet/details_above.php
index 561d8f227..68f0ca1c9 100644
--- a/admin/layouts/snippet/details_above.php
+++ b/admin/layouts/snippet/details_above.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'name',
'url',
'library'
@@ -23,6 +34,7 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
+
diff --git a/admin/layouts/snippet/details_left.php b/admin/layouts/snippet/details_left.php
index 804b79f76..ca18f40a0 100644
--- a/admin/layouts/snippet/details_left.php
+++ b/admin/layouts/snippet/details_left.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'type',
'heading',
'description',
@@ -24,9 +35,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/snippet/details_right.php b/admin/layouts/snippet/details_right.php
index 622c652db..40e620d0a 100644
--- a/admin/layouts/snippet/details_right.php
+++ b/admin/layouts/snippet/details_right.php
@@ -12,18 +12,31 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'snippet'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/snippet/publishing.php b/admin/layouts/snippet/publishing.php
index 07d6717ac..68e3657ce 100644
--- a/admin/layouts/snippet/publishing.php
+++ b/admin/layouts/snippet/publishing.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'created',
'created_by',
'modified',
@@ -24,9 +35,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/snippet/publlshing.php b/admin/layouts/snippet/publlshing.php
index 8ab7976f8..a7ff8580c 100644
--- a/admin/layouts/snippet/publlshing.php
+++ b/admin/layouts/snippet/publlshing.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'published',
'ordering',
'access',
@@ -26,9 +37,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/snippet_type/details_left.php b/admin/layouts/snippet_type/details_left.php
index 5c6226fd3..18159298f 100644
--- a/admin/layouts/snippet_type/details_left.php
+++ b/admin/layouts/snippet_type/details_left.php
@@ -12,18 +12,31 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'name'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/snippet_type/details_right.php b/admin/layouts/snippet_type/details_right.php
index 679874d4e..3ce9fbbfa 100644
--- a/admin/layouts/snippet_type/details_right.php
+++ b/admin/layouts/snippet_type/details_right.php
@@ -12,18 +12,31 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'description'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/snippet_type/publishing.php b/admin/layouts/snippet_type/publishing.php
index 07d6717ac..68e3657ce 100644
--- a/admin/layouts/snippet_type/publishing.php
+++ b/admin/layouts/snippet_type/publishing.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'created',
'created_by',
'modified',
@@ -24,9 +35,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/snippet_type/publlshing.php b/admin/layouts/snippet_type/publlshing.php
index 8ab7976f8..a7ff8580c 100644
--- a/admin/layouts/snippet_type/publlshing.php
+++ b/admin/layouts/snippet_type/publlshing.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'published',
'ordering',
'access',
@@ -26,9 +37,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/template/custom_script_fullwidth.php b/admin/layouts/template/custom_script_fullwidth.php
index 086c0795d..99ccd4de2 100644
--- a/admin/layouts/template/custom_script_fullwidth.php
+++ b/admin/layouts/template/custom_script_fullwidth.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'add_php_view',
'php_view'
);
@@ -22,6 +33,7 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
@@ -30,3 +42,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/template/details_fullwidth.php b/admin/layouts/template/details_fullwidth.php
index 32c676529..4a7880a1e 100644
--- a/admin/layouts/template/details_fullwidth.php
+++ b/admin/layouts/template/details_fullwidth.php
@@ -12,15 +12,27 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'template'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
@@ -29,3 +41,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/template/details_left.php b/admin/layouts/template/details_left.php
index 94595a664..b1e8dac3d 100644
--- a/admin/layouts/template/details_left.php
+++ b/admin/layouts/template/details_left.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'name',
'alias',
'description',
@@ -26,9 +37,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/template/details_right.php b/admin/layouts/template/details_right.php
index 771a1ebef..5a572e3e4 100644
--- a/admin/layouts/template/details_right.php
+++ b/admin/layouts/template/details_right.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'snippet',
'note_snippet_usage',
'note_uikit_snippet'
@@ -23,9 +34,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/template/details_rightside.php b/admin/layouts/template/details_rightside.php
index c959fb10a..67bfa97e3 100644
--- a/admin/layouts/template/details_rightside.php
+++ b/admin/layouts/template/details_rightside.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'dynamic_get',
'dynamic_values'
);
@@ -22,9 +33,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/template/details_under.php b/admin/layouts/template/details_under.php
index d4c77dda2..c1b7ce8e9 100644
--- a/admin/layouts/template/details_under.php
+++ b/admin/layouts/template/details_under.php
@@ -12,15 +12,27 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'not_required'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
+
diff --git a/admin/layouts/template/publishing.php b/admin/layouts/template/publishing.php
index 07d6717ac..68e3657ce 100644
--- a/admin/layouts/template/publishing.php
+++ b/admin/layouts/template/publishing.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'created',
'created_by',
'modified',
@@ -24,9 +35,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/template/publlshing.php b/admin/layouts/template/publlshing.php
index 8ab7976f8..a7ff8580c 100644
--- a/admin/layouts/template/publlshing.php
+++ b/admin/layouts/template/publlshing.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'published',
'ordering',
'access',
@@ -26,9 +37,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/validation_rule/extends_formrule_above.php b/admin/layouts/validation_rule/extends_formrule_above.php
index 7af99fba1..ad8370616 100644
--- a/admin/layouts/validation_rule/extends_formrule_above.php
+++ b/admin/layouts/validation_rule/extends_formrule_above.php
@@ -12,15 +12,27 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'inherit'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
+
diff --git a/admin/layouts/validation_rule/extends_formrule_fullwidth.php b/admin/layouts/validation_rule/extends_formrule_fullwidth.php
index 9c7afee5d..19fb17350 100644
--- a/admin/layouts/validation_rule/extends_formrule_fullwidth.php
+++ b/admin/layouts/validation_rule/extends_formrule_fullwidth.php
@@ -12,15 +12,27 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'php'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
@@ -29,3 +41,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/validation_rule/extends_formrule_left.php b/admin/layouts/validation_rule/extends_formrule_left.php
index 5c6226fd3..18159298f 100644
--- a/admin/layouts/validation_rule/extends_formrule_left.php
+++ b/admin/layouts/validation_rule/extends_formrule_left.php
@@ -12,18 +12,31 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'name'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/validation_rule/extends_formrule_right.php b/admin/layouts/validation_rule/extends_formrule_right.php
index fbca02b91..57ab8d289 100644
--- a/admin/layouts/validation_rule/extends_formrule_right.php
+++ b/admin/layouts/validation_rule/extends_formrule_right.php
@@ -12,18 +12,31 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'short_description'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/validation_rule/publishing.php b/admin/layouts/validation_rule/publishing.php
index 07d6717ac..68e3657ce 100644
--- a/admin/layouts/validation_rule/publishing.php
+++ b/admin/layouts/validation_rule/publishing.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'created',
'created_by',
'modified',
@@ -24,9 +35,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/validation_rule/publlshing.php b/admin/layouts/validation_rule/publlshing.php
index 8ab7976f8..a7ff8580c 100644
--- a/admin/layouts/validation_rule/publlshing.php
+++ b/admin/layouts/validation_rule/publlshing.php
@@ -12,9 +12,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+// get the form
$form = $displayData->getForm();
-$fields = $displayData->get('fields') ?: array(
+// get the layout fields override method name (from layout path/ID)
+$layout_path_array = explode('.', $this->getLayoutId());
+// Since we cannot pass the layout and tab names as parameters to the model method
+// this name combination of tab and layout in the method name is the only work around
+// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
+// example of layout name: details_left.php
+// example of method name: getFields_details_left()
+$fields_tab_layout = 'fields_' . $layout_path_array[1];
+
+// get the fields
+$fields = $displayData->get($fields_tab_layout) ?: array(
'published',
'ordering',
'access',
@@ -26,9 +37,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
+
setFieldAttribute($field, 'type', 'hidden'); ?>
renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/models/admin_custom_tabs.php b/admin/models/admin_custom_tabs.php
index c5d77729b..2f02ef692 100644
--- a/admin/models/admin_custom_tabs.php
+++ b/admin/models/admin_custom_tabs.php
@@ -18,13 +18,29 @@ use Joomla\Registry\Registry;
* Componentbuilder Admin_custom_tabs Model
*/
class ComponentbuilderModelAdmin_custom_tabs extends JModelAdmin
-{
+{
+ /**
+ * The tab layout fields array.
+ *
+ * @var array
+ */
+ protected $tabLayoutFields = array(
+ 'tabs' => array(
+ 'fullwidth' => array(
+ 'tabs'
+ ),
+ 'above' => array(
+ 'admin_view'
+ )
+ )
+ );
+
/**
* @var string The prefix to use with controller messages.
* @since 1.6
*/
protected $text_prefix = 'COM_COMPONENTBUILDER';
-
+
/**
* The type alias for this content type.
*
diff --git a/admin/models/admin_fields.php b/admin/models/admin_fields.php
index 781a7682d..9e7504f88 100644
--- a/admin/models/admin_fields.php
+++ b/admin/models/admin_fields.php
@@ -18,13 +18,30 @@ use Joomla\Registry\Registry;
* Componentbuilder Admin_fields Model
*/
class ComponentbuilderModelAdmin_fields extends JModelAdmin
-{
+{
+ /**
+ * The tab layout fields array.
+ *
+ * @var array
+ */
+ protected $tabLayoutFields = array(
+ 'fields' => array(
+ 'fullwidth' => array(
+ 'note_on_views',
+ 'addfields'
+ ),
+ 'above' => array(
+ 'admin_view'
+ )
+ )
+ );
+
/**
* @var string The prefix to use with controller messages.
* @since 1.6
*/
protected $text_prefix = 'COM_COMPONENTBUILDER';
-
+
/**
* The type alias for this content type.
*
diff --git a/admin/models/admin_fields_conditions.php b/admin/models/admin_fields_conditions.php
index 8330a7c0b..2e2013d7e 100644
--- a/admin/models/admin_fields_conditions.php
+++ b/admin/models/admin_fields_conditions.php
@@ -18,13 +18,30 @@ use Joomla\Registry\Registry;
* Componentbuilder Admin_fields_conditions Model
*/
class ComponentbuilderModelAdmin_fields_conditions extends JModelAdmin
-{
+{
+ /**
+ * The tab layout fields array.
+ *
+ * @var array
+ */
+ protected $tabLayoutFields = array(
+ 'conditions' => array(
+ 'fullwidth' => array(
+ 'note_on_conditions',
+ 'addconditions'
+ ),
+ 'above' => array(
+ 'admin_view'
+ )
+ )
+ );
+
/**
* @var string The prefix to use with controller messages.
* @since 1.6
*/
protected $text_prefix = 'COM_COMPONENTBUILDER';
-
+
/**
* The type alias for this content type.
*
diff --git a/admin/models/admin_fields_relations.php b/admin/models/admin_fields_relations.php
index 2eaa3dd13..555d5a17f 100644
--- a/admin/models/admin_fields_relations.php
+++ b/admin/models/admin_fields_relations.php
@@ -18,13 +18,30 @@ use Joomla\Registry\Registry;
* Componentbuilder Admin_fields_relations Model
*/
class ComponentbuilderModelAdmin_fields_relations extends JModelAdmin
-{
+{
+ /**
+ * The tab layout fields array.
+ *
+ * @var array
+ */
+ protected $tabLayoutFields = array(
+ 'relations' => array(
+ 'fullwidth' => array(
+ 'note_on_relations',
+ 'addrelations'
+ ),
+ 'above' => array(
+ 'admin_view'
+ )
+ )
+ );
+
/**
* @var string The prefix to use with controller messages.
* @since 1.6
*/
protected $text_prefix = 'COM_COMPONENTBUILDER';
-
+
/**
* The type alias for this content type.
*
diff --git a/admin/models/admin_view.php b/admin/models/admin_view.php
index 7bcce1a50..60b101f90 100644
--- a/admin/models/admin_view.php
+++ b/admin/models/admin_view.php
@@ -18,13 +18,176 @@ use Joomla\Registry\Registry;
* Componentbuilder Admin_view Model
*/
class ComponentbuilderModelAdmin_view extends JModelAdmin
-{
+{
+ /**
+ * The tab layout fields array.
+ *
+ * @var array
+ */
+ protected $tabLayoutFields = array(
+ 'details' => array(
+ 'left' => array(
+ 'name_single',
+ 'name_list',
+ 'type',
+ 'icon',
+ 'icon_add',
+ 'icon_category'
+ ),
+ 'right' => array(
+ 'short_description',
+ 'description',
+ 'add_fadein'
+ ),
+ 'fullwidth' => array(
+ 'note_linked_to_notice'
+ ),
+ 'above' => array(
+ 'system_name'
+ ),
+ 'under' => array(
+ 'not_required'
+ )
+ ),
+ 'php' => array(
+ 'fullwidth' => array(
+ 'add_php_ajax',
+ 'php_ajaxmethod',
+ 'ajax_input',
+ 'add_php_getitem',
+ 'php_getitem',
+ 'add_php_getitems',
+ 'php_getitems',
+ 'add_php_getitems_after_all',
+ 'php_getitems_after_all',
+ 'add_php_getlistquery',
+ 'php_getlistquery',
+ 'add_php_getform',
+ 'php_getform',
+ 'add_php_before_save',
+ 'php_before_save',
+ 'add_php_save',
+ 'php_save',
+ 'add_php_postsavehook',
+ 'php_postsavehook',
+ 'add_php_allowadd',
+ 'php_allowadd',
+ 'add_php_allowedit',
+ 'php_allowedit',
+ 'add_php_before_cancel',
+ 'php_before_cancel',
+ 'add_php_after_cancel',
+ 'php_after_cancel',
+ 'add_php_batchcopy',
+ 'php_batchcopy',
+ 'add_php_batchmove',
+ 'php_batchmove',
+ 'add_php_before_publish',
+ 'php_before_publish',
+ 'add_php_after_publish',
+ 'php_after_publish',
+ 'add_php_before_delete',
+ 'php_before_delete',
+ 'add_php_after_delete',
+ 'php_after_delete',
+ 'add_php_document',
+ 'php_document'
+ )
+ ),
+ 'mysql' => array(
+ 'left' => array(
+ 'mysql_table_engine',
+ 'mysql_table_charset',
+ 'mysql_table_collate',
+ 'mysql_table_row_format',
+ 'add_sql',
+ 'source',
+ 'addtables'
+ ),
+ 'fullwidth' => array(
+ 'sql'
+ )
+ ),
+ 'custom_import' => array(
+ 'fullwidth' => array(
+ 'note_beginner_import',
+ 'note_advanced_import',
+ 'add_custom_import',
+ 'php_import_display',
+ 'html_import_view',
+ 'php_import',
+ 'php_import_headers',
+ 'php_import_setdata',
+ 'php_import_save',
+ 'php_import_ext'
+ )
+ ),
+ 'settings' => array(
+ 'fullwidth' => array(
+ 'note_on_permissions',
+ 'addpermissions',
+ 'note_on_tabs',
+ 'addtabs',
+ 'note_custom_tabs_note',
+ 'note_on_linked_views',
+ 'addlinked_views'
+ )
+ ),
+ 'fields' => array(
+ 'left' => array(
+ 'note_create_edit_notice',
+ 'alias_builder_type',
+ 'note_alias_builder_custom',
+ 'note_alias_builder_default',
+ 'alias_builder'
+ ),
+ 'right' => array(
+ 'note_create_edit_buttons'
+ ),
+ 'fullwidth' => array(
+ 'note_create_edit_display'
+ )
+ ),
+ 'css' => array(
+ 'fullwidth' => array(
+ 'add_css_view',
+ 'css_view',
+ 'add_css_views',
+ 'css_views'
+ )
+ ),
+ 'javascript' => array(
+ 'fullwidth' => array(
+ 'add_javascript_view_file',
+ 'javascript_view_file',
+ 'add_javascript_view_footer',
+ 'javascript_view_footer',
+ 'add_javascript_views_file',
+ 'javascript_views_file',
+ 'add_javascript_views_footer',
+ 'javascript_views_footer'
+ )
+ ),
+ 'custom_buttons' => array(
+ 'left' => array(
+ 'add_custom_button',
+ 'custom_button'
+ ),
+ 'fullwidth' => array(
+ 'php_controller',
+ 'php_model',
+ 'php_controller_list',
+ 'php_model_list'
+ )
+ )
+ );
+
/**
* @var string The prefix to use with controller messages.
* @since 1.6
*/
protected $text_prefix = 'COM_COMPONENTBUILDER';
-
+
/**
* The type alias for this content type.
*
@@ -52,10 +215,17 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
return JTable::getInstance($type, $prefix, $config);
}
+ /**
+ * get VDM session key
+ *
+ * @return string the session key
+ *
+ */
public function getVDM()
{
return $this->vastDevMod;
}
+
/**
* Method to get a single record.
@@ -104,12 +274,6 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
$item->php_import_save = base64_decode($item->php_import_save);
}
- if (!empty($item->php_getitems))
- {
- // base64 Decode php_getitems.
- $item->php_getitems = base64_decode($item->php_getitems);
- }
-
if (!empty($item->php_getitems_after_all))
{
// base64 Decode php_getitems_after_all.
@@ -182,6 +346,24 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
$item->javascript_view_footer = base64_decode($item->javascript_view_footer);
}
+ if (!empty($item->php_before_cancel))
+ {
+ // base64 Decode php_before_cancel.
+ $item->php_before_cancel = base64_decode($item->php_before_cancel);
+ }
+
+ if (!empty($item->php_after_cancel))
+ {
+ // base64 Decode php_after_cancel.
+ $item->php_after_cancel = base64_decode($item->php_after_cancel);
+ }
+
+ if (!empty($item->javascript_views_file))
+ {
+ // base64 Decode javascript_views_file.
+ $item->javascript_views_file = base64_decode($item->javascript_views_file);
+ }
+
if (!empty($item->php_batchcopy))
{
// base64 Decode php_batchcopy.
@@ -194,10 +376,10 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
$item->php_batchmove = base64_decode($item->php_batchmove);
}
- if (!empty($item->javascript_views_file))
+ if (!empty($item->javascript_views_footer))
{
- // base64 Decode javascript_views_file.
- $item->javascript_views_file = base64_decode($item->javascript_views_file);
+ // base64 Decode javascript_views_footer.
+ $item->javascript_views_footer = base64_decode($item->javascript_views_footer);
}
if (!empty($item->php_before_publish))
@@ -212,42 +394,36 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
$item->php_after_publish = base64_decode($item->php_after_publish);
}
- if (!empty($item->javascript_views_footer))
- {
- // base64 Decode javascript_views_footer.
- $item->javascript_views_footer = base64_decode($item->javascript_views_footer);
- }
-
if (!empty($item->php_before_delete))
{
// base64 Decode php_before_delete.
$item->php_before_delete = base64_decode($item->php_before_delete);
}
- if (!empty($item->php_after_delete))
- {
- // base64 Decode php_after_delete.
- $item->php_after_delete = base64_decode($item->php_after_delete);
- }
-
- if (!empty($item->php_document))
- {
- // base64 Decode php_document.
- $item->php_document = base64_decode($item->php_document);
- }
-
if (!empty($item->php_controller))
{
// base64 Decode php_controller.
$item->php_controller = base64_decode($item->php_controller);
}
+ if (!empty($item->php_after_delete))
+ {
+ // base64 Decode php_after_delete.
+ $item->php_after_delete = base64_decode($item->php_after_delete);
+ }
+
if (!empty($item->php_model))
{
// base64 Decode php_model.
$item->php_model = base64_decode($item->php_model);
}
+ if (!empty($item->php_document))
+ {
+ // base64 Decode php_document.
+ $item->php_document = base64_decode($item->php_document);
+ }
+
if (!empty($item->php_controller_list))
{
// base64 Decode php_controller_list.
@@ -260,24 +436,30 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
$item->php_model_list = base64_decode($item->php_model_list);
}
- if (!empty($item->sql))
- {
- // base64 Decode sql.
- $item->sql = base64_decode($item->sql);
- }
-
if (!empty($item->php_ajaxmethod))
{
// base64 Decode php_ajaxmethod.
$item->php_ajaxmethod = base64_decode($item->php_ajaxmethod);
}
+ if (!empty($item->sql))
+ {
+ // base64 Decode sql.
+ $item->sql = base64_decode($item->sql);
+ }
+
if (!empty($item->php_import_display))
{
// base64 Decode php_import_display.
$item->php_import_display = base64_decode($item->php_import_display);
}
+ if (!empty($item->php_getitem))
+ {
+ // base64 Decode php_getitem.
+ $item->php_getitem = base64_decode($item->php_getitem);
+ }
+
if (!empty($item->php_import))
{
// base64 Decode php_import.
@@ -290,10 +472,10 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
$item->php_import_setdata = base64_decode($item->php_import_setdata);
}
- if (!empty($item->php_getitem))
+ if (!empty($item->php_getitems))
{
- // base64 Decode php_getitem.
- $item->php_getitem = base64_decode($item->php_getitem);
+ // base64 Decode php_getitems.
+ $item->php_getitems = base64_decode($item->php_getitems);
}
if (!empty($item->php_import_ext))
@@ -419,6 +601,22 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
{
$this->_db->updateObject('#__componentbuilder_admin_view', $objectUpdate, 'id');
}
+
+ // update the mysql_table_engine defaults
+ if (isset($item->mysql_table_engine) && is_numeric($item->mysql_table_engine))
+ {
+ $item->mysql_table_engine = 'MyISAM';
+ }
+ // update the mysql_table_charset defaults
+ if (isset($item->mysql_table_charset) && is_numeric($item->mysql_table_charset))
+ {
+ $item->mysql_table_charset = 'utf8';
+ }
+ // update the mysql_table_collate defaults
+ if (isset($item->mysql_table_collate) && is_numeric($item->mysql_table_collate))
+ {
+ $item->mysql_table_collate = 'utf8_general_ci';
+ }
if (!empty($item->id))
{
@@ -1331,12 +1529,6 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
$data['php_import_save'] = base64_encode($data['php_import_save']);
}
- // Set the php_getitems string to base64 string.
- if (isset($data['php_getitems']))
- {
- $data['php_getitems'] = base64_encode($data['php_getitems']);
- }
-
// Set the php_getitems_after_all string to base64 string.
if (isset($data['php_getitems_after_all']))
{
@@ -1409,6 +1601,24 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
$data['javascript_view_footer'] = base64_encode($data['javascript_view_footer']);
}
+ // Set the php_before_cancel string to base64 string.
+ if (isset($data['php_before_cancel']))
+ {
+ $data['php_before_cancel'] = base64_encode($data['php_before_cancel']);
+ }
+
+ // Set the php_after_cancel string to base64 string.
+ if (isset($data['php_after_cancel']))
+ {
+ $data['php_after_cancel'] = base64_encode($data['php_after_cancel']);
+ }
+
+ // Set the javascript_views_file string to base64 string.
+ if (isset($data['javascript_views_file']))
+ {
+ $data['javascript_views_file'] = base64_encode($data['javascript_views_file']);
+ }
+
// Set the php_batchcopy string to base64 string.
if (isset($data['php_batchcopy']))
{
@@ -1421,10 +1631,10 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
$data['php_batchmove'] = base64_encode($data['php_batchmove']);
}
- // Set the javascript_views_file string to base64 string.
- if (isset($data['javascript_views_file']))
+ // Set the javascript_views_footer string to base64 string.
+ if (isset($data['javascript_views_footer']))
{
- $data['javascript_views_file'] = base64_encode($data['javascript_views_file']);
+ $data['javascript_views_footer'] = base64_encode($data['javascript_views_footer']);
}
// Set the php_before_publish string to base64 string.
@@ -1439,42 +1649,36 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
$data['php_after_publish'] = base64_encode($data['php_after_publish']);
}
- // Set the javascript_views_footer string to base64 string.
- if (isset($data['javascript_views_footer']))
- {
- $data['javascript_views_footer'] = base64_encode($data['javascript_views_footer']);
- }
-
// Set the php_before_delete string to base64 string.
if (isset($data['php_before_delete']))
{
$data['php_before_delete'] = base64_encode($data['php_before_delete']);
}
- // Set the php_after_delete string to base64 string.
- if (isset($data['php_after_delete']))
- {
- $data['php_after_delete'] = base64_encode($data['php_after_delete']);
- }
-
- // Set the php_document string to base64 string.
- if (isset($data['php_document']))
- {
- $data['php_document'] = base64_encode($data['php_document']);
- }
-
// Set the php_controller string to base64 string.
if (isset($data['php_controller']))
{
$data['php_controller'] = base64_encode($data['php_controller']);
}
+ // Set the php_after_delete string to base64 string.
+ if (isset($data['php_after_delete']))
+ {
+ $data['php_after_delete'] = base64_encode($data['php_after_delete']);
+ }
+
// Set the php_model string to base64 string.
if (isset($data['php_model']))
{
$data['php_model'] = base64_encode($data['php_model']);
}
+ // Set the php_document string to base64 string.
+ if (isset($data['php_document']))
+ {
+ $data['php_document'] = base64_encode($data['php_document']);
+ }
+
// Set the php_controller_list string to base64 string.
if (isset($data['php_controller_list']))
{
@@ -1487,24 +1691,30 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
$data['php_model_list'] = base64_encode($data['php_model_list']);
}
- // Set the sql string to base64 string.
- if (isset($data['sql']))
- {
- $data['sql'] = base64_encode($data['sql']);
- }
-
// Set the php_ajaxmethod string to base64 string.
if (isset($data['php_ajaxmethod']))
{
$data['php_ajaxmethod'] = base64_encode($data['php_ajaxmethod']);
}
+ // Set the sql string to base64 string.
+ if (isset($data['sql']))
+ {
+ $data['sql'] = base64_encode($data['sql']);
+ }
+
// Set the php_import_display string to base64 string.
if (isset($data['php_import_display']))
{
$data['php_import_display'] = base64_encode($data['php_import_display']);
}
+ // Set the php_getitem string to base64 string.
+ if (isset($data['php_getitem']))
+ {
+ $data['php_getitem'] = base64_encode($data['php_getitem']);
+ }
+
// Set the php_import string to base64 string.
if (isset($data['php_import']))
{
@@ -1517,10 +1727,10 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
$data['php_import_setdata'] = base64_encode($data['php_import_setdata']);
}
- // Set the php_getitem string to base64 string.
- if (isset($data['php_getitem']))
+ // Set the php_getitems string to base64 string.
+ if (isset($data['php_getitems']))
{
- $data['php_getitem'] = base64_encode($data['php_getitem']);
+ $data['php_getitems'] = base64_encode($data['php_getitems']);
}
// Set the php_import_ext string to base64 string.
diff --git a/admin/models/admin_views.php b/admin/models/admin_views.php
index 6ee4f09f9..a39053ef8 100644
--- a/admin/models/admin_views.php
+++ b/admin/models/admin_views.php
@@ -31,8 +31,8 @@ class ComponentbuilderModelAdmin_views extends JModelList
'a.name_single','name_single',
'a.short_description','short_description',
'a.add_fadein','add_fadein',
- 'a.type','type',
'a.add_custom_import','add_custom_import',
+ 'a.type','type',
'a.add_custom_button','add_custom_button',
'a.add_php_ajax','add_php_ajax'
);
@@ -67,12 +67,12 @@ class ComponentbuilderModelAdmin_views extends JModelList
$add_fadein = $this->getUserStateFromRequest($this->context . '.filter.add_fadein', 'filter_add_fadein');
$this->setState('filter.add_fadein', $add_fadein);
- $type = $this->getUserStateFromRequest($this->context . '.filter.type', 'filter_type');
- $this->setState('filter.type', $type);
-
$add_custom_import = $this->getUserStateFromRequest($this->context . '.filter.add_custom_import', 'filter_add_custom_import');
$this->setState('filter.add_custom_import', $add_custom_import);
+ $type = $this->getUserStateFromRequest($this->context . '.filter.type', 'filter_type');
+ $this->setState('filter.type', $type);
+
$add_custom_button = $this->getUserStateFromRequest($this->context . '.filter.add_custom_button', 'filter_add_custom_button');
$this->setState('filter.add_custom_button', $add_custom_button);
@@ -136,10 +136,10 @@ class ComponentbuilderModelAdmin_views extends JModelList
{
// convert add_fadein
$item->add_fadein = $this->selectionTranslation($item->add_fadein, 'add_fadein');
- // convert type
- $item->type = $this->selectionTranslation($item->type, 'type');
// convert add_custom_import
$item->add_custom_import = $this->selectionTranslation($item->add_custom_import, 'add_custom_import');
+ // convert type
+ $item->type = $this->selectionTranslation($item->type, 'type');
// convert add_custom_button
$item->add_custom_button = $this->selectionTranslation($item->add_custom_button, 'add_custom_button');
// convert add_php_ajax
@@ -172,19 +172,6 @@ class ComponentbuilderModelAdmin_views extends JModelList
return $add_fadeinArray[$value];
}
}
- // Array of type language strings
- if ($name === 'type')
- {
- $typeArray = array(
- 1 => 'COM_COMPONENTBUILDER_ADMIN_VIEW_READWRITE',
- 2 => 'COM_COMPONENTBUILDER_ADMIN_VIEW_READONLY'
- );
- // Now check if value is found in this array
- if (isset($typeArray[$value]) && ComponentbuilderHelper::checkString($typeArray[$value]))
- {
- return $typeArray[$value];
- }
- }
// Array of add_custom_import language strings
if ($name === 'add_custom_import')
{
@@ -198,6 +185,19 @@ class ComponentbuilderModelAdmin_views extends JModelList
return $add_custom_importArray[$value];
}
}
+ // Array of type language strings
+ if ($name === 'type')
+ {
+ $typeArray = array(
+ 1 => 'COM_COMPONENTBUILDER_ADMIN_VIEW_READWRITE',
+ 2 => 'COM_COMPONENTBUILDER_ADMIN_VIEW_READONLY'
+ );
+ // Now check if value is found in this array
+ if (isset($typeArray[$value]) && ComponentbuilderHelper::checkString($typeArray[$value]))
+ {
+ return $typeArray[$value];
+ }
+ }
// Array of add_custom_button language strings
if ($name === 'add_custom_button')
{
@@ -282,7 +282,7 @@ class ComponentbuilderModelAdmin_views extends JModelList
else
{
$search = $db->quote('%' . $db->escape($search) . '%');
- $query->where('(a.system_name LIKE '.$search.' OR a.name_single LIKE '.$search.' OR a.short_description LIKE '.$search.' OR a.description LIKE '.$search.' OR a.type LIKE '.$search.' OR a.name_list LIKE '.$search.')');
+ $query->where('(a.system_name LIKE '.$search.' OR a.name_single LIKE '.$search.' OR a.short_description LIKE '.$search.' OR a.name_list LIKE '.$search.' OR a.description LIKE '.$search.' OR a.type LIKE '.$search.')');
}
}
@@ -291,16 +291,16 @@ class ComponentbuilderModelAdmin_views extends JModelList
{
$query->where('a.add_fadein = ' . $db->quote($db->escape($add_fadein)));
}
- // Filter by Type.
- if ($type = $this->getState('filter.type'))
- {
- $query->where('a.type = ' . $db->quote($db->escape($type)));
- }
// Filter by Add_custom_import.
if ($add_custom_import = $this->getState('filter.add_custom_import'))
{
$query->where('a.add_custom_import = ' . $db->quote($db->escape($add_custom_import)));
}
+ // Filter by Type.
+ if ($type = $this->getState('filter.type'))
+ {
+ $query->where('a.type = ' . $db->quote($db->escape($type)));
+ }
// Filter by Add_custom_button.
if ($add_custom_button = $this->getState('filter.add_custom_button'))
{
@@ -382,8 +382,6 @@ class ComponentbuilderModelAdmin_views extends JModelList
$item->html_import_view = base64_decode($item->html_import_view);
// decode php_import_save
$item->php_import_save = base64_decode($item->php_import_save);
- // decode php_getitems
- $item->php_getitems = base64_decode($item->php_getitems);
// decode php_getitems_after_all
$item->php_getitems_after_all = base64_decode($item->php_getitems_after_all);
// decode php_getlistquery
@@ -408,44 +406,50 @@ class ComponentbuilderModelAdmin_views extends JModelList
$item->php_allowedit = base64_decode($item->php_allowedit);
// decode javascript_view_footer
$item->javascript_view_footer = base64_decode($item->javascript_view_footer);
+ // decode php_before_cancel
+ $item->php_before_cancel = base64_decode($item->php_before_cancel);
+ // decode php_after_cancel
+ $item->php_after_cancel = base64_decode($item->php_after_cancel);
+ // decode javascript_views_file
+ $item->javascript_views_file = base64_decode($item->javascript_views_file);
// decode php_batchcopy
$item->php_batchcopy = base64_decode($item->php_batchcopy);
// decode php_batchmove
$item->php_batchmove = base64_decode($item->php_batchmove);
- // decode javascript_views_file
- $item->javascript_views_file = base64_decode($item->javascript_views_file);
+ // decode javascript_views_footer
+ $item->javascript_views_footer = base64_decode($item->javascript_views_footer);
// decode php_before_publish
$item->php_before_publish = base64_decode($item->php_before_publish);
// decode php_after_publish
$item->php_after_publish = base64_decode($item->php_after_publish);
- // decode javascript_views_footer
- $item->javascript_views_footer = base64_decode($item->javascript_views_footer);
// decode php_before_delete
$item->php_before_delete = base64_decode($item->php_before_delete);
- // decode php_after_delete
- $item->php_after_delete = base64_decode($item->php_after_delete);
- // decode php_document
- $item->php_document = base64_decode($item->php_document);
// decode php_controller
$item->php_controller = base64_decode($item->php_controller);
+ // decode php_after_delete
+ $item->php_after_delete = base64_decode($item->php_after_delete);
// decode php_model
$item->php_model = base64_decode($item->php_model);
+ // decode php_document
+ $item->php_document = base64_decode($item->php_document);
// decode php_controller_list
$item->php_controller_list = base64_decode($item->php_controller_list);
// decode php_model_list
$item->php_model_list = base64_decode($item->php_model_list);
- // decode sql
- $item->sql = base64_decode($item->sql);
// decode php_ajaxmethod
$item->php_ajaxmethod = base64_decode($item->php_ajaxmethod);
+ // decode sql
+ $item->sql = base64_decode($item->sql);
// decode php_import_display
$item->php_import_display = base64_decode($item->php_import_display);
+ // decode php_getitem
+ $item->php_getitem = base64_decode($item->php_getitem);
// decode php_import
$item->php_import = base64_decode($item->php_import);
// decode php_import_setdata
$item->php_import_setdata = base64_decode($item->php_import_setdata);
- // decode php_getitem
- $item->php_getitem = base64_decode($item->php_getitem);
+ // decode php_getitems
+ $item->php_getitems = base64_decode($item->php_getitems);
// decode php_import_ext
$item->php_import_ext = base64_decode($item->php_import_ext);
// unset the values we don't want exported.
@@ -512,8 +516,8 @@ class ComponentbuilderModelAdmin_views extends JModelList
$id .= ':' . $this->getState('filter.name_single');
$id .= ':' . $this->getState('filter.short_description');
$id .= ':' . $this->getState('filter.add_fadein');
- $id .= ':' . $this->getState('filter.type');
$id .= ':' . $this->getState('filter.add_custom_import');
+ $id .= ':' . $this->getState('filter.type');
$id .= ':' . $this->getState('filter.add_custom_button');
$id .= ':' . $this->getState('filter.add_php_ajax');
diff --git a/admin/models/ajax.php b/admin/models/ajax.php
index 6c09e19d2..c72d9bd91 100644
--- a/admin/models/ajax.php
+++ b/admin/models/ajax.php
@@ -315,6 +315,7 @@ class ComponentbuilderModelAjax extends JModelList
'component_config' => 'components_config',
'component_dashboard' => 'components_dashboard',
'component_files_folders' => 'components_files_folders',
+ 'custom_code' => 'custom_codes',
'language' => true);
public function getButton($type, $size)
@@ -341,11 +342,16 @@ class ComponentbuilderModelAjax extends JModelList
$ref = '&ref=' . $values['a_view'] . '&refid=' . $values['a_id'] . '&return=' . urlencode(base64_encode($return_url));
}
// build url (A tag)
- $startAtag = '
';
- // build the smaller button
- if (2 == $size)
+ $startAtag = 'onclick="UIkit2.modal.confirm(\''.JText::_('COM_COMPONENTBUILDER_ALL_UNSAVED_WORK_ON_THIS_PAGE_WILL_BE_LOST_ARE_YOU_SURE_YOU_WANT_TO_CONTINUE').'\', function(){ window.location.href = \'index.php?option=com_componentbuilder&view=' . $type . '&layout=edit' . $ref . '\' })" href="javascript:void(0)" title="'.JText::sprintf('COM_COMPONENTBUILDER_CREATE_NEW_S', ComponentbuilderHelper::safeString($type, 'W')).'">';
+ // build the smallest button
+ if (3 == $size)
{
- $button = $startAtag.' ' . JText::_('COM_COMPONENTBUILDER_CREATE') . ' ';
+ $button = '
';
+ }
+ // build the smaller button
+ elseif (2 == $size)
+ {
+ $button = '
' . JText::_('COM_COMPONENTBUILDER_CREATE') . ' ';
}
else
// build the big button
@@ -354,7 +360,7 @@ class ComponentbuilderModelAjax extends JModelList
' . ucwords($type) . '
-
'.$startAtag.'
+
' . JText::_('COM_COMPONENTBUILDER_NEW') . '
@@ -521,6 +527,7 @@ class ComponentbuilderModelAjax extends JModelList
'dashboard_add' => 'setYesNo',
'checkin' => 'setYesNo',
'history' => 'setYesNo',
+ 'joomla_fields' => 'setYesNo',
'port' => 'setYesNo',
'edit_create_site_view' => 'setYesNo',
'icomoon' => 'setIcoMoon',
@@ -574,6 +581,7 @@ class ComponentbuilderModelAjax extends JModelList
'submenu' => JText::_('COM_COMPONENTBUILDER_SUBMENU'),
'checkin' => JText::_('COM_COMPONENTBUILDER_AUTO_CHECKIN'),
'history' => JText::_('COM_COMPONENTBUILDER_KEEP_HISTORY'),
+ 'joomla_fields' => JText::_('COM_COMPONENTBUILDER_JOOMLA_FIELDS'),
'port' => JText::_('COM_COMPONENTBUILDER_EXPORTIMPORT_DATA'),
'edit_create_site_view' => JText::_('COM_COMPONENTBUILDER_EDITCREATE_SITE_VIEW'),
'icomoon' => JText::_('COM_COMPONENTBUILDER_ICON'),
@@ -1934,6 +1942,23 @@ class ComponentbuilderModelAjax extends JModelList
// only continue if this is a legitimate call
if (isset($view['a_id']) && $view['a_id'] == $id && isset($view['a_view']) && ($target = $this->getCodeSearchKeys($view['a_view'], 'query_')) !== false)
{
+ // reset the buttons bucket
+ $buttons = array();
+ // some helper for some fields
+ $helper = array('xml' => 'note_select_field_type');
+ // get input
+ $jinput = JFactory::getApplication()->input;
+ $return_here = $jinput->get('return_here', null, 'base64');
+ // set the return here value if not found
+ if (ComponentbuilderHelper::checkString($return_here))
+ {
+ $return_here = '&return=' . $return_here;
+ }
+ else
+ {
+ $return_here = '&ref=' . $view['a_view'] . '&refid=' . (int) $id;
+ }
+ // start db query
$db = JFactory::getDbo();
$query = $db->getQuery(true)
->select($db->quoteName($target['select']))
@@ -1944,8 +1969,6 @@ class ComponentbuilderModelAjax extends JModelList
if ($db->loadRowList())
{
$data = $db->loadAssoc();
- // some helper for some fields
- $helper = array('xml' => 'note_select_field_type');
// reset the bucket
$bucket = array();
foreach ($data as $key => $value)
@@ -1973,25 +1996,20 @@ class ComponentbuilderModelAjax extends JModelList
// get all custom codes in value
$bucket[$key] = ComponentbuilderHelper::getAllBetween($value, '[CUSTOMC' . 'ODE=', ']');
}
+ // check if field has string length
+ if (ComponentbuilderHelper::checkString($value))
+ {
+ $buttons[$key] = array();
+ if (($button = $this->getButton('custom_code', 3)) && ComponentbuilderHelper::checkString($button))
+ {
+ $buttons[$key]['_create'] = $button;
+ }
+ }
}
}
// check if any values found
if (ComponentbuilderHelper::checkArray($bucket))
{
- // get input
- $jinput = JFactory::getApplication()->input;
- $return_here = $jinput->get('return_here', null, 'base64');
- // set the return here value if not found
- if (ComponentbuilderHelper::checkString($return_here))
- {
- $return_here = '&return=' . $return_here;
- }
- else
- {
- $return_here = '&ref=' . $view['a_view'] . '&refid=' . (int) $id;
- }
- // reset the buttons bucket
- $buttons = array();
foreach ($bucket as $field => $customcodes)
{
$edit_icon = '
';
@@ -2000,7 +2018,6 @@ class ComponentbuilderModelAjax extends JModelList
{
$field = $helper[$field];
}
- $buttons[$field] = array();
foreach ($customcodes as $customcode)
{
$key = (array) explode('+', $customcode);
@@ -2012,13 +2029,13 @@ class ComponentbuilderModelAjax extends JModelList
}
}
}
- // only continue if we have buttons in array
- if (ComponentbuilderHelper::checkArray($buttons, true))
- {
- return $buttons;
- }
}
}
+ // only continue if we have buttons in array
+ if (ComponentbuilderHelper::checkArray($buttons, true))
+ {
+ return $buttons;
+ }
}
return false;
}
@@ -2257,7 +2274,14 @@ class ComponentbuilderModelAjax extends JModelList
'not_base64' => array('dashboard_tab' => 'json'),
'name' => 'joomla_component->id:joomla_component.system_name'
),
- // #__componentbuilder_admin_view (c)
+ // #__componentbuilder_component_placeholders (c)
+ 'component_placeholders' => array(
+ 'search' => array('id', 'joomla_component', 'addplaceholders'),
+ 'views' => 'components_placeholders',
+ 'not_base64' => array('addplaceholders' => 'json'),
+ 'name' => 'joomla_component->id:joomla_component.system_name'
+ ),
+ // #__componentbuilder_admin_view (d)
'admin_view' => array(
'search' => array('id', 'system_name', 'javascript_view_file', 'javascript_view_footer',
'javascript_views_file', 'javascript_views_footer', 'html_import_view',
@@ -2270,14 +2294,21 @@ class ComponentbuilderModelAjax extends JModelList
'not_base64' => array(),
'name' => 'system_name'
),
- // #__componentbuilder_admin_fields_relations (d)
+ // #__componentbuilder_admin_fields_relations (e)
'admin_fields_relations' => array(
'search' => array('id', 'admin_view', 'addrelations'),
'views' => 'admins_fields_relations',
'not_base64' => array('addrelations' => 'json'),
'name' => 'admin_view->id:admin_view.system_name'
),
- // #__componentbuilder_custom_admin_view (e)
+ // #__componentbuilder_admin_custom_tabs (f)
+ 'admin_custom_tabs' => array(
+ 'search' => array('id', 'admin_view', 'tabs'),
+ 'views' => 'admins_custom_tabs',
+ 'not_base64' => array('tabs' => 'json'),
+ 'name' => 'admin_view->id:admin_view.system_name'
+ ),
+ // #__componentbuilder_custom_admin_view (g)
'custom_admin_view' => array(
'search' => array('id', 'system_name', 'default', 'php_view', 'php_jview', 'php_jview_display', 'php_document',
'js_document', 'css_document', 'css', 'php_ajaxmethod', 'php_model', 'php_controller'),
@@ -2285,7 +2316,7 @@ class ComponentbuilderModelAjax extends JModelList
'not_base64' => array(),
'name' => 'system_name'
),
- // #__componentbuilder_site_view (f)
+ // #__componentbuilder_site_view (h)
'site_view' => array(
'search' => array('id', 'system_name', 'default', 'php_view', 'php_jview', 'php_jview_display', 'php_document',
'js_document', 'css_document', 'css', 'php_ajaxmethod', 'php_model', 'php_controller'),
@@ -2293,7 +2324,7 @@ class ComponentbuilderModelAjax extends JModelList
'not_base64' => array(),
'name' => 'system_name'
),
- // #__componentbuilder_field (g)
+ // #__componentbuilder_field (i)
'field' => array(
'search' => array('id', 'name', 'xml', 'javascript_view_footer', 'javascript_views_footer'),
'views' => 'fields',
@@ -2301,14 +2332,14 @@ class ComponentbuilderModelAjax extends JModelList
'base64_search' => array('xml' => array('start' => 'type_php', '_start' => '="', 'end' => '"')),
'name' => 'name'
),
- // #__componentbuilder_fieldtype (h)
+ // #__componentbuilder_fieldtype (j)
'fieldtype' => array(
'search' => array('id', 'name', 'properties'),
'views' => 'fieldtypes',
'not_base64' => array('properties' => 'json'),
'name' => 'name'
),
- // #__componentbuilder_dynamic_get (i)
+ // #__componentbuilder_dynamic_get (k)
'dynamic_get' => array(
'search' => array('id', 'name', 'php_before_getitem', 'php_after_getitem', 'php_before_getitems', 'php_after_getitems',
'php_getlistquery'),
@@ -2316,35 +2347,35 @@ class ComponentbuilderModelAjax extends JModelList
'not_base64' => array(),
'name' => 'name'
),
- // #__componentbuilder_template (j)
+ // #__componentbuilder_template (l)
'template' => array(
'search' => array('id', 'name', 'php_view', 'template'),
'views' => 'templates',
'not_base64' => array(),
'name' => 'name'
),
- // #__componentbuilder_layout (k)
+ // #__componentbuilder_layout (m)
'layout' => array(
'search' => array('id', 'name', 'php_view', 'layout'),
'views' => 'layouts',
'not_base64' => array(),
'name' => 'name'
),
- // #__componentbuilder_library (l)
+ // #__componentbuilder_library (n)
'library' => array(
'search' => array('id', 'name', 'php_setdocument'),
'views' => 'libraries',
'not_base64' => array(),
'name' => 'name'
),
- // #__componentbuilder_custom_code (m)
+ // #__componentbuilder_custom_code (o)
'custom_code' => array(
'search' => array('id', 'system_name', 'code'),
'views' => 'custom_codes',
'not_base64' => array(),
'name' => 'system_name'
),
- // #__componentbuilder_validation_rule (n)
+ // #__componentbuilder_validation_rule (p)
'validation_rule' => array(
'search' => array('id', 'name', 'php'),
'views' => 'validation_rules',
diff --git a/admin/models/component_admin_views.php b/admin/models/component_admin_views.php
index f5e2eb08b..41ea25f34 100644
--- a/admin/models/component_admin_views.php
+++ b/admin/models/component_admin_views.php
@@ -18,13 +18,30 @@ use Joomla\Registry\Registry;
* Componentbuilder Component_admin_views Model
*/
class ComponentbuilderModelComponent_admin_views extends JModelAdmin
-{
+{
+ /**
+ * The tab layout fields array.
+ *
+ * @var array
+ */
+ protected $tabLayoutFields = array(
+ 'views' => array(
+ 'fullwidth' => array(
+ 'note_on_admin_views',
+ 'addadmin_views'
+ ),
+ 'above' => array(
+ 'joomla_component'
+ )
+ )
+ );
+
/**
* @var string The prefix to use with controller messages.
* @since 1.6
*/
protected $text_prefix = 'COM_COMPONENTBUILDER';
-
+
/**
* The type alias for this content type.
*
diff --git a/admin/models/component_config.php b/admin/models/component_config.php
index e64c50b5f..6d2601dc4 100644
--- a/admin/models/component_config.php
+++ b/admin/models/component_config.php
@@ -18,13 +18,29 @@ use Joomla\Registry\Registry;
* Componentbuilder Component_config Model
*/
class ComponentbuilderModelComponent_config extends JModelAdmin
-{
+{
+ /**
+ * The tab layout fields array.
+ *
+ * @var array
+ */
+ protected $tabLayoutFields = array(
+ 'tweaks' => array(
+ 'fullwidth' => array(
+ 'addconfig'
+ ),
+ 'above' => array(
+ 'joomla_component'
+ )
+ )
+ );
+
/**
* @var string The prefix to use with controller messages.
* @since 1.6
*/
protected $text_prefix = 'COM_COMPONENTBUILDER';
-
+
/**
* The type alias for this content type.
*
diff --git a/admin/models/component_custom_admin_menus.php b/admin/models/component_custom_admin_menus.php
index bba09a02a..6ad3c4e29 100644
--- a/admin/models/component_custom_admin_menus.php
+++ b/admin/models/component_custom_admin_menus.php
@@ -18,13 +18,29 @@ use Joomla\Registry\Registry;
* Componentbuilder Component_custom_admin_menus Model
*/
class ComponentbuilderModelComponent_custom_admin_menus extends JModelAdmin
-{
+{
+ /**
+ * The tab layout fields array.
+ *
+ * @var array
+ */
+ protected $tabLayoutFields = array(
+ 'tweaks' => array(
+ 'fullwidth' => array(
+ 'addcustommenus'
+ ),
+ 'above' => array(
+ 'joomla_component'
+ )
+ )
+ );
+
/**
* @var string The prefix to use with controller messages.
* @since 1.6
*/
protected $text_prefix = 'COM_COMPONENTBUILDER';
-
+
/**
* The type alias for this content type.
*
diff --git a/admin/models/component_custom_admin_views.php b/admin/models/component_custom_admin_views.php
index 221693ada..fa75cb6e0 100644
--- a/admin/models/component_custom_admin_views.php
+++ b/admin/models/component_custom_admin_views.php
@@ -18,13 +18,30 @@ use Joomla\Registry\Registry;
* Componentbuilder Component_custom_admin_views Model
*/
class ComponentbuilderModelComponent_custom_admin_views extends JModelAdmin
-{
+{
+ /**
+ * The tab layout fields array.
+ *
+ * @var array
+ */
+ protected $tabLayoutFields = array(
+ 'views' => array(
+ 'fullwidth' => array(
+ 'note_on_custom_admin_views',
+ 'addcustom_admin_views'
+ ),
+ 'above' => array(
+ 'joomla_component'
+ )
+ )
+ );
+
/**
* @var string The prefix to use with controller messages.
* @since 1.6
*/
protected $text_prefix = 'COM_COMPONENTBUILDER';
-
+
/**
* The type alias for this content type.
*
diff --git a/admin/models/component_dashboard.php b/admin/models/component_dashboard.php
index 33ba984a1..3c386aeeb 100644
--- a/admin/models/component_dashboard.php
+++ b/admin/models/component_dashboard.php
@@ -18,13 +18,30 @@ use Joomla\Registry\Registry;
* Componentbuilder Component_dashboard Model
*/
class ComponentbuilderModelComponent_dashboard extends JModelAdmin
-{
+{
+ /**
+ * The tab layout fields array.
+ *
+ * @var array
+ */
+ protected $tabLayoutFields = array(
+ 'dashboard' => array(
+ 'fullwidth' => array(
+ 'php_dashboard_methods',
+ 'dashboard_tab'
+ ),
+ 'above' => array(
+ 'joomla_component'
+ )
+ )
+ );
+
/**
* @var string The prefix to use with controller messages.
* @since 1.6
*/
protected $text_prefix = 'COM_COMPONENTBUILDER';
-
+
/**
* The type alias for this content type.
*
diff --git a/admin/models/component_files_folders.php b/admin/models/component_files_folders.php
index aacab03f7..a055f8093 100644
--- a/admin/models/component_files_folders.php
+++ b/admin/models/component_files_folders.php
@@ -18,13 +18,41 @@ use Joomla\Registry\Registry;
* Componentbuilder Component_files_folders Model
*/
class ComponentbuilderModelComponent_files_folders extends JModelAdmin
-{
+{
+ /**
+ * The tab layout fields array.
+ *
+ * @var array
+ */
+ protected $tabLayoutFields = array(
+ 'basic' => array(
+ 'fullwidth' => array(
+ 'note_add_files',
+ 'addfiles',
+ 'note_add_folders',
+ 'addfolders'
+ ),
+ 'above' => array(
+ 'joomla_component'
+ )
+ ),
+ 'advance' => array(
+ 'fullwidth' => array(
+ 'note_add_files_fullpath',
+ 'addfilesfullpath',
+ 'note_add_folders_fullpath',
+ 'addfoldersfullpath',
+ 'note_constant_paths'
+ )
+ )
+ );
+
/**
* @var string The prefix to use with controller messages.
* @since 1.6
*/
protected $text_prefix = 'COM_COMPONENTBUILDER';
-
+
/**
* The type alias for this content type.
*
diff --git a/admin/models/component_mysql_tweaks.php b/admin/models/component_mysql_tweaks.php
index 969c2cd89..ea0bfa93b 100644
--- a/admin/models/component_mysql_tweaks.php
+++ b/admin/models/component_mysql_tweaks.php
@@ -18,13 +18,29 @@ use Joomla\Registry\Registry;
* Componentbuilder Component_mysql_tweaks Model
*/
class ComponentbuilderModelComponent_mysql_tweaks extends JModelAdmin
-{
+{
+ /**
+ * The tab layout fields array.
+ *
+ * @var array
+ */
+ protected $tabLayoutFields = array(
+ 'tweaks' => array(
+ 'fullwidth' => array(
+ 'sql_tweak'
+ ),
+ 'above' => array(
+ 'joomla_component'
+ )
+ )
+ );
+
/**
* @var string The prefix to use with controller messages.
* @since 1.6
*/
protected $text_prefix = 'COM_COMPONENTBUILDER';
-
+
/**
* The type alias for this content type.
*
diff --git a/admin/models/component_placeholders.php b/admin/models/component_placeholders.php
index 217c5877f..1255bc8ab 100644
--- a/admin/models/component_placeholders.php
+++ b/admin/models/component_placeholders.php
@@ -18,13 +18,29 @@ use Joomla\Registry\Registry;
* Componentbuilder Component_placeholders Model
*/
class ComponentbuilderModelComponent_placeholders extends JModelAdmin
-{
+{
+ /**
+ * The tab layout fields array.
+ *
+ * @var array
+ */
+ protected $tabLayoutFields = array(
+ 'details' => array(
+ 'fullwidth' => array(
+ 'addplaceholders'
+ ),
+ 'above' => array(
+ 'joomla_component'
+ )
+ )
+ );
+
/**
* @var string The prefix to use with controller messages.
* @since 1.6
*/
protected $text_prefix = 'COM_COMPONENTBUILDER';
-
+
/**
* The type alias for this content type.
*
diff --git a/admin/models/component_site_views.php b/admin/models/component_site_views.php
index b4c67352d..49a5ca3c1 100644
--- a/admin/models/component_site_views.php
+++ b/admin/models/component_site_views.php
@@ -18,13 +18,30 @@ use Joomla\Registry\Registry;
* Componentbuilder Component_site_views Model
*/
class ComponentbuilderModelComponent_site_views extends JModelAdmin
-{
+{
+ /**
+ * The tab layout fields array.
+ *
+ * @var array
+ */
+ protected $tabLayoutFields = array(
+ 'views' => array(
+ 'fullwidth' => array(
+ 'note_on_site_views',
+ 'addsite_views'
+ ),
+ 'above' => array(
+ 'joomla_component'
+ )
+ )
+ );
+
/**
* @var string The prefix to use with controller messages.
* @since 1.6
*/
protected $text_prefix = 'COM_COMPONENTBUILDER';
-
+
/**
* The type alias for this content type.
*
diff --git a/admin/models/component_updates.php b/admin/models/component_updates.php
index 5a57c5565..d5736ca78 100644
--- a/admin/models/component_updates.php
+++ b/admin/models/component_updates.php
@@ -18,13 +18,29 @@ use Joomla\Registry\Registry;
* Componentbuilder Component_updates Model
*/
class ComponentbuilderModelComponent_updates extends JModelAdmin
-{
+{
+ /**
+ * The tab layout fields array.
+ *
+ * @var array
+ */
+ protected $tabLayoutFields = array(
+ 'updates' => array(
+ 'fullwidth' => array(
+ 'version_update'
+ ),
+ 'above' => array(
+ 'joomla_component'
+ )
+ )
+ );
+
/**
* @var string The prefix to use with controller messages.
* @since 1.6
*/
protected $text_prefix = 'COM_COMPONENTBUILDER';
-
+
/**
* The type alias for this content type.
*
diff --git a/admin/models/custom_admin_view.php b/admin/models/custom_admin_view.php
index f6751cff1..f7cbca17b 100644
--- a/admin/models/custom_admin_view.php
+++ b/admin/models/custom_admin_view.php
@@ -18,13 +18,95 @@ use Joomla\Registry\Registry;
* Componentbuilder Custom_admin_view Model
*/
class ComponentbuilderModelCustom_admin_view extends JModelAdmin
-{
+{
+ /**
+ * The tab layout fields array.
+ *
+ * @var array
+ */
+ protected $tabLayoutFields = array(
+ 'details' => array(
+ 'left' => array(
+ 'name',
+ 'codename',
+ 'description',
+ 'note_libraries_selection',
+ 'libraries',
+ 'note_add_language_string'
+ ),
+ 'right' => array(
+ 'icon',
+ 'snippet',
+ 'note_uikit_snippet',
+ 'note_snippet_usage'
+ ),
+ 'fullwidth' => array(
+ 'default'
+ ),
+ 'above' => array(
+ 'system_name',
+ 'context'
+ ),
+ 'under' => array(
+ 'not_required'
+ ),
+ 'rightside' => array(
+ 'custom_get',
+ 'main_get',
+ 'dynamic_get',
+ 'dynamic_values'
+ )
+ ),
+ 'php' => array(
+ 'fullwidth' => array(
+ 'add_php_ajax',
+ 'php_ajaxmethod',
+ 'ajax_input',
+ 'add_php_document',
+ 'php_document',
+ 'add_php_view',
+ 'php_view',
+ 'add_php_jview_display',
+ 'php_jview_display',
+ 'add_php_jview',
+ 'php_jview'
+ )
+ ),
+ 'javascript_css' => array(
+ 'fullwidth' => array(
+ 'add_js_document',
+ 'js_document',
+ 'add_javascript_file',
+ 'javascript_file',
+ 'add_css_document',
+ 'css_document',
+ 'add_css',
+ 'css'
+ )
+ ),
+ 'custom_buttons' => array(
+ 'left' => array(
+ 'add_custom_button',
+ 'custom_button'
+ ),
+ 'fullwidth' => array(
+ 'php_controller',
+ 'php_model'
+ )
+ ),
+ 'linked_components' => array(
+ 'fullwidth' => array(
+ 'note_linked_to_notice'
+ )
+ )
+ );
+
/**
* @var string The prefix to use with controller messages.
* @since 1.6
*/
protected $text_prefix = 'COM_COMPONENTBUILDER';
-
+
/**
* The type alias for this content type.
*
@@ -52,10 +134,17 @@ class ComponentbuilderModelCustom_admin_view extends JModelAdmin
return JTable::getInstance($type, $prefix, $config);
}
+ /**
+ * get VDM session key
+ *
+ * @return string the session key
+ *
+ */
public function getVDM()
{
return $this->vastDevMod;
}
+
/**
* Method to get a single record.
diff --git a/admin/models/custom_code.php b/admin/models/custom_code.php
index 7417e9b5a..534c3b3cd 100644
--- a/admin/models/custom_code.php
+++ b/admin/models/custom_code.php
@@ -18,13 +18,48 @@ use Joomla\Registry\Registry;
* Componentbuilder Custom_code Model
*/
class ComponentbuilderModelCustom_code extends JModelAdmin
-{
+{
+ /**
+ * The tab layout fields array.
+ *
+ * @var array
+ */
+ protected $tabLayoutFields = array(
+ 'details' => array(
+ 'left' => array(
+ 'comment_type',
+ 'component',
+ 'type',
+ 'hashtarget'
+ ),
+ 'right' => array(
+ 'from_line',
+ 'to_line',
+ 'hashendtarget'
+ ),
+ 'fullwidth' => array(
+ 'path',
+ 'note_jcb_placeholder',
+ 'code',
+ 'note_placeholders_explained'
+ ),
+ 'above' => array(
+ 'target',
+ 'system_name',
+ 'function_name'
+ ),
+ 'under' => array(
+ 'not_required'
+ )
+ )
+ );
+
/**
* @var string The prefix to use with controller messages.
* @since 1.6
*/
protected $text_prefix = 'COM_COMPONENTBUILDER';
-
+
/**
* The type alias for this content type.
*
@@ -52,10 +87,17 @@ class ComponentbuilderModelCustom_code extends JModelAdmin
return JTable::getInstance($type, $prefix, $config);
}
+ /**
+ * get VDM session key
+ *
+ * @return string the session key
+ *
+ */
public function getVDM()
{
return $this->vastDevMod;
}
+
/**
* Method to get a single record.
diff --git a/admin/models/dynamic_get.php b/admin/models/dynamic_get.php
index aa7936163..0d899b1c5 100644
--- a/admin/models/dynamic_get.php
+++ b/admin/models/dynamic_get.php
@@ -18,13 +18,88 @@ use Joomla\Registry\Registry;
* Componentbuilder Dynamic_get Model
*/
class ComponentbuilderModelDynamic_get extends JModelAdmin
-{
+{
+ /**
+ * The tab layout fields array.
+ *
+ * @var array
+ */
+ protected $tabLayoutFields = array(
+ 'main' => array(
+ 'left' => array(
+ 'main_source',
+ 'view_table_main',
+ 'db_table_main',
+ 'select_all',
+ 'view_selection',
+ 'db_selection'
+ ),
+ 'right' => array(
+ 'plugin_events'
+ ),
+ 'fullwidth' => array(
+ 'php_custom_get',
+ 'note_linked_to_notice'
+ ),
+ 'above' => array(
+ 'name',
+ 'gettype',
+ 'getcustom',
+ 'pagination'
+ ),
+ 'under' => array(
+ 'not_required'
+ )
+ ),
+ 'abacus' => array(
+ 'left' => array(
+ 'addcalculation'
+ ),
+ 'fullwidth' => array(
+ 'note_calculation_item',
+ 'note_calculation_items',
+ 'php_calculation'
+ )
+ ),
+ 'custom_script' => array(
+ 'fullwidth' => array(
+ 'add_php_before_getitem',
+ 'php_before_getitem',
+ 'add_php_after_getitem',
+ 'php_after_getitem',
+ 'add_php_getlistquery',
+ 'php_getlistquery',
+ 'add_php_before_getitems',
+ 'php_before_getitems',
+ 'add_php_after_getitems',
+ 'php_after_getitems',
+ 'add_php_router_parse',
+ 'php_router_parse'
+ )
+ ),
+ 'joint' => array(
+ 'fullwidth' => array(
+ 'join_view_table',
+ 'join_db_table'
+ )
+ ),
+ 'tweak' => array(
+ 'fullwidth' => array(
+ 'filter',
+ 'where',
+ 'order',
+ 'group',
+ 'global'
+ )
+ )
+ );
+
/**
* @var string The prefix to use with controller messages.
* @since 1.6
*/
protected $text_prefix = 'COM_COMPONENTBUILDER';
-
+
/**
* The type alias for this content type.
*
@@ -52,10 +127,17 @@ class ComponentbuilderModelDynamic_get extends JModelAdmin
return JTable::getInstance($type, $prefix, $config);
}
+ /**
+ * get VDM session key
+ *
+ * @return string the session key
+ *
+ */
public function getVDM()
{
return $this->vastDevMod;
}
+
/**
* Method to get a single record.
diff --git a/admin/models/field.php b/admin/models/field.php
index a0809d2b6..4ee506d06 100644
--- a/admin/models/field.php
+++ b/admin/models/field.php
@@ -18,13 +18,74 @@ use Joomla\Registry\Registry;
* Componentbuilder Field Model
*/
class ComponentbuilderModelField extends JModelAdmin
-{
+{
+ /**
+ * The tab layout fields array.
+ *
+ * @var array
+ */
+ protected $tabLayoutFields = array(
+ 'set_properties' => array(
+ 'fullwidth' => array(
+ 'note_select_field_type',
+ 'note_filter_information'
+ ),
+ 'above' => array(
+ 'fieldtype',
+ 'name',
+ 'catid'
+ ),
+ 'under' => array(
+ 'not_required'
+ )
+ ),
+ 'database' => array(
+ 'left' => array(
+ 'datatype',
+ 'datalenght',
+ 'datalenght_other',
+ 'datadefault',
+ 'datadefault_other'
+ ),
+ 'right' => array(
+ 'indexes',
+ 'null_switch',
+ 'store',
+ 'note_whmcs_encryption'
+ ),
+ 'fullwidth' => array(
+ 'note_no_database_settings_needed',
+ 'note_database_settings_needed'
+ )
+ ),
+ 'scripts' => array(
+ 'left' => array(
+ 'add_css_view',
+ 'css_view',
+ 'add_css_views',
+ 'css_views'
+ ),
+ 'right' => array(
+ 'add_javascript_view_footer',
+ 'javascript_view_footer',
+ 'add_javascript_views_footer',
+ 'javascript_views_footer'
+ )
+ ),
+ 'type_info' => array(
+ 'fullwidth' => array(
+ 'helpnote',
+ 'xml'
+ )
+ )
+ );
+
/**
* @var string The prefix to use with controller messages.
* @since 1.6
*/
protected $text_prefix = 'COM_COMPONENTBUILDER';
-
+
/**
* The type alias for this content type.
*
@@ -52,10 +113,17 @@ class ComponentbuilderModelField extends JModelAdmin
return JTable::getInstance($type, $prefix, $config);
}
+ /**
+ * get VDM session key
+ *
+ * @return string the session key
+ *
+ */
public function getVDM()
{
return $this->vastDevMod;
}
+
/**
* Method to get a single record.
@@ -923,8 +991,6 @@ class ComponentbuilderModelField extends JModelAdmin
// make sure we have the correct values
if (ComponentbuilderHelper::checkArray($property) && isset($property['name']) && ComponentbuilderHelper::checkString($property['name']) && (isset($property['value']) || 'default' === $property['name']))
{
- // fix the name (TODO)
- // $property['name'] = ComponentbuilderHelper::safeString($property['name']);
// some fixes, just in case (more can be added)
switch ($property['name'])
{
@@ -937,7 +1003,7 @@ class ComponentbuilderModelField extends JModelAdmin
}
else
{
- $property['value'] = ComponentbuilderHelper::safeString($property['value']);
+ $property['value'] = ComponentbuilderHelper::safeFieldName($property['value']);
}
break;
case 'type':
diff --git a/admin/models/fields/adminsviews.php b/admin/models/fields/adminsviews.php
index b459a6a64..6c0728229 100644
--- a/admin/models/fields/adminsviews.php
+++ b/admin/models/fields/adminsviews.php
@@ -35,22 +35,23 @@ class JFormFieldAdminsviews extends JFormFieldList
*/
protected function getOptions()
{
- $db = JFactory::getDBO();
- $query = $db->getQuery(true);
- $query->select($db->quoteName(array('a.id','a.system_name'),array('id','adminviews_system_name')));
- $query->from($db->quoteName('#__componentbuilder_admin_view', 'a'));
- $query->where($db->quoteName('a.published') . ' >= 1');
- $query->order('a.system_name ASC');
- $db->setQuery((string)$query);
- $items = $db->loadObjectList();
- $options = array();
- if ($items)
- {
- foreach($items as $item)
- {
- $options[] = JHtml::_('select.option', $item->id, $item->adminviews_system_name);
- }
- }
+ $db = JFactory::getDBO();
+ $query = $db->getQuery(true);
+ $query->select($db->quoteName(array('a.id','a.system_name'),array('id','adminviews_system_name')));
+ $query->from($db->quoteName('#__componentbuilder_admin_view', 'a'));
+ $query->where($db->quoteName('a.published') . ' >= 1');
+ $query->order('a.system_name ASC');
+ $db->setQuery((string)$query);
+ $items = $db->loadObjectList();
+ $options = array();
+ if ($items)
+ {
+ foreach($items as $item)
+ {
+ $options[] = JHtml::_('select.option', $item->id, $item->adminviews_system_name);
+ }
+ }
+
return $options;
}
}
diff --git a/admin/models/fields/component.php b/admin/models/fields/component.php
index 9d42bd301..9404fd994 100644
--- a/admin/models/fields/component.php
+++ b/admin/models/fields/component.php
@@ -38,15 +38,15 @@ class JFormFieldComponent extends JFormFieldList
protected function getInput()
{
// see if we should add buttons
- $setButton = $this->getAttribute('button');
+ $set_button = $this->getAttribute('button');
// get html
$html = parent::getInput();
// if true set button
- if ($setButton === 'true')
+ if ($set_button === 'true')
{
$button = array();
$script = array();
- $buttonName = $this->getAttribute('name');
+ $button_code_name = $this->getAttribute('name');
// get the input from url
$app = JFactory::getApplication();
$jinput = $app->input;
@@ -70,55 +70,52 @@ class JFormFieldComponent extends JFormFieldList
$ref .= '&return=' . $_return;
$refJ .= '&return=' . $_return;
}
+ // get button label
+ $button_label = trim($button_code_name);
+ $button_label = preg_replace('/_+/', ' ', $button_label);
+ $button_label = preg_replace('/\s+/', ' ', $button_label);
+ $button_label = preg_replace("/[^A-Za-z ]/", '', $button_label);
+ $button_label = ucfirst(strtolower($button_label));
+ // get user object
$user = JFactory::getUser();
// only add if user allowed to create joomla_component
if ($user->authorise('joomla_component.create', 'com_componentbuilder') && $app->isAdmin()) // TODO for now only in admin area.
{
// build Create button
- $buttonNamee = trim($buttonName);
- $buttonNamee = preg_replace('/_+/', ' ', $buttonNamee);
- $buttonNamee = preg_replace('/\s+/', ' ', $buttonNamee);
- $buttonNamee = preg_replace("/[^A-Za-z ]/", '', $buttonNamee);
- $buttonNamee = ucfirst(strtolower($buttonNamee));
- $button[] = '
';
}
// only add if user allowed to edit joomla_component
- if (($buttonName === 'joomla_component' || $buttonName === 'joomla_components') && $user->authorise('joomla_component.edit', 'com_componentbuilder') && $app->isAdmin()) // TODO for now only in admin area.
+ if ($user->authorise('joomla_component.edit', 'com_componentbuilder') && $app->isAdmin()) // TODO for now only in admin area.
{
// build edit button
- $buttonNamee = trim($buttonName);
- $buttonNamee = preg_replace('/_+/', ' ', $buttonNamee);
- $buttonNamee = preg_replace('/\s+/', ' ', $buttonNamee);
- $buttonNamee = preg_replace("/[^A-Za-z ]/", '', $buttonNamee);
- $buttonNamee = ucfirst(strtolower($buttonNamee));
- $button[] = '
+ $button[] = '
';
// build script
$script[] = "
jQuery(document).ready(function() {
- jQuery('#adminForm').on('change', '#jform_".$buttonName."',function (e) {
+ jQuery('#adminForm').on('change', '#jform_".$button_code_name."',function (e) {
e.preventDefault();
- var ".$buttonName."Value = jQuery('#jform_".$buttonName."').val();
- ".$buttonName."Button(".$buttonName."Value);
+ var ".$button_code_name."Value = jQuery('#jform_".$button_code_name."').val();
+ ".$button_code_name."Button(".$button_code_name."Value);
});
- var ".$buttonName."Value = jQuery('#jform_".$buttonName."').val();
- ".$buttonName."Button(".$buttonName."Value);
+ var ".$button_code_name."Value = jQuery('#jform_".$button_code_name."').val();
+ ".$button_code_name."Button(".$button_code_name."Value);
});
- function ".$buttonName."Button(value) {
+ function ".$button_code_name."Button(value) {
if (value > 0) {
// hide the create button
- jQuery('#".$buttonName."Create').hide();
+ jQuery('#".$button_code_name."Create').hide();
// show edit button
- jQuery('#".$buttonName."Edit').show();
+ jQuery('#".$button_code_name."Edit').show();
var url = 'index.php?option=com_componentbuilder&view=joomla_components&task=joomla_component.edit&id='+value+'".$refJ."';
- jQuery('#".$buttonName."Edit').attr('href', url);
+ jQuery('#".$button_code_name."Edit').attr('href', url);
} else {
// show the create button
- jQuery('#".$buttonName."Create').show();
+ jQuery('#".$button_code_name."Create').show();
// hide edit button
- jQuery('#".$buttonName."Edit').hide();
+ jQuery('#".$button_code_name."Edit').hide();
}
}";
}
@@ -143,23 +140,23 @@ class JFormFieldComponent extends JFormFieldList
protected function getOptions()
{
$db = JFactory::getDBO();
-$query = $db->getQuery(true);
-$query->select($db->quoteName(array('a.id','a.system_name'),array('id','component_system_name')));
-$query->from($db->quoteName('#__componentbuilder_joomla_component', 'a'));
-$query->where($db->quoteName('a.published') . ' >= 1');
-$query->order('a.system_name ASC');
-$db->setQuery((string)$query);
-$items = $db->loadObjectList();
-$options = array();
-if ($items)
-{
- $options[] = JHtml::_('select.option', '', 'Select an option');
- foreach($items as $item)
- {
- $options[] = JHtml::_('select.option', $item->id, $item->component_system_name);
- }
-}
+ $query = $db->getQuery(true);
+ $query->select($db->quoteName(array('a.id','a.system_name'),array('id','component_system_name')));
+ $query->from($db->quoteName('#__componentbuilder_joomla_component', 'a'));
+ $query->where($db->quoteName('a.published') . ' >= 1');
+ $query->order('a.system_name ASC');
+ $db->setQuery((string)$query);
+ $items = $db->loadObjectList();
+ $options = array();
+ if ($items)
+ {
+ $options[] = JHtml::_('select.option', '', 'Select an option');
+ foreach($items as $item)
+ {
+ $options[] = JHtml::_('select.option', $item->id, $item->component_system_name);
+ }
+ }
-return $options;
+ return $options;
}
}
diff --git a/admin/models/fields/dynamicget.php b/admin/models/fields/dynamicget.php
index 467b2d143..49198710e 100644
--- a/admin/models/fields/dynamicget.php
+++ b/admin/models/fields/dynamicget.php
@@ -38,15 +38,15 @@ class JFormFieldDynamicget extends JFormFieldList
protected function getInput()
{
// see if we should add buttons
- $setButton = $this->getAttribute('button');
+ $set_button = $this->getAttribute('button');
// get html
$html = parent::getInput();
// if true set button
- if ($setButton === 'true')
+ if ($set_button === 'true')
{
$button = array();
$script = array();
- $buttonName = $this->getAttribute('name');
+ $button_code_name = $this->getAttribute('name');
// get the input from url
$app = JFactory::getApplication();
$jinput = $app->input;
@@ -70,55 +70,52 @@ class JFormFieldDynamicget extends JFormFieldList
$ref .= '&return=' . $_return;
$refJ .= '&return=' . $_return;
}
+ // get button label
+ $button_label = trim($button_code_name);
+ $button_label = preg_replace('/_+/', ' ', $button_label);
+ $button_label = preg_replace('/\s+/', ' ', $button_label);
+ $button_label = preg_replace("/[^A-Za-z ]/", '', $button_label);
+ $button_label = ucfirst(strtolower($button_label));
+ // get user object
$user = JFactory::getUser();
// only add if user allowed to create dynamic_get
if ($user->authorise('dynamic_get.create', 'com_componentbuilder') && $app->isAdmin()) // TODO for now only in admin area.
{
// build Create button
- $buttonNamee = trim($buttonName);
- $buttonNamee = preg_replace('/_+/', ' ', $buttonNamee);
- $buttonNamee = preg_replace('/\s+/', ' ', $buttonNamee);
- $buttonNamee = preg_replace("/[^A-Za-z ]/", '', $buttonNamee);
- $buttonNamee = ucfirst(strtolower($buttonNamee));
- $button[] = '
';
}
// only add if user allowed to edit dynamic_get
- if (($buttonName === 'dynamic_get' || $buttonName === 'dynamic_gets') && $user->authorise('dynamic_get.edit', 'com_componentbuilder') && $app->isAdmin()) // TODO for now only in admin area.
+ if ($user->authorise('dynamic_get.edit', 'com_componentbuilder') && $app->isAdmin()) // TODO for now only in admin area.
{
// build edit button
- $buttonNamee = trim($buttonName);
- $buttonNamee = preg_replace('/_+/', ' ', $buttonNamee);
- $buttonNamee = preg_replace('/\s+/', ' ', $buttonNamee);
- $buttonNamee = preg_replace("/[^A-Za-z ]/", '', $buttonNamee);
- $buttonNamee = ucfirst(strtolower($buttonNamee));
- $button[] = '
+ $button[] = '
';
// build script
$script[] = "
jQuery(document).ready(function() {
- jQuery('#adminForm').on('change', '#jform_".$buttonName."',function (e) {
+ jQuery('#adminForm').on('change', '#jform_".$button_code_name."',function (e) {
e.preventDefault();
- var ".$buttonName."Value = jQuery('#jform_".$buttonName."').val();
- ".$buttonName."Button(".$buttonName."Value);
+ var ".$button_code_name."Value = jQuery('#jform_".$button_code_name."').val();
+ ".$button_code_name."Button(".$button_code_name."Value);
});
- var ".$buttonName."Value = jQuery('#jform_".$buttonName."').val();
- ".$buttonName."Button(".$buttonName."Value);
+ var ".$button_code_name."Value = jQuery('#jform_".$button_code_name."').val();
+ ".$button_code_name."Button(".$button_code_name."Value);
});
- function ".$buttonName."Button(value) {
+ function ".$button_code_name."Button(value) {
if (value > 0) {
// hide the create button
- jQuery('#".$buttonName."Create').hide();
+ jQuery('#".$button_code_name."Create').hide();
// show edit button
- jQuery('#".$buttonName."Edit').show();
+ jQuery('#".$button_code_name."Edit').show();
var url = 'index.php?option=com_componentbuilder&view=dynamic_gets&task=dynamic_get.edit&id='+value+'".$refJ."';
- jQuery('#".$buttonName."Edit').attr('href', url);
+ jQuery('#".$button_code_name."Edit').attr('href', url);
} else {
// show the create button
- jQuery('#".$buttonName."Create').show();
+ jQuery('#".$button_code_name."Create').show();
// hide edit button
- jQuery('#".$buttonName."Edit').hide();
+ jQuery('#".$button_code_name."Edit').hide();
}
}";
}
diff --git a/admin/models/fields/fieldtypes.php b/admin/models/fields/fieldtypes.php
index 61e7d0ae6..97290a607 100644
--- a/admin/models/fields/fieldtypes.php
+++ b/admin/models/fields/fieldtypes.php
@@ -38,15 +38,15 @@ class JFormFieldFieldtypes extends JFormFieldList
protected function getInput()
{
// see if we should add buttons
- $setButton = $this->getAttribute('button');
+ $set_button = $this->getAttribute('button');
// get html
$html = parent::getInput();
// if true set button
- if ($setButton === 'true')
+ if ($set_button === 'true')
{
$button = array();
$script = array();
- $buttonName = $this->getAttribute('name');
+ $button_code_name = $this->getAttribute('name');
// get the input from url
$app = JFactory::getApplication();
$jinput = $app->input;
@@ -70,55 +70,52 @@ class JFormFieldFieldtypes extends JFormFieldList
$ref .= '&return=' . $_return;
$refJ .= '&return=' . $_return;
}
+ // get button label
+ $button_label = trim($button_code_name);
+ $button_label = preg_replace('/_+/', ' ', $button_label);
+ $button_label = preg_replace('/\s+/', ' ', $button_label);
+ $button_label = preg_replace("/[^A-Za-z ]/", '', $button_label);
+ $button_label = ucfirst(strtolower($button_label));
+ // get user object
$user = JFactory::getUser();
// only add if user allowed to create fieldtype
if ($user->authorise('fieldtype.create', 'com_componentbuilder') && $app->isAdmin()) // TODO for now only in admin area.
{
// build Create button
- $buttonNamee = trim($buttonName);
- $buttonNamee = preg_replace('/_+/', ' ', $buttonNamee);
- $buttonNamee = preg_replace('/\s+/', ' ', $buttonNamee);
- $buttonNamee = preg_replace("/[^A-Za-z ]/", '', $buttonNamee);
- $buttonNamee = ucfirst(strtolower($buttonNamee));
- $button[] = '
';
}
// only add if user allowed to edit fieldtype
- if (($buttonName === 'fieldtype' || $buttonName === 'fieldtypes') && $user->authorise('fieldtype.edit', 'com_componentbuilder') && $app->isAdmin()) // TODO for now only in admin area.
+ if ($user->authorise('fieldtype.edit', 'com_componentbuilder') && $app->isAdmin()) // TODO for now only in admin area.
{
// build edit button
- $buttonNamee = trim($buttonName);
- $buttonNamee = preg_replace('/_+/', ' ', $buttonNamee);
- $buttonNamee = preg_replace('/\s+/', ' ', $buttonNamee);
- $buttonNamee = preg_replace("/[^A-Za-z ]/", '', $buttonNamee);
- $buttonNamee = ucfirst(strtolower($buttonNamee));
- $button[] = '
+ $button[] = '
';
// build script
$script[] = "
jQuery(document).ready(function() {
- jQuery('#adminForm').on('change', '#jform_".$buttonName."',function (e) {
+ jQuery('#adminForm').on('change', '#jform_".$button_code_name."',function (e) {
e.preventDefault();
- var ".$buttonName."Value = jQuery('#jform_".$buttonName."').val();
- ".$buttonName."Button(".$buttonName."Value);
+ var ".$button_code_name."Value = jQuery('#jform_".$button_code_name."').val();
+ ".$button_code_name."Button(".$button_code_name."Value);
});
- var ".$buttonName."Value = jQuery('#jform_".$buttonName."').val();
- ".$buttonName."Button(".$buttonName."Value);
+ var ".$button_code_name."Value = jQuery('#jform_".$button_code_name."').val();
+ ".$button_code_name."Button(".$button_code_name."Value);
});
- function ".$buttonName."Button(value) {
+ function ".$button_code_name."Button(value) {
if (value > 0) {
// hide the create button
- jQuery('#".$buttonName."Create').hide();
+ jQuery('#".$button_code_name."Create').hide();
// show edit button
- jQuery('#".$buttonName."Edit').show();
+ jQuery('#".$button_code_name."Edit').show();
var url = 'index.php?option=com_componentbuilder&view=fieldtypes&task=fieldtype.edit&id='+value+'".$refJ."';
- jQuery('#".$buttonName."Edit').attr('href', url);
+ jQuery('#".$button_code_name."Edit').attr('href', url);
} else {
// show the create button
- jQuery('#".$buttonName."Create').show();
+ jQuery('#".$button_code_name."Create').show();
// hide edit button
- jQuery('#".$buttonName."Edit').hide();
+ jQuery('#".$button_code_name."Edit').hide();
}
}";
}
diff --git a/admin/models/fields/libraries.php b/admin/models/fields/libraries.php
index 48e979f9a..b3548346c 100644
--- a/admin/models/fields/libraries.php
+++ b/admin/models/fields/libraries.php
@@ -38,15 +38,15 @@ class JFormFieldLibraries extends JFormFieldList
protected function getInput()
{
// see if we should add buttons
- $setButton = $this->getAttribute('button');
+ $set_button = $this->getAttribute('button');
// get html
$html = parent::getInput();
// if true set button
- if ($setButton === 'true')
+ if ($set_button === 'true')
{
$button = array();
$script = array();
- $buttonName = $this->getAttribute('name');
+ $button_code_name = $this->getAttribute('name');
// get the input from url
$app = JFactory::getApplication();
$jinput = $app->input;
@@ -70,55 +70,52 @@ class JFormFieldLibraries extends JFormFieldList
$ref .= '&return=' . $_return;
$refJ .= '&return=' . $_return;
}
+ // get button label
+ $button_label = trim($button_code_name);
+ $button_label = preg_replace('/_+/', ' ', $button_label);
+ $button_label = preg_replace('/\s+/', ' ', $button_label);
+ $button_label = preg_replace("/[^A-Za-z ]/", '', $button_label);
+ $button_label = ucfirst(strtolower($button_label));
+ // get user object
$user = JFactory::getUser();
// only add if user allowed to create library
if ($user->authorise('library.create', 'com_componentbuilder') && $app->isAdmin()) // TODO for now only in admin area.
{
// build Create button
- $buttonNamee = trim($buttonName);
- $buttonNamee = preg_replace('/_+/', ' ', $buttonNamee);
- $buttonNamee = preg_replace('/\s+/', ' ', $buttonNamee);
- $buttonNamee = preg_replace("/[^A-Za-z ]/", '', $buttonNamee);
- $buttonNamee = ucfirst(strtolower($buttonNamee));
- $button[] = '
';
}
// only add if user allowed to edit library
- if (($buttonName === 'library' || $buttonName === 'libraries') && $user->authorise('library.edit', 'com_componentbuilder') && $app->isAdmin()) // TODO for now only in admin area.
+ if ($user->authorise('library.edit', 'com_componentbuilder') && $app->isAdmin()) // TODO for now only in admin area.
{
// build edit button
- $buttonNamee = trim($buttonName);
- $buttonNamee = preg_replace('/_+/', ' ', $buttonNamee);
- $buttonNamee = preg_replace('/\s+/', ' ', $buttonNamee);
- $buttonNamee = preg_replace("/[^A-Za-z ]/", '', $buttonNamee);
- $buttonNamee = ucfirst(strtolower($buttonNamee));
- $button[] = '
+ $button[] = '
';
// build script
$script[] = "
jQuery(document).ready(function() {
- jQuery('#adminForm').on('change', '#jform_".$buttonName."',function (e) {
+ jQuery('#adminForm').on('change', '#jform_".$button_code_name."',function (e) {
e.preventDefault();
- var ".$buttonName."Value = jQuery('#jform_".$buttonName."').val();
- ".$buttonName."Button(".$buttonName."Value);
+ var ".$button_code_name."Value = jQuery('#jform_".$button_code_name."').val();
+ ".$button_code_name."Button(".$button_code_name."Value);
});
- var ".$buttonName."Value = jQuery('#jform_".$buttonName."').val();
- ".$buttonName."Button(".$buttonName."Value);
+ var ".$button_code_name."Value = jQuery('#jform_".$button_code_name."').val();
+ ".$button_code_name."Button(".$button_code_name."Value);
});
- function ".$buttonName."Button(value) {
+ function ".$button_code_name."Button(value) {
if (value > 0) {
// hide the create button
- jQuery('#".$buttonName."Create').hide();
+ jQuery('#".$button_code_name."Create').hide();
// show edit button
- jQuery('#".$buttonName."Edit').show();
+ jQuery('#".$button_code_name."Edit').show();
var url = 'index.php?option=com_componentbuilder&view=libraries&task=library.edit&id='+value+'".$refJ."';
- jQuery('#".$buttonName."Edit').attr('href', url);
+ jQuery('#".$button_code_name."Edit').attr('href', url);
} else {
// show the create button
- jQuery('#".$buttonName."Create').show();
+ jQuery('#".$button_code_name."Create').show();
// hide edit button
- jQuery('#".$buttonName."Edit').hide();
+ jQuery('#".$button_code_name."Edit').hide();
}
}";
}
diff --git a/admin/models/fields/librariesx.php b/admin/models/fields/librariesx.php
index 4846fa031..963cf17d0 100644
--- a/admin/models/fields/librariesx.php
+++ b/admin/models/fields/librariesx.php
@@ -38,15 +38,15 @@ class JFormFieldLibrariesx extends JFormFieldList
protected function getInput()
{
// see if we should add buttons
- $setButton = $this->getAttribute('button');
+ $set_button = $this->getAttribute('button');
// get html
$html = parent::getInput();
// if true set button
- if ($setButton === 'true')
+ if ($set_button === 'true')
{
$button = array();
$script = array();
- $buttonName = $this->getAttribute('name');
+ $button_code_name = $this->getAttribute('name');
// get the input from url
$app = JFactory::getApplication();
$jinput = $app->input;
@@ -70,55 +70,52 @@ class JFormFieldLibrariesx extends JFormFieldList
$ref .= '&return=' . $_return;
$refJ .= '&return=' . $_return;
}
+ // get button label
+ $button_label = trim($button_code_name);
+ $button_label = preg_replace('/_+/', ' ', $button_label);
+ $button_label = preg_replace('/\s+/', ' ', $button_label);
+ $button_label = preg_replace("/[^A-Za-z ]/", '', $button_label);
+ $button_label = ucfirst(strtolower($button_label));
+ // get user object
$user = JFactory::getUser();
// only add if user allowed to create library
if ($user->authorise('library.create', 'com_componentbuilder') && $app->isAdmin()) // TODO for now only in admin area.
{
// build Create button
- $buttonNamee = trim($buttonName);
- $buttonNamee = preg_replace('/_+/', ' ', $buttonNamee);
- $buttonNamee = preg_replace('/\s+/', ' ', $buttonNamee);
- $buttonNamee = preg_replace("/[^A-Za-z ]/", '', $buttonNamee);
- $buttonNamee = ucfirst(strtolower($buttonNamee));
- $button[] = '
';
}
// only add if user allowed to edit library
- if (($buttonName === 'library' || $buttonName === 'libraries') && $user->authorise('library.edit', 'com_componentbuilder') && $app->isAdmin()) // TODO for now only in admin area.
+ if ($user->authorise('library.edit', 'com_componentbuilder') && $app->isAdmin()) // TODO for now only in admin area.
{
// build edit button
- $buttonNamee = trim($buttonName);
- $buttonNamee = preg_replace('/_+/', ' ', $buttonNamee);
- $buttonNamee = preg_replace('/\s+/', ' ', $buttonNamee);
- $buttonNamee = preg_replace("/[^A-Za-z ]/", '', $buttonNamee);
- $buttonNamee = ucfirst(strtolower($buttonNamee));
- $button[] = '
+ $button[] = '
';
// build script
$script[] = "
jQuery(document).ready(function() {
- jQuery('#adminForm').on('change', '#jform_".$buttonName."',function (e) {
+ jQuery('#adminForm').on('change', '#jform_".$button_code_name."',function (e) {
e.preventDefault();
- var ".$buttonName."Value = jQuery('#jform_".$buttonName."').val();
- ".$buttonName."Button(".$buttonName."Value);
+ var ".$button_code_name."Value = jQuery('#jform_".$button_code_name."').val();
+ ".$button_code_name."Button(".$button_code_name."Value);
});
- var ".$buttonName."Value = jQuery('#jform_".$buttonName."').val();
- ".$buttonName."Button(".$buttonName."Value);
+ var ".$button_code_name."Value = jQuery('#jform_".$button_code_name."').val();
+ ".$button_code_name."Button(".$button_code_name."Value);
});
- function ".$buttonName."Button(value) {
+ function ".$button_code_name."Button(value) {
if (value > 0) {
// hide the create button
- jQuery('#".$buttonName."Create').hide();
+ jQuery('#".$button_code_name."Create').hide();
// show edit button
- jQuery('#".$buttonName."Edit').show();
+ jQuery('#".$button_code_name."Edit').show();
var url = 'index.php?option=com_componentbuilder&view=libraries&task=library.edit&id='+value+'".$refJ."';
- jQuery('#".$buttonName."Edit').attr('href', url);
+ jQuery('#".$button_code_name."Edit').attr('href', url);
} else {
// show the create button
- jQuery('#".$buttonName."Create').show();
+ jQuery('#".$button_code_name."Create').show();
// hide edit button
- jQuery('#".$buttonName."Edit').hide();
+ jQuery('#".$button_code_name."Edit').hide();
}
}";
}
diff --git a/admin/models/fields/library.php b/admin/models/fields/library.php
index 98d37479b..98ae99b44 100644
--- a/admin/models/fields/library.php
+++ b/admin/models/fields/library.php
@@ -38,15 +38,15 @@ class JFormFieldLibrary extends JFormFieldList
protected function getInput()
{
// see if we should add buttons
- $setButton = $this->getAttribute('button');
+ $set_button = $this->getAttribute('button');
// get html
$html = parent::getInput();
// if true set button
- if ($setButton === 'true')
+ if ($set_button === 'true')
{
$button = array();
$script = array();
- $buttonName = $this->getAttribute('name');
+ $button_code_name = $this->getAttribute('name');
// get the input from url
$app = JFactory::getApplication();
$jinput = $app->input;
@@ -70,55 +70,52 @@ class JFormFieldLibrary extends JFormFieldList
$ref .= '&return=' . $_return;
$refJ .= '&return=' . $_return;
}
+ // get button label
+ $button_label = trim($button_code_name);
+ $button_label = preg_replace('/_+/', ' ', $button_label);
+ $button_label = preg_replace('/\s+/', ' ', $button_label);
+ $button_label = preg_replace("/[^A-Za-z ]/", '', $button_label);
+ $button_label = ucfirst(strtolower($button_label));
+ // get user object
$user = JFactory::getUser();
// only add if user allowed to create library
if ($user->authorise('library.create', 'com_componentbuilder') && $app->isAdmin()) // TODO for now only in admin area.
{
// build Create button
- $buttonNamee = trim($buttonName);
- $buttonNamee = preg_replace('/_+/', ' ', $buttonNamee);
- $buttonNamee = preg_replace('/\s+/', ' ', $buttonNamee);
- $buttonNamee = preg_replace("/[^A-Za-z ]/", '', $buttonNamee);
- $buttonNamee = ucfirst(strtolower($buttonNamee));
- $button[] = '
';
}
// only add if user allowed to edit library
- if (($buttonName === 'library' || $buttonName === 'libraries') && $user->authorise('library.edit', 'com_componentbuilder') && $app->isAdmin()) // TODO for now only in admin area.
+ if ($user->authorise('library.edit', 'com_componentbuilder') && $app->isAdmin()) // TODO for now only in admin area.
{
// build edit button
- $buttonNamee = trim($buttonName);
- $buttonNamee = preg_replace('/_+/', ' ', $buttonNamee);
- $buttonNamee = preg_replace('/\s+/', ' ', $buttonNamee);
- $buttonNamee = preg_replace("/[^A-Za-z ]/", '', $buttonNamee);
- $buttonNamee = ucfirst(strtolower($buttonNamee));
- $button[] = '
+ $button[] = '
';
// build script
$script[] = "
jQuery(document).ready(function() {
- jQuery('#adminForm').on('change', '#jform_".$buttonName."',function (e) {
+ jQuery('#adminForm').on('change', '#jform_".$button_code_name."',function (e) {
e.preventDefault();
- var ".$buttonName."Value = jQuery('#jform_".$buttonName."').val();
- ".$buttonName."Button(".$buttonName."Value);
+ var ".$button_code_name."Value = jQuery('#jform_".$button_code_name."').val();
+ ".$button_code_name."Button(".$button_code_name."Value);
});
- var ".$buttonName."Value = jQuery('#jform_".$buttonName."').val();
- ".$buttonName."Button(".$buttonName."Value);
+ var ".$button_code_name."Value = jQuery('#jform_".$button_code_name."').val();
+ ".$button_code_name."Button(".$button_code_name."Value);
});
- function ".$buttonName."Button(value) {
+ function ".$button_code_name."Button(value) {
if (value > 0) {
// hide the create button
- jQuery('#".$buttonName."Create').hide();
+ jQuery('#".$button_code_name."Create').hide();
// show edit button
- jQuery('#".$buttonName."Edit').show();
+ jQuery('#".$button_code_name."Edit').show();
var url = 'index.php?option=com_componentbuilder&view=libraries&task=library.edit&id='+value+'".$refJ."';
- jQuery('#".$buttonName."Edit').attr('href', url);
+ jQuery('#".$button_code_name."Edit').attr('href', url);
} else {
// show the create button
- jQuery('#".$buttonName."Create').show();
+ jQuery('#".$button_code_name."Create').show();
// hide edit button
- jQuery('#".$buttonName."Edit').hide();
+ jQuery('#".$button_code_name."Edit').hide();
}
}";
}
diff --git a/admin/models/fields/maingets.php b/admin/models/fields/maingets.php
index fd4dbedb8..bdf871525 100644
--- a/admin/models/fields/maingets.php
+++ b/admin/models/fields/maingets.php
@@ -38,15 +38,15 @@ class JFormFieldMaingets extends JFormFieldList
protected function getInput()
{
// see if we should add buttons
- $setButton = $this->getAttribute('button');
+ $set_button = $this->getAttribute('button');
// get html
$html = parent::getInput();
// if true set button
- if ($setButton === 'true')
+ if ($set_button === 'true')
{
$button = array();
$script = array();
- $buttonName = $this->getAttribute('name');
+ $button_code_name = $this->getAttribute('name');
// get the input from url
$app = JFactory::getApplication();
$jinput = $app->input;
@@ -70,55 +70,52 @@ class JFormFieldMaingets extends JFormFieldList
$ref .= '&return=' . $_return;
$refJ .= '&return=' . $_return;
}
+ // get button label
+ $button_label = trim($button_code_name);
+ $button_label = preg_replace('/_+/', ' ', $button_label);
+ $button_label = preg_replace('/\s+/', ' ', $button_label);
+ $button_label = preg_replace("/[^A-Za-z ]/", '', $button_label);
+ $button_label = ucfirst(strtolower($button_label));
+ // get user object
$user = JFactory::getUser();
// only add if user allowed to create dynamic_get
if ($user->authorise('dynamic_get.create', 'com_componentbuilder') && $app->isAdmin()) // TODO for now only in admin area.
{
// build Create button
- $buttonNamee = trim($buttonName);
- $buttonNamee = preg_replace('/_+/', ' ', $buttonNamee);
- $buttonNamee = preg_replace('/\s+/', ' ', $buttonNamee);
- $buttonNamee = preg_replace("/[^A-Za-z ]/", '', $buttonNamee);
- $buttonNamee = ucfirst(strtolower($buttonNamee));
- $button[] = '
';
}
// only add if user allowed to edit dynamic_get
- if (($buttonName === 'dynamic_get' || $buttonName === 'dynamic_gets') && $user->authorise('dynamic_get.edit', 'com_componentbuilder') && $app->isAdmin()) // TODO for now only in admin area.
+ if ($user->authorise('dynamic_get.edit', 'com_componentbuilder') && $app->isAdmin()) // TODO for now only in admin area.
{
// build edit button
- $buttonNamee = trim($buttonName);
- $buttonNamee = preg_replace('/_+/', ' ', $buttonNamee);
- $buttonNamee = preg_replace('/\s+/', ' ', $buttonNamee);
- $buttonNamee = preg_replace("/[^A-Za-z ]/", '', $buttonNamee);
- $buttonNamee = ucfirst(strtolower($buttonNamee));
- $button[] = '
+ $button[] = '
';
// build script
$script[] = "
jQuery(document).ready(function() {
- jQuery('#adminForm').on('change', '#jform_".$buttonName."',function (e) {
+ jQuery('#adminForm').on('change', '#jform_".$button_code_name."',function (e) {
e.preventDefault();
- var ".$buttonName."Value = jQuery('#jform_".$buttonName."').val();
- ".$buttonName."Button(".$buttonName."Value);
+ var ".$button_code_name."Value = jQuery('#jform_".$button_code_name."').val();
+ ".$button_code_name."Button(".$button_code_name."Value);
});
- var ".$buttonName."Value = jQuery('#jform_".$buttonName."').val();
- ".$buttonName."Button(".$buttonName."Value);
+ var ".$button_code_name."Value = jQuery('#jform_".$button_code_name."').val();
+ ".$button_code_name."Button(".$button_code_name."Value);
});
- function ".$buttonName."Button(value) {
+ function ".$button_code_name."Button(value) {
if (value > 0) {
// hide the create button
- jQuery('#".$buttonName."Create').hide();
+ jQuery('#".$button_code_name."Create').hide();
// show edit button
- jQuery('#".$buttonName."Edit').show();
+ jQuery('#".$button_code_name."Edit').show();
var url = 'index.php?option=com_componentbuilder&view=dynamic_gets&task=dynamic_get.edit&id='+value+'".$refJ."';
- jQuery('#".$buttonName."Edit').attr('href', url);
+ jQuery('#".$button_code_name."Edit').attr('href', url);
} else {
// show the create button
- jQuery('#".$buttonName."Create').show();
+ jQuery('#".$button_code_name."Create').show();
// hide edit button
- jQuery('#".$buttonName."Edit').hide();
+ jQuery('#".$button_code_name."Edit').hide();
}
}";
}
diff --git a/admin/models/fields/servers.php b/admin/models/fields/servers.php
index 4b919abb3..8e565392d 100644
--- a/admin/models/fields/servers.php
+++ b/admin/models/fields/servers.php
@@ -38,15 +38,15 @@ class JFormFieldServers extends JFormFieldList
protected function getInput()
{
// see if we should add buttons
- $setButton = $this->getAttribute('button');
+ $set_button = $this->getAttribute('button');
// get html
$html = parent::getInput();
// if true set button
- if ($setButton === 'true')
+ if ($set_button === 'true')
{
$button = array();
$script = array();
- $buttonName = $this->getAttribute('name');
+ $button_code_name = $this->getAttribute('name');
// get the input from url
$app = JFactory::getApplication();
$jinput = $app->input;
@@ -70,55 +70,52 @@ class JFormFieldServers extends JFormFieldList
$ref .= '&return=' . $_return;
$refJ .= '&return=' . $_return;
}
+ // get button label
+ $button_label = trim($button_code_name);
+ $button_label = preg_replace('/_+/', ' ', $button_label);
+ $button_label = preg_replace('/\s+/', ' ', $button_label);
+ $button_label = preg_replace("/[^A-Za-z ]/", '', $button_label);
+ $button_label = ucfirst(strtolower($button_label));
+ // get user object
$user = JFactory::getUser();
// only add if user allowed to create server
if ($user->authorise('server.create', 'com_componentbuilder') && $app->isAdmin()) // TODO for now only in admin area.
{
// build Create button
- $buttonNamee = trim($buttonName);
- $buttonNamee = preg_replace('/_+/', ' ', $buttonNamee);
- $buttonNamee = preg_replace('/\s+/', ' ', $buttonNamee);
- $buttonNamee = preg_replace("/[^A-Za-z ]/", '', $buttonNamee);
- $buttonNamee = ucfirst(strtolower($buttonNamee));
- $button[] = '
';
}
// only add if user allowed to edit server
- if (($buttonName === 'server' || $buttonName === 'servers') && $user->authorise('server.edit', 'com_componentbuilder') && $app->isAdmin()) // TODO for now only in admin area.
+ if ($user->authorise('server.edit', 'com_componentbuilder') && $app->isAdmin()) // TODO for now only in admin area.
{
// build edit button
- $buttonNamee = trim($buttonName);
- $buttonNamee = preg_replace('/_+/', ' ', $buttonNamee);
- $buttonNamee = preg_replace('/\s+/', ' ', $buttonNamee);
- $buttonNamee = preg_replace("/[^A-Za-z ]/", '', $buttonNamee);
- $buttonNamee = ucfirst(strtolower($buttonNamee));
- $button[] = '
+ $button[] = '
';
// build script
$script[] = "
jQuery(document).ready(function() {
- jQuery('#adminForm').on('change', '#jform_".$buttonName."',function (e) {
+ jQuery('#adminForm').on('change', '#jform_".$button_code_name."',function (e) {
e.preventDefault();
- var ".$buttonName."Value = jQuery('#jform_".$buttonName."').val();
- ".$buttonName."Button(".$buttonName."Value);
+ var ".$button_code_name."Value = jQuery('#jform_".$button_code_name."').val();
+ ".$button_code_name."Button(".$button_code_name."Value);
});
- var ".$buttonName."Value = jQuery('#jform_".$buttonName."').val();
- ".$buttonName."Button(".$buttonName."Value);
+ var ".$button_code_name."Value = jQuery('#jform_".$button_code_name."').val();
+ ".$button_code_name."Button(".$button_code_name."Value);
});
- function ".$buttonName."Button(value) {
+ function ".$button_code_name."Button(value) {
if (value > 0) {
// hide the create button
- jQuery('#".$buttonName."Create').hide();
+ jQuery('#".$button_code_name."Create').hide();
// show edit button
- jQuery('#".$buttonName."Edit').show();
+ jQuery('#".$button_code_name."Edit').show();
var url = 'index.php?option=com_componentbuilder&view=servers&task=server.edit&id='+value+'".$refJ."';
- jQuery('#".$buttonName."Edit').attr('href', url);
+ jQuery('#".$button_code_name."Edit').attr('href', url);
} else {
// show the create button
- jQuery('#".$buttonName."Create').show();
+ jQuery('#".$button_code_name."Create').show();
// hide edit button
- jQuery('#".$buttonName."Edit').hide();
+ jQuery('#".$button_code_name."Edit').hide();
}
}";
}
diff --git a/admin/models/fields/snippets.php b/admin/models/fields/snippets.php
index 9ca601511..d5c46f2fb 100644
--- a/admin/models/fields/snippets.php
+++ b/admin/models/fields/snippets.php
@@ -38,15 +38,15 @@ class JFormFieldSnippets extends JFormFieldList
protected function getInput()
{
// see if we should add buttons
- $setButton = $this->getAttribute('button');
+ $set_button = $this->getAttribute('button');
// get html
$html = parent::getInput();
// if true set button
- if ($setButton === 'true')
+ if ($set_button === 'true')
{
$button = array();
$script = array();
- $buttonName = $this->getAttribute('name');
+ $button_code_name = $this->getAttribute('name');
// get the input from url
$app = JFactory::getApplication();
$jinput = $app->input;
@@ -70,55 +70,52 @@ class JFormFieldSnippets extends JFormFieldList
$ref .= '&return=' . $_return;
$refJ .= '&return=' . $_return;
}
+ // get button label
+ $button_label = trim($button_code_name);
+ $button_label = preg_replace('/_+/', ' ', $button_label);
+ $button_label = preg_replace('/\s+/', ' ', $button_label);
+ $button_label = preg_replace("/[^A-Za-z ]/", '', $button_label);
+ $button_label = ucfirst(strtolower($button_label));
+ // get user object
$user = JFactory::getUser();
// only add if user allowed to create snippet
if ($user->authorise('core.create', 'com_componentbuilder') && $app->isAdmin()) // TODO for now only in admin area.
{
// build Create button
- $buttonNamee = trim($buttonName);
- $buttonNamee = preg_replace('/_+/', ' ', $buttonNamee);
- $buttonNamee = preg_replace('/\s+/', ' ', $buttonNamee);
- $buttonNamee = preg_replace("/[^A-Za-z ]/", '', $buttonNamee);
- $buttonNamee = ucfirst(strtolower($buttonNamee));
- $button[] = '
';
}
// only add if user allowed to edit snippet
- if (($buttonName === 'snippet' || $buttonName === 'snippets') && $user->authorise('core.edit', 'com_componentbuilder') && $app->isAdmin()) // TODO for now only in admin area.
+ if ($user->authorise('core.edit', 'com_componentbuilder') && $app->isAdmin()) // TODO for now only in admin area.
{
// build edit button
- $buttonNamee = trim($buttonName);
- $buttonNamee = preg_replace('/_+/', ' ', $buttonNamee);
- $buttonNamee = preg_replace('/\s+/', ' ', $buttonNamee);
- $buttonNamee = preg_replace("/[^A-Za-z ]/", '', $buttonNamee);
- $buttonNamee = ucfirst(strtolower($buttonNamee));
- $button[] = '
+ $button[] = '
';
// build script
$script[] = "
jQuery(document).ready(function() {
- jQuery('#adminForm').on('change', '#jform_".$buttonName."',function (e) {
+ jQuery('#adminForm').on('change', '#jform_".$button_code_name."',function (e) {
e.preventDefault();
- var ".$buttonName."Value = jQuery('#jform_".$buttonName."').val();
- ".$buttonName."Button(".$buttonName."Value);
+ var ".$button_code_name."Value = jQuery('#jform_".$button_code_name."').val();
+ ".$button_code_name."Button(".$button_code_name."Value);
});
- var ".$buttonName."Value = jQuery('#jform_".$buttonName."').val();
- ".$buttonName."Button(".$buttonName."Value);
+ var ".$button_code_name."Value = jQuery('#jform_".$button_code_name."').val();
+ ".$button_code_name."Button(".$button_code_name."Value);
});
- function ".$buttonName."Button(value) {
+ function ".$button_code_name."Button(value) {
if (value > 0) {
// hide the create button
- jQuery('#".$buttonName."Create').hide();
+ jQuery('#".$button_code_name."Create').hide();
// show edit button
- jQuery('#".$buttonName."Edit').show();
+ jQuery('#".$button_code_name."Edit').show();
var url = 'index.php?option=com_componentbuilder&view=snippets&task=snippet.edit&id='+value+'".$refJ."';
- jQuery('#".$buttonName."Edit').attr('href', url);
+ jQuery('#".$button_code_name."Edit').attr('href', url);
} else {
// show the create button
- jQuery('#".$buttonName."Create').show();
+ jQuery('#".$button_code_name."Create').show();
// hide edit button
- jQuery('#".$buttonName."Edit').hide();
+ jQuery('#".$button_code_name."Edit').hide();
}
}";
}
diff --git a/admin/models/fields/viewtabs.php b/admin/models/fields/viewtabs.php
index 8fda47d15..1fec7ef29 100644
--- a/admin/models/fields/viewtabs.php
+++ b/admin/models/fields/viewtabs.php
@@ -35,7 +35,7 @@ class JFormFieldViewtabs extends JFormFieldList
*/
protected function getOptions()
{
- // get the input from url
+ // get the input from url
$jinput = JFactory::getApplication()->input;
// get the view name & id
$fieldsID = $jinput->getInt('id', 0);
@@ -77,14 +77,19 @@ class JFormFieldViewtabs extends JFormFieldList
if (isset($item->addtabs) && ComponentbuilderHelper::checkJson($item->addtabs))
{
$items = json_decode($item->addtabs, true);
- $nr = 1;
- foreach($items as $itemName)
+ // check if the array has values
+ if (ComponentbuilderHelper::checkArray($items))
{
- $options[] = JHtml::_('select.option', $nr, $itemName['name']);
- $nr++;
+ $nr = 1;
+ foreach($items as $itemName)
+ {
+ $options[] = JHtml::_('select.option', $nr, $itemName['name']);
+ $nr++;
+ }
}
}
- else
+ // check if any were loaded
+ if (!ComponentbuilderHelper::checkArray($options))
{
$options[] = JHtml::_('select.option', 1, JText::_('COM_COMPONENTBUILDER_DETAILS'));
}
diff --git a/admin/models/fieldtype.php b/admin/models/fieldtype.php
index 6a2d0300e..8e12d7c13 100644
--- a/admin/models/fieldtype.php
+++ b/admin/models/fieldtype.php
@@ -18,13 +18,54 @@ use Joomla\Registry\Registry;
* Componentbuilder Fieldtype Model
*/
class ComponentbuilderModelFieldtype extends JModelAdmin
-{
+{
+ /**
+ * The tab layout fields array.
+ *
+ * @var array
+ */
+ protected $tabLayoutFields = array(
+ 'details' => array(
+ 'left' => array(
+ 'catid',
+ 'short_description'
+ ),
+ 'right' => array(
+ 'description'
+ ),
+ 'fullwidth' => array(
+ 'note_on_fields',
+ 'properties',
+ 'not_required'
+ ),
+ 'above' => array(
+ 'name'
+ )
+ ),
+ 'database_defaults' => array(
+ 'left' => array(
+ 'has_defaults',
+ 'datatype',
+ 'datalenght',
+ 'datalenght_other',
+ 'datadefault',
+ 'datadefault_other'
+ ),
+ 'right' => array(
+ 'indexes',
+ 'null_switch',
+ 'store',
+ 'note_whmcs_encryption'
+ )
+ )
+ );
+
/**
* @var string The prefix to use with controller messages.
* @since 1.6
*/
protected $text_prefix = 'COM_COMPONENTBUILDER';
-
+
/**
* The type alias for this content type.
*
@@ -52,10 +93,17 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
return JTable::getInstance($type, $prefix, $config);
}
+ /**
+ * get VDM session key
+ *
+ * @return string the session key
+ *
+ */
public function getVDM()
{
return $this->vastDevMod;
}
+
/**
* Method to get a single record.
@@ -155,7 +203,7 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
*
* @return mixed An array of data items on success, false on failure.
*/
- public function getWapfields()
+ public function getWarfields()
{
// Get the user object.
$user = JFactory::getUser();
@@ -237,13 +285,13 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
foreach ($items as $nr => &$item)
{
// convert datatype
- $item->datatype = $this->selectionTranslationWapfields($item->datatype, 'datatype');
+ $item->datatype = $this->selectionTranslationWarfields($item->datatype, 'datatype');
// convert indexes
- $item->indexes = $this->selectionTranslationWapfields($item->indexes, 'indexes');
+ $item->indexes = $this->selectionTranslationWarfields($item->indexes, 'indexes');
// convert null_switch
- $item->null_switch = $this->selectionTranslationWapfields($item->null_switch, 'null_switch');
+ $item->null_switch = $this->selectionTranslationWarfields($item->null_switch, 'null_switch');
// convert store
- $item->store = $this->selectionTranslationWapfields($item->store, 'store');
+ $item->store = $this->selectionTranslationWarfields($item->store, 'store');
}
}
@@ -257,7 +305,7 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
*
* @return translatable string
*/
- public function selectionTranslationWapfields($value,$name)
+ public function selectionTranslationWarfields($value,$name)
{
// Array of datatype language strings
if ($name === 'datatype')
diff --git a/admin/models/forms/admin_custom_tabs.xml b/admin/models/forms/admin_custom_tabs.xml
index 02991f1d7..786c03827 100644
--- a/admin/models/forms/admin_custom_tabs.xml
+++ b/admin/models/forms/admin_custom_tabs.xml
@@ -119,7 +119,6 @@
class="fieldMedium"
multiple="false"
default="1"
- required="false"
button="false"
/>
@@ -130,7 +129,6 @@
description="COM_COMPONENTBUILDER_ADMIN_CUSTOM_TABS_POSITION_DESCRIPTION"
class="list_class"
multiple="false"
- required="false"
default="1">
@@ -149,7 +147,7 @@
class="text_area"
readonly="false"
disabled="false"
- required="false"
+ required="true"
filter="STRING"
message="COM_COMPONENTBUILDER_ADMIN_CUSTOM_TABS_NAME_MESSAGE"
hint="COM_COMPONENTBUILDER_ADMIN_CUSTOM_TABS_NAME_HINT"
@@ -160,7 +158,6 @@
name="permission"
label="COM_COMPONENTBUILDER_ADMIN_CUSTOM_TABS_PERMISSION_LABEL"
value="1"
- required="false"
description="COM_COMPONENTBUILDER_ADMIN_CUSTOM_TABS_PERMISSION_DESCRIPTION"
class="inputbox"
/>
@@ -175,7 +172,7 @@
class="text_area tab_html"
filter="raw"
hint="COM_COMPONENTBUILDER_ADMIN_CUSTOM_TABS_HTML_HINT"
- required="false"
+ required="true"
/>
diff --git a/admin/models/forms/admin_fields.xml b/admin/models/forms/admin_fields.xml
index 2948f6b46..7d87d4478 100644
--- a/admin/models/forms/admin_fields.xml
+++ b/admin/models/forms/admin_fields.xml
@@ -119,7 +119,7 @@
class="list_class fieldFull"
multiple="false"
default=""
- required="false"
+ required="true"
button="false"
/>
@@ -130,7 +130,6 @@
description="COM_COMPONENTBUILDER_ADMIN_FIELDS_LIST_DESCRIPTION"
class="fieldMedium count-the-items1235"
multiple="false"
- required="false"
onchange="checkAdminBehaviour(this)">
@@ -151,7 +150,6 @@
label="COM_COMPONENTBUILDER_ADMIN_FIELDS_ORDER_LIST_LABEL"
description="COM_COMPONENTBUILDER_ADMIN_FIELDS_ORDER_LIST_DESCRIPTION"
class="fieldSmall"
- required="false"
first="0"
last="20"
step="1"
@@ -164,7 +162,6 @@
label="COM_COMPONENTBUILDER_ADMIN_FIELDS_TITLE_LABEL"
value="1"
default=""
- required="false"
description="COM_COMPONENTBUILDER_ADMIN_FIELDS_TITLE_DESCRIPTION"
class="inputbox"
onchange="checkTitle(this)"
@@ -176,7 +173,6 @@
label="COM_COMPONENTBUILDER_ADMIN_FIELDS_ALIAS_LABEL"
value="1"
default=""
- required="false"
description="COM_COMPONENTBUILDER_ADMIN_FIELDS_ALIAS_DESCRIPTION"
class="inputbox"
onchange="checkAlias(this)"
@@ -188,7 +184,6 @@
label="COM_COMPONENTBUILDER_ADMIN_FIELDS_SORT_LABEL"
value="1"
default=""
- required="false"
description="COM_COMPONENTBUILDER_ADMIN_FIELDS_SORT_DESCRIPTION"
class="inputbox"
/>
@@ -199,7 +194,6 @@
label="COM_COMPONENTBUILDER_ADMIN_FIELDS_SEARCH_LABEL"
value="1"
default=""
- required="false"
description="COM_COMPONENTBUILDER_ADMIN_FIELDS_SEARCH_DESCRIPTION"
class="inputbox"
/>
@@ -210,7 +204,6 @@
label="COM_COMPONENTBUILDER_ADMIN_FIELDS_FILTER_LABEL"
value="1"
default=""
- required="false"
description="COM_COMPONENTBUILDER_ADMIN_FIELDS_FILTER_DESCRIPTION"
class="inputbox"
/>
@@ -221,7 +214,6 @@
label="COM_COMPONENTBUILDER_ADMIN_FIELDS_LINK_LABEL"
value="1"
default=""
- required="false"
description="COM_COMPONENTBUILDER_ADMIN_FIELDS_LINK_DESCRIPTION"
class="inputbox"
/>
@@ -234,7 +226,6 @@
class="fieldMedium"
multiple="false"
default="1"
- required="false"
button="false"
/>
@@ -246,7 +237,6 @@
class="fieldMedium"
multiple="false"
filter="INT"
- required="false"
default="1">
@@ -272,7 +262,6 @@
default="0"
description="COM_COMPONENTBUILDER_ADMIN_FIELDS_ORDER_EDIT_DESCRIPTION"
class="fieldSmall"
- required="false"
first="0"
last="100"
step="1"
@@ -284,8 +273,7 @@
label="COM_COMPONENTBUILDER_ADMIN_FIELDS_PERMISSION_LABEL"
description="COM_COMPONENTBUILDER_ADMIN_FIELDS_PERMISSION_DESCRIPTION"
class="fieldMedium"
- multiple="true"
- required="false">
+ multiple="true">
COM_COMPONENTBUILDER_ADMIN_FIELDS_EDITING
diff --git a/admin/models/forms/admin_fields_conditions.xml b/admin/models/forms/admin_fields_conditions.xml
index e86813520..44257b742 100644
--- a/admin/models/forms/admin_fields_conditions.xml
+++ b/admin/models/forms/admin_fields_conditions.xml
@@ -118,7 +118,7 @@
class="fieldMedium"
multiple="true"
default=""
- required="false"
+ required="true"
button="false"
/>
@@ -130,7 +130,7 @@
class="list_class"
multiple="false"
filter="INT"
- required="false"
+ required="true"
default="1">
@@ -151,7 +151,7 @@
class="list_class"
multiple="false"
filter="INT"
- required="false"
+ required="true"
default="0">
@@ -167,7 +167,7 @@
description="COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_MATCH_FIELD_DESCRIPTION"
multiple="false"
default=""
- required="false"
+ required="true"
button="false"
/>
@@ -179,7 +179,7 @@
class="list_class"
multiple="false"
filter="INT"
- required="false"
+ required="true"
default="1">
@@ -217,7 +217,7 @@
class="text_area"
filter="STRING"
hint="COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_MATCH_OPTIONS_HINT"
- required="false"
+ required="true"
/>
diff --git a/admin/models/forms/admin_fields_relations.js b/admin/models/forms/admin_fields_relations.js
index 2e5e265c6..dd027678a 100644
--- a/admin/models/forms/admin_fields_relations.js
+++ b/admin/models/forms/admin_fields_relations.js
@@ -93,7 +93,7 @@ function getEditCustomCodeButtons(){
getEditCustomCodeButtons_server(id).done(function(result) {
if(isObject(result)){
jQuery.each(result, function( field, buttons ) {
- jQuery('').insertBefore(".control-wrapper-"+ field);
+ jQuery('').insertBefore(".control-wrapper-"+ field);
jQuery.each(buttons, function( name, button ) {
jQuery(".control-customcode-buttons-"+field).append(button);
});
diff --git a/admin/models/forms/admin_fields_relations.xml b/admin/models/forms/admin_fields_relations.xml
index 6c393d94c..d73858694 100644
--- a/admin/models/forms/admin_fields_relations.xml
+++ b/admin/models/forms/admin_fields_relations.xml
@@ -118,7 +118,7 @@
class="fieldMedium"
multiple="false"
default=""
- required="false"
+ required="true"
onchange="getCodeGlueOptions(this)"
button="false"
/>
@@ -131,7 +131,6 @@
maxlength="50"
default="Default"
class="text_area"
- required="false"
filter="STRING"
message="COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_COLUMN_NAME_MESSAGE"
hint="COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_COLUMN_NAME_HINT"
@@ -146,7 +145,6 @@
class="fieldMedium"
multiple="true"
default=""
- required="false"
onchange="getCodeGlueOptions(this)"
button="false"
/>
@@ -157,7 +155,6 @@
label="COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_AREA_LABEL"
class="list_class"
multiple="false"
- required="false"
validate="int"
default="1"
onchange="getCodeGlueOptions(this)">
@@ -176,7 +173,6 @@
label="COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_JOIN_TYPE_LABEL"
class="list_class"
multiple="false"
- required="false"
validate="int"
default="1"
onchange="getCodeGlueOptions(this)">
@@ -197,7 +193,6 @@
class="text_area codefield"
filter="raw"
hint="COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_SET_HINT"
- required="false"
/>
diff --git a/admin/models/forms/admin_view.js b/admin/models/forms/admin_view.js
index e08365bb0..a6c59cb6e 100644
--- a/admin/models/forms/admin_view.js
+++ b/admin/models/forms/admin_view.js
@@ -35,17 +35,19 @@ jform_vvvvvxxvxn_required = false;
jform_vvvvvxyvxo_required = false;
jform_vvvvvxzvxp_required = false;
jform_vvvvvyavxq_required = false;
-jform_vvvvvyevxr_required = false;
-jform_vvvvvyevxs_required = false;
-jform_vvvvvyevxt_required = false;
-jform_vvvvvyevxu_required = false;
-jform_vvvvvyevxv_required = false;
-jform_vvvvvyevxw_required = false;
-jform_vvvvvyevxx_required = false;
+jform_vvvvvybvxr_required = false;
+jform_vvvvvycvxs_required = false;
+jform_vvvvvygvxt_required = false;
+jform_vvvvvygvxu_required = false;
+jform_vvvvvygvxv_required = false;
+jform_vvvvvygvxw_required = false;
+jform_vvvvvygvxx_required = false;
jform_vvvvvygvxy_required = false;
jform_vvvvvygvxz_required = false;
-jform_vvvvvygvya_required = false;
-jform_vvvvvygvyb_required = false;
+jform_vvvvvyivya_required = false;
+jform_vvvvvyivyb_required = false;
+jform_vvvvvyivyc_required = false;
+jform_vvvvvyivyd_required = false;
// Initial Script
jQuery(document).ready(function()
@@ -101,46 +103,52 @@ jQuery(document).ready(function()
var add_php_allowedit_vvvvvxr = jQuery("#jform_add_php_allowedit input[type='radio']:checked").val();
vvvvvxr(add_php_allowedit_vvvvvxr);
- var add_php_batchcopy_vvvvvxs = jQuery("#jform_add_php_batchcopy input[type='radio']:checked").val();
- vvvvvxs(add_php_batchcopy_vvvvvxs);
+ var add_php_before_cancel_vvvvvxs = jQuery("#jform_add_php_before_cancel input[type='radio']:checked").val();
+ vvvvvxs(add_php_before_cancel_vvvvvxs);
- var add_php_batchmove_vvvvvxt = jQuery("#jform_add_php_batchmove input[type='radio']:checked").val();
- vvvvvxt(add_php_batchmove_vvvvvxt);
+ var add_php_after_cancel_vvvvvxt = jQuery("#jform_add_php_after_cancel input[type='radio']:checked").val();
+ vvvvvxt(add_php_after_cancel_vvvvvxt);
- var add_php_before_publish_vvvvvxu = jQuery("#jform_add_php_before_publish input[type='radio']:checked").val();
- vvvvvxu(add_php_before_publish_vvvvvxu);
+ var add_php_batchcopy_vvvvvxu = jQuery("#jform_add_php_batchcopy input[type='radio']:checked").val();
+ vvvvvxu(add_php_batchcopy_vvvvvxu);
- var add_php_after_publish_vvvvvxv = jQuery("#jform_add_php_after_publish input[type='radio']:checked").val();
- vvvvvxv(add_php_after_publish_vvvvvxv);
+ var add_php_batchmove_vvvvvxv = jQuery("#jform_add_php_batchmove input[type='radio']:checked").val();
+ vvvvvxv(add_php_batchmove_vvvvvxv);
- var add_php_before_delete_vvvvvxw = jQuery("#jform_add_php_before_delete input[type='radio']:checked").val();
- vvvvvxw(add_php_before_delete_vvvvvxw);
+ var add_php_before_publish_vvvvvxw = jQuery("#jform_add_php_before_publish input[type='radio']:checked").val();
+ vvvvvxw(add_php_before_publish_vvvvvxw);
- var add_php_after_delete_vvvvvxx = jQuery("#jform_add_php_after_delete input[type='radio']:checked").val();
- vvvvvxx(add_php_after_delete_vvvvvxx);
+ var add_php_after_publish_vvvvvxx = jQuery("#jform_add_php_after_publish input[type='radio']:checked").val();
+ vvvvvxx(add_php_after_publish_vvvvvxx);
- var add_php_document_vvvvvxy = jQuery("#jform_add_php_document input[type='radio']:checked").val();
- vvvvvxy(add_php_document_vvvvvxy);
+ var add_php_before_delete_vvvvvxy = jQuery("#jform_add_php_before_delete input[type='radio']:checked").val();
+ vvvvvxy(add_php_before_delete_vvvvvxy);
- var add_sql_vvvvvxz = jQuery("#jform_add_sql input[type='radio']:checked").val();
- vvvvvxz(add_sql_vvvvvxz);
+ var add_php_after_delete_vvvvvxz = jQuery("#jform_add_php_after_delete input[type='radio']:checked").val();
+ vvvvvxz(add_php_after_delete_vvvvvxz);
- var source_vvvvvya = jQuery("#jform_source input[type='radio']:checked").val();
- var add_sql_vvvvvya = jQuery("#jform_add_sql input[type='radio']:checked").val();
- vvvvvya(source_vvvvvya,add_sql_vvvvvya);
+ var add_php_document_vvvvvya = jQuery("#jform_add_php_document input[type='radio']:checked").val();
+ vvvvvya(add_php_document_vvvvvya);
+
+ var add_sql_vvvvvyb = jQuery("#jform_add_sql input[type='radio']:checked").val();
+ vvvvvyb(add_sql_vvvvvyb);
var source_vvvvvyc = jQuery("#jform_source input[type='radio']:checked").val();
var add_sql_vvvvvyc = jQuery("#jform_add_sql input[type='radio']:checked").val();
vvvvvyc(source_vvvvvyc,add_sql_vvvvvyc);
- var add_custom_import_vvvvvye = jQuery("#jform_add_custom_import input[type='radio']:checked").val();
- vvvvvye(add_custom_import_vvvvvye);
+ var source_vvvvvye = jQuery("#jform_source input[type='radio']:checked").val();
+ var add_sql_vvvvvye = jQuery("#jform_add_sql input[type='radio']:checked").val();
+ vvvvvye(source_vvvvvye,add_sql_vvvvvye);
- var add_custom_import_vvvvvyf = jQuery("#jform_add_custom_import input[type='radio']:checked").val();
- vvvvvyf(add_custom_import_vvvvvyf);
+ var add_custom_import_vvvvvyg = jQuery("#jform_add_custom_import input[type='radio']:checked").val();
+ vvvvvyg(add_custom_import_vvvvvyg);
- var add_custom_button_vvvvvyg = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
- vvvvvyg(add_custom_button_vvvvvyg);
+ var add_custom_import_vvvvvyh = jQuery("#jform_add_custom_import input[type='radio']:checked").val();
+ vvvvvyh(add_custom_import_vvvvvyh);
+
+ var add_custom_button_vvvvvyi = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
+ vvvvvyi(add_custom_button_vvvvvyi);
});
// the vvvvvxb function
@@ -690,298 +698,362 @@ function vvvvvxr(add_php_allowedit_vvvvvxr)
}
// the vvvvvxs function
-function vvvvvxs(add_php_batchcopy_vvvvvxs)
+function vvvvvxs(add_php_before_cancel_vvvvvxs)
{
// set the function logic
- if (add_php_batchcopy_vvvvvxs == 1)
+ if (add_php_before_cancel_vvvvvxs == 1)
{
- jQuery('#jform_php_batchcopy-lbl').closest('.control-group').show();
- // add required attribute to php_batchcopy field
+ jQuery('#jform_php_before_cancel-lbl').closest('.control-group').show();
+ // add required attribute to php_before_cancel field
if (jform_vvvvvxsvxi_required)
{
- updateFieldRequired('php_batchcopy',0);
- jQuery('#jform_php_batchcopy').prop('required','required');
- jQuery('#jform_php_batchcopy').attr('aria-required',true);
- jQuery('#jform_php_batchcopy').addClass('required');
+ updateFieldRequired('php_before_cancel',0);
+ jQuery('#jform_php_before_cancel').prop('required','required');
+ jQuery('#jform_php_before_cancel').attr('aria-required',true);
+ jQuery('#jform_php_before_cancel').addClass('required');
jform_vvvvvxsvxi_required = false;
}
}
else
{
- jQuery('#jform_php_batchcopy-lbl').closest('.control-group').hide();
- // remove required attribute from php_batchcopy field
+ jQuery('#jform_php_before_cancel-lbl').closest('.control-group').hide();
+ // remove required attribute from php_before_cancel field
if (!jform_vvvvvxsvxi_required)
{
- updateFieldRequired('php_batchcopy',1);
- jQuery('#jform_php_batchcopy').removeAttr('required');
- jQuery('#jform_php_batchcopy').removeAttr('aria-required');
- jQuery('#jform_php_batchcopy').removeClass('required');
+ updateFieldRequired('php_before_cancel',1);
+ jQuery('#jform_php_before_cancel').removeAttr('required');
+ jQuery('#jform_php_before_cancel').removeAttr('aria-required');
+ jQuery('#jform_php_before_cancel').removeClass('required');
jform_vvvvvxsvxi_required = true;
}
}
}
// the vvvvvxt function
-function vvvvvxt(add_php_batchmove_vvvvvxt)
+function vvvvvxt(add_php_after_cancel_vvvvvxt)
{
// set the function logic
- if (add_php_batchmove_vvvvvxt == 1)
+ if (add_php_after_cancel_vvvvvxt == 1)
{
- jQuery('#jform_php_batchmove-lbl').closest('.control-group').show();
- // add required attribute to php_batchmove field
+ jQuery('#jform_php_after_cancel-lbl').closest('.control-group').show();
+ // add required attribute to php_after_cancel field
if (jform_vvvvvxtvxj_required)
{
- updateFieldRequired('php_batchmove',0);
- jQuery('#jform_php_batchmove').prop('required','required');
- jQuery('#jform_php_batchmove').attr('aria-required',true);
- jQuery('#jform_php_batchmove').addClass('required');
+ updateFieldRequired('php_after_cancel',0);
+ jQuery('#jform_php_after_cancel').prop('required','required');
+ jQuery('#jform_php_after_cancel').attr('aria-required',true);
+ jQuery('#jform_php_after_cancel').addClass('required');
jform_vvvvvxtvxj_required = false;
}
}
else
{
- jQuery('#jform_php_batchmove-lbl').closest('.control-group').hide();
- // remove required attribute from php_batchmove field
+ jQuery('#jform_php_after_cancel-lbl').closest('.control-group').hide();
+ // remove required attribute from php_after_cancel field
if (!jform_vvvvvxtvxj_required)
{
- updateFieldRequired('php_batchmove',1);
- jQuery('#jform_php_batchmove').removeAttr('required');
- jQuery('#jform_php_batchmove').removeAttr('aria-required');
- jQuery('#jform_php_batchmove').removeClass('required');
+ updateFieldRequired('php_after_cancel',1);
+ jQuery('#jform_php_after_cancel').removeAttr('required');
+ jQuery('#jform_php_after_cancel').removeAttr('aria-required');
+ jQuery('#jform_php_after_cancel').removeClass('required');
jform_vvvvvxtvxj_required = true;
}
}
}
// the vvvvvxu function
-function vvvvvxu(add_php_before_publish_vvvvvxu)
+function vvvvvxu(add_php_batchcopy_vvvvvxu)
{
// set the function logic
- if (add_php_before_publish_vvvvvxu == 1)
+ if (add_php_batchcopy_vvvvvxu == 1)
{
- jQuery('#jform_php_before_publish-lbl').closest('.control-group').show();
- // add required attribute to php_before_publish field
+ jQuery('#jform_php_batchcopy-lbl').closest('.control-group').show();
+ // add required attribute to php_batchcopy field
if (jform_vvvvvxuvxk_required)
{
- updateFieldRequired('php_before_publish',0);
- jQuery('#jform_php_before_publish').prop('required','required');
- jQuery('#jform_php_before_publish').attr('aria-required',true);
- jQuery('#jform_php_before_publish').addClass('required');
+ updateFieldRequired('php_batchcopy',0);
+ jQuery('#jform_php_batchcopy').prop('required','required');
+ jQuery('#jform_php_batchcopy').attr('aria-required',true);
+ jQuery('#jform_php_batchcopy').addClass('required');
jform_vvvvvxuvxk_required = false;
}
}
else
{
- jQuery('#jform_php_before_publish-lbl').closest('.control-group').hide();
- // remove required attribute from php_before_publish field
+ jQuery('#jform_php_batchcopy-lbl').closest('.control-group').hide();
+ // remove required attribute from php_batchcopy field
if (!jform_vvvvvxuvxk_required)
{
- updateFieldRequired('php_before_publish',1);
- jQuery('#jform_php_before_publish').removeAttr('required');
- jQuery('#jform_php_before_publish').removeAttr('aria-required');
- jQuery('#jform_php_before_publish').removeClass('required');
+ updateFieldRequired('php_batchcopy',1);
+ jQuery('#jform_php_batchcopy').removeAttr('required');
+ jQuery('#jform_php_batchcopy').removeAttr('aria-required');
+ jQuery('#jform_php_batchcopy').removeClass('required');
jform_vvvvvxuvxk_required = true;
}
}
}
// the vvvvvxv function
-function vvvvvxv(add_php_after_publish_vvvvvxv)
+function vvvvvxv(add_php_batchmove_vvvvvxv)
{
// set the function logic
- if (add_php_after_publish_vvvvvxv == 1)
+ if (add_php_batchmove_vvvvvxv == 1)
{
- jQuery('#jform_php_after_publish-lbl').closest('.control-group').show();
- // add required attribute to php_after_publish field
+ jQuery('#jform_php_batchmove-lbl').closest('.control-group').show();
+ // add required attribute to php_batchmove field
if (jform_vvvvvxvvxl_required)
{
- updateFieldRequired('php_after_publish',0);
- jQuery('#jform_php_after_publish').prop('required','required');
- jQuery('#jform_php_after_publish').attr('aria-required',true);
- jQuery('#jform_php_after_publish').addClass('required');
+ updateFieldRequired('php_batchmove',0);
+ jQuery('#jform_php_batchmove').prop('required','required');
+ jQuery('#jform_php_batchmove').attr('aria-required',true);
+ jQuery('#jform_php_batchmove').addClass('required');
jform_vvvvvxvvxl_required = false;
}
}
else
{
- jQuery('#jform_php_after_publish-lbl').closest('.control-group').hide();
- // remove required attribute from php_after_publish field
+ jQuery('#jform_php_batchmove-lbl').closest('.control-group').hide();
+ // remove required attribute from php_batchmove field
if (!jform_vvvvvxvvxl_required)
{
- updateFieldRequired('php_after_publish',1);
- jQuery('#jform_php_after_publish').removeAttr('required');
- jQuery('#jform_php_after_publish').removeAttr('aria-required');
- jQuery('#jform_php_after_publish').removeClass('required');
+ updateFieldRequired('php_batchmove',1);
+ jQuery('#jform_php_batchmove').removeAttr('required');
+ jQuery('#jform_php_batchmove').removeAttr('aria-required');
+ jQuery('#jform_php_batchmove').removeClass('required');
jform_vvvvvxvvxl_required = true;
}
}
}
// the vvvvvxw function
-function vvvvvxw(add_php_before_delete_vvvvvxw)
+function vvvvvxw(add_php_before_publish_vvvvvxw)
{
// set the function logic
- if (add_php_before_delete_vvvvvxw == 1)
+ if (add_php_before_publish_vvvvvxw == 1)
{
- jQuery('#jform_php_before_delete-lbl').closest('.control-group').show();
- // add required attribute to php_before_delete field
+ jQuery('#jform_php_before_publish-lbl').closest('.control-group').show();
+ // add required attribute to php_before_publish field
if (jform_vvvvvxwvxm_required)
{
- updateFieldRequired('php_before_delete',0);
- jQuery('#jform_php_before_delete').prop('required','required');
- jQuery('#jform_php_before_delete').attr('aria-required',true);
- jQuery('#jform_php_before_delete').addClass('required');
+ updateFieldRequired('php_before_publish',0);
+ jQuery('#jform_php_before_publish').prop('required','required');
+ jQuery('#jform_php_before_publish').attr('aria-required',true);
+ jQuery('#jform_php_before_publish').addClass('required');
jform_vvvvvxwvxm_required = false;
}
}
else
{
- jQuery('#jform_php_before_delete-lbl').closest('.control-group').hide();
- // remove required attribute from php_before_delete field
+ jQuery('#jform_php_before_publish-lbl').closest('.control-group').hide();
+ // remove required attribute from php_before_publish field
if (!jform_vvvvvxwvxm_required)
{
- updateFieldRequired('php_before_delete',1);
- jQuery('#jform_php_before_delete').removeAttr('required');
- jQuery('#jform_php_before_delete').removeAttr('aria-required');
- jQuery('#jform_php_before_delete').removeClass('required');
+ updateFieldRequired('php_before_publish',1);
+ jQuery('#jform_php_before_publish').removeAttr('required');
+ jQuery('#jform_php_before_publish').removeAttr('aria-required');
+ jQuery('#jform_php_before_publish').removeClass('required');
jform_vvvvvxwvxm_required = true;
}
}
}
// the vvvvvxx function
-function vvvvvxx(add_php_after_delete_vvvvvxx)
+function vvvvvxx(add_php_after_publish_vvvvvxx)
{
// set the function logic
- if (add_php_after_delete_vvvvvxx == 1)
+ if (add_php_after_publish_vvvvvxx == 1)
{
- jQuery('#jform_php_after_delete-lbl').closest('.control-group').show();
- // add required attribute to php_after_delete field
+ jQuery('#jform_php_after_publish-lbl').closest('.control-group').show();
+ // add required attribute to php_after_publish field
if (jform_vvvvvxxvxn_required)
{
- updateFieldRequired('php_after_delete',0);
- jQuery('#jform_php_after_delete').prop('required','required');
- jQuery('#jform_php_after_delete').attr('aria-required',true);
- jQuery('#jform_php_after_delete').addClass('required');
+ updateFieldRequired('php_after_publish',0);
+ jQuery('#jform_php_after_publish').prop('required','required');
+ jQuery('#jform_php_after_publish').attr('aria-required',true);
+ jQuery('#jform_php_after_publish').addClass('required');
jform_vvvvvxxvxn_required = false;
}
}
else
{
- jQuery('#jform_php_after_delete-lbl').closest('.control-group').hide();
- // remove required attribute from php_after_delete field
+ jQuery('#jform_php_after_publish-lbl').closest('.control-group').hide();
+ // remove required attribute from php_after_publish field
if (!jform_vvvvvxxvxn_required)
{
- updateFieldRequired('php_after_delete',1);
- jQuery('#jform_php_after_delete').removeAttr('required');
- jQuery('#jform_php_after_delete').removeAttr('aria-required');
- jQuery('#jform_php_after_delete').removeClass('required');
+ updateFieldRequired('php_after_publish',1);
+ jQuery('#jform_php_after_publish').removeAttr('required');
+ jQuery('#jform_php_after_publish').removeAttr('aria-required');
+ jQuery('#jform_php_after_publish').removeClass('required');
jform_vvvvvxxvxn_required = true;
}
}
}
// the vvvvvxy function
-function vvvvvxy(add_php_document_vvvvvxy)
+function vvvvvxy(add_php_before_delete_vvvvvxy)
{
// set the function logic
- if (add_php_document_vvvvvxy == 1)
+ if (add_php_before_delete_vvvvvxy == 1)
{
- jQuery('#jform_php_document-lbl').closest('.control-group').show();
- // add required attribute to php_document field
+ jQuery('#jform_php_before_delete-lbl').closest('.control-group').show();
+ // add required attribute to php_before_delete field
if (jform_vvvvvxyvxo_required)
{
- updateFieldRequired('php_document',0);
- jQuery('#jform_php_document').prop('required','required');
- jQuery('#jform_php_document').attr('aria-required',true);
- jQuery('#jform_php_document').addClass('required');
+ updateFieldRequired('php_before_delete',0);
+ jQuery('#jform_php_before_delete').prop('required','required');
+ jQuery('#jform_php_before_delete').attr('aria-required',true);
+ jQuery('#jform_php_before_delete').addClass('required');
jform_vvvvvxyvxo_required = false;
}
}
else
{
- jQuery('#jform_php_document-lbl').closest('.control-group').hide();
- // remove required attribute from php_document field
+ jQuery('#jform_php_before_delete-lbl').closest('.control-group').hide();
+ // remove required attribute from php_before_delete field
if (!jform_vvvvvxyvxo_required)
{
- updateFieldRequired('php_document',1);
- jQuery('#jform_php_document').removeAttr('required');
- jQuery('#jform_php_document').removeAttr('aria-required');
- jQuery('#jform_php_document').removeClass('required');
+ updateFieldRequired('php_before_delete',1);
+ jQuery('#jform_php_before_delete').removeAttr('required');
+ jQuery('#jform_php_before_delete').removeAttr('aria-required');
+ jQuery('#jform_php_before_delete').removeClass('required');
jform_vvvvvxyvxo_required = true;
}
}
}
// the vvvvvxz function
-function vvvvvxz(add_sql_vvvvvxz)
+function vvvvvxz(add_php_after_delete_vvvvvxz)
{
// set the function logic
- if (add_sql_vvvvvxz == 1)
+ if (add_php_after_delete_vvvvvxz == 1)
{
- jQuery('#jform_source').closest('.control-group').show();
- // add required attribute to source field
+ jQuery('#jform_php_after_delete-lbl').closest('.control-group').show();
+ // add required attribute to php_after_delete field
if (jform_vvvvvxzvxp_required)
{
- updateFieldRequired('source',0);
- jQuery('#jform_source').prop('required','required');
- jQuery('#jform_source').attr('aria-required',true);
- jQuery('#jform_source').addClass('required');
+ updateFieldRequired('php_after_delete',0);
+ jQuery('#jform_php_after_delete').prop('required','required');
+ jQuery('#jform_php_after_delete').attr('aria-required',true);
+ jQuery('#jform_php_after_delete').addClass('required');
jform_vvvvvxzvxp_required = false;
}
}
else
{
- jQuery('#jform_source').closest('.control-group').hide();
- // remove required attribute from source field
+ jQuery('#jform_php_after_delete-lbl').closest('.control-group').hide();
+ // remove required attribute from php_after_delete field
if (!jform_vvvvvxzvxp_required)
{
- updateFieldRequired('source',1);
- jQuery('#jform_source').removeAttr('required');
- jQuery('#jform_source').removeAttr('aria-required');
- jQuery('#jform_source').removeClass('required');
+ updateFieldRequired('php_after_delete',1);
+ jQuery('#jform_php_after_delete').removeAttr('required');
+ jQuery('#jform_php_after_delete').removeAttr('aria-required');
+ jQuery('#jform_php_after_delete').removeClass('required');
jform_vvvvvxzvxp_required = true;
}
}
}
// the vvvvvya function
-function vvvvvya(source_vvvvvya,add_sql_vvvvvya)
+function vvvvvya(add_php_document_vvvvvya)
{
// set the function logic
- if (source_vvvvvya == 2 && add_sql_vvvvvya == 1)
+ if (add_php_document_vvvvvya == 1)
{
- jQuery('#jform_sql').closest('.control-group').show();
- // add required attribute to sql field
+ jQuery('#jform_php_document-lbl').closest('.control-group').show();
+ // add required attribute to php_document field
if (jform_vvvvvyavxq_required)
{
- updateFieldRequired('sql',0);
- jQuery('#jform_sql').prop('required','required');
- jQuery('#jform_sql').attr('aria-required',true);
- jQuery('#jform_sql').addClass('required');
+ updateFieldRequired('php_document',0);
+ jQuery('#jform_php_document').prop('required','required');
+ jQuery('#jform_php_document').attr('aria-required',true);
+ jQuery('#jform_php_document').addClass('required');
jform_vvvvvyavxq_required = false;
}
}
else
{
- jQuery('#jform_sql').closest('.control-group').hide();
- // remove required attribute from sql field
+ jQuery('#jform_php_document-lbl').closest('.control-group').hide();
+ // remove required attribute from php_document field
if (!jform_vvvvvyavxq_required)
{
- updateFieldRequired('sql',1);
- jQuery('#jform_sql').removeAttr('required');
- jQuery('#jform_sql').removeAttr('aria-required');
- jQuery('#jform_sql').removeClass('required');
+ updateFieldRequired('php_document',1);
+ jQuery('#jform_php_document').removeAttr('required');
+ jQuery('#jform_php_document').removeAttr('aria-required');
+ jQuery('#jform_php_document').removeClass('required');
jform_vvvvvyavxq_required = true;
}
}
}
+// the vvvvvyb function
+function vvvvvyb(add_sql_vvvvvyb)
+{
+ // set the function logic
+ if (add_sql_vvvvvyb == 1)
+ {
+ jQuery('#jform_source').closest('.control-group').show();
+ // add required attribute to source field
+ if (jform_vvvvvybvxr_required)
+ {
+ updateFieldRequired('source',0);
+ jQuery('#jform_source').prop('required','required');
+ jQuery('#jform_source').attr('aria-required',true);
+ jQuery('#jform_source').addClass('required');
+ jform_vvvvvybvxr_required = false;
+ }
+ }
+ else
+ {
+ jQuery('#jform_source').closest('.control-group').hide();
+ // remove required attribute from source field
+ if (!jform_vvvvvybvxr_required)
+ {
+ updateFieldRequired('source',1);
+ jQuery('#jform_source').removeAttr('required');
+ jQuery('#jform_source').removeAttr('aria-required');
+ jQuery('#jform_source').removeClass('required');
+ jform_vvvvvybvxr_required = true;
+ }
+ }
+}
+
// the vvvvvyc function
function vvvvvyc(source_vvvvvyc,add_sql_vvvvvyc)
{
// set the function logic
- if (source_vvvvvyc == 1 && add_sql_vvvvvyc == 1)
+ if (source_vvvvvyc == 2 && add_sql_vvvvvyc == 1)
+ {
+ jQuery('#jform_sql').closest('.control-group').show();
+ // add required attribute to sql field
+ if (jform_vvvvvycvxs_required)
+ {
+ updateFieldRequired('sql',0);
+ jQuery('#jform_sql').prop('required','required');
+ jQuery('#jform_sql').attr('aria-required',true);
+ jQuery('#jform_sql').addClass('required');
+ jform_vvvvvycvxs_required = false;
+ }
+ }
+ else
+ {
+ jQuery('#jform_sql').closest('.control-group').hide();
+ // remove required attribute from sql field
+ if (!jform_vvvvvycvxs_required)
+ {
+ updateFieldRequired('sql',1);
+ jQuery('#jform_sql').removeAttr('required');
+ jQuery('#jform_sql').removeAttr('aria-required');
+ jQuery('#jform_sql').removeClass('required');
+ jform_vvvvvycvxs_required = true;
+ }
+ }
+}
+
+// the vvvvvye function
+function vvvvvye(source_vvvvvye,add_sql_vvvvvye)
+{
+ // set the function logic
+ if (source_vvvvvye == 1 && add_sql_vvvvvye == 1)
{
jQuery('#jform_addtables-lbl').closest('.control-group').show();
}
@@ -991,165 +1063,165 @@ function vvvvvyc(source_vvvvvyc,add_sql_vvvvvyc)
}
}
-// the vvvvvye function
-function vvvvvye(add_custom_import_vvvvvye)
+// the vvvvvyg function
+function vvvvvyg(add_custom_import_vvvvvyg)
{
// set the function logic
- if (add_custom_import_vvvvvye == 1)
+ if (add_custom_import_vvvvvyg == 1)
{
jQuery('#jform_html_import_view').closest('.control-group').show();
// add required attribute to html_import_view field
- if (jform_vvvvvyevxr_required)
+ if (jform_vvvvvygvxt_required)
{
updateFieldRequired('html_import_view',0);
jQuery('#jform_html_import_view').prop('required','required');
jQuery('#jform_html_import_view').attr('aria-required',true);
jQuery('#jform_html_import_view').addClass('required');
- jform_vvvvvyevxr_required = false;
+ jform_vvvvvygvxt_required = false;
}
jQuery('.note_advanced_import').closest('.control-group').show();
jQuery('#jform_php_import_display').closest('.control-group').show();
// add required attribute to php_import_display field
- if (jform_vvvvvyevxs_required)
+ if (jform_vvvvvygvxu_required)
{
updateFieldRequired('php_import_display',0);
jQuery('#jform_php_import_display').prop('required','required');
jQuery('#jform_php_import_display').attr('aria-required',true);
jQuery('#jform_php_import_display').addClass('required');
- jform_vvvvvyevxs_required = false;
+ jform_vvvvvygvxu_required = false;
}
jQuery('#jform_php_import_ext').closest('.control-group').show();
// add required attribute to php_import_ext field
- if (jform_vvvvvyevxt_required)
+ if (jform_vvvvvygvxv_required)
{
updateFieldRequired('php_import_ext',0);
jQuery('#jform_php_import_ext').prop('required','required');
jQuery('#jform_php_import_ext').attr('aria-required',true);
jQuery('#jform_php_import_ext').addClass('required');
- jform_vvvvvyevxt_required = false;
+ jform_vvvvvygvxv_required = false;
}
jQuery('#jform_php_import_headers').closest('.control-group').show();
// add required attribute to php_import_headers field
- if (jform_vvvvvyevxu_required)
+ if (jform_vvvvvygvxw_required)
{
updateFieldRequired('php_import_headers',0);
jQuery('#jform_php_import_headers').prop('required','required');
jQuery('#jform_php_import_headers').attr('aria-required',true);
jQuery('#jform_php_import_headers').addClass('required');
- jform_vvvvvyevxu_required = false;
+ jform_vvvvvygvxw_required = false;
}
jQuery('#jform_php_import').closest('.control-group').show();
// add required attribute to php_import field
- if (jform_vvvvvyevxv_required)
+ if (jform_vvvvvygvxx_required)
{
updateFieldRequired('php_import',0);
jQuery('#jform_php_import').prop('required','required');
jQuery('#jform_php_import').attr('aria-required',true);
jQuery('#jform_php_import').addClass('required');
- jform_vvvvvyevxv_required = false;
+ jform_vvvvvygvxx_required = false;
}
jQuery('#jform_php_import_save').closest('.control-group').show();
// add required attribute to php_import_save field
- if (jform_vvvvvyevxw_required)
+ if (jform_vvvvvygvxy_required)
{
updateFieldRequired('php_import_save',0);
jQuery('#jform_php_import_save').prop('required','required');
jQuery('#jform_php_import_save').attr('aria-required',true);
jQuery('#jform_php_import_save').addClass('required');
- jform_vvvvvyevxw_required = false;
+ jform_vvvvvygvxy_required = false;
}
jQuery('#jform_php_import_setdata').closest('.control-group').show();
// add required attribute to php_import_setdata field
- if (jform_vvvvvyevxx_required)
+ if (jform_vvvvvygvxz_required)
{
updateFieldRequired('php_import_setdata',0);
jQuery('#jform_php_import_setdata').prop('required','required');
jQuery('#jform_php_import_setdata').attr('aria-required',true);
jQuery('#jform_php_import_setdata').addClass('required');
- jform_vvvvvyevxx_required = false;
+ jform_vvvvvygvxz_required = false;
}
}
else
{
jQuery('#jform_html_import_view').closest('.control-group').hide();
// remove required attribute from html_import_view field
- if (!jform_vvvvvyevxr_required)
+ if (!jform_vvvvvygvxt_required)
{
updateFieldRequired('html_import_view',1);
jQuery('#jform_html_import_view').removeAttr('required');
jQuery('#jform_html_import_view').removeAttr('aria-required');
jQuery('#jform_html_import_view').removeClass('required');
- jform_vvvvvyevxr_required = true;
+ jform_vvvvvygvxt_required = true;
}
jQuery('.note_advanced_import').closest('.control-group').hide();
jQuery('#jform_php_import_display').closest('.control-group').hide();
// remove required attribute from php_import_display field
- if (!jform_vvvvvyevxs_required)
+ if (!jform_vvvvvygvxu_required)
{
updateFieldRequired('php_import_display',1);
jQuery('#jform_php_import_display').removeAttr('required');
jQuery('#jform_php_import_display').removeAttr('aria-required');
jQuery('#jform_php_import_display').removeClass('required');
- jform_vvvvvyevxs_required = true;
+ jform_vvvvvygvxu_required = true;
}
jQuery('#jform_php_import_ext').closest('.control-group').hide();
// remove required attribute from php_import_ext field
- if (!jform_vvvvvyevxt_required)
+ if (!jform_vvvvvygvxv_required)
{
updateFieldRequired('php_import_ext',1);
jQuery('#jform_php_import_ext').removeAttr('required');
jQuery('#jform_php_import_ext').removeAttr('aria-required');
jQuery('#jform_php_import_ext').removeClass('required');
- jform_vvvvvyevxt_required = true;
+ jform_vvvvvygvxv_required = true;
}
jQuery('#jform_php_import_headers').closest('.control-group').hide();
// remove required attribute from php_import_headers field
- if (!jform_vvvvvyevxu_required)
+ if (!jform_vvvvvygvxw_required)
{
updateFieldRequired('php_import_headers',1);
jQuery('#jform_php_import_headers').removeAttr('required');
jQuery('#jform_php_import_headers').removeAttr('aria-required');
jQuery('#jform_php_import_headers').removeClass('required');
- jform_vvvvvyevxu_required = true;
+ jform_vvvvvygvxw_required = true;
}
jQuery('#jform_php_import').closest('.control-group').hide();
// remove required attribute from php_import field
- if (!jform_vvvvvyevxv_required)
+ if (!jform_vvvvvygvxx_required)
{
updateFieldRequired('php_import',1);
jQuery('#jform_php_import').removeAttr('required');
jQuery('#jform_php_import').removeAttr('aria-required');
jQuery('#jform_php_import').removeClass('required');
- jform_vvvvvyevxv_required = true;
+ jform_vvvvvygvxx_required = true;
}
jQuery('#jform_php_import_save').closest('.control-group').hide();
// remove required attribute from php_import_save field
- if (!jform_vvvvvyevxw_required)
+ if (!jform_vvvvvygvxy_required)
{
updateFieldRequired('php_import_save',1);
jQuery('#jform_php_import_save').removeAttr('required');
jQuery('#jform_php_import_save').removeAttr('aria-required');
jQuery('#jform_php_import_save').removeClass('required');
- jform_vvvvvyevxw_required = true;
+ jform_vvvvvygvxy_required = true;
}
jQuery('#jform_php_import_setdata').closest('.control-group').hide();
// remove required attribute from php_import_setdata field
- if (!jform_vvvvvyevxx_required)
+ if (!jform_vvvvvygvxz_required)
{
updateFieldRequired('php_import_setdata',1);
jQuery('#jform_php_import_setdata').removeAttr('required');
jQuery('#jform_php_import_setdata').removeAttr('aria-required');
jQuery('#jform_php_import_setdata').removeClass('required');
- jform_vvvvvyevxx_required = true;
+ jform_vvvvvygvxz_required = true;
}
}
}
-// the vvvvvyf function
-function vvvvvyf(add_custom_import_vvvvvyf)
+// the vvvvvyh function
+function vvvvvyh(add_custom_import_vvvvvyh)
{
// set the function logic
- if (add_custom_import_vvvvvyf == 0)
+ if (add_custom_import_vvvvvyh == 0)
{
jQuery('.note_beginner_import').closest('.control-group').show();
}
@@ -1159,52 +1231,52 @@ function vvvvvyf(add_custom_import_vvvvvyf)
}
}
-// the vvvvvyg function
-function vvvvvyg(add_custom_button_vvvvvyg)
+// the vvvvvyi function
+function vvvvvyi(add_custom_button_vvvvvyi)
{
// set the function logic
- if (add_custom_button_vvvvvyg == 1)
+ if (add_custom_button_vvvvvyi == 1)
{
jQuery('#jform_custom_button-lbl').closest('.control-group').show();
jQuery('#jform_php_controller-lbl').closest('.control-group').show();
// add required attribute to php_controller field
- if (jform_vvvvvygvxy_required)
+ if (jform_vvvvvyivya_required)
{
updateFieldRequired('php_controller',0);
jQuery('#jform_php_controller').prop('required','required');
jQuery('#jform_php_controller').attr('aria-required',true);
jQuery('#jform_php_controller').addClass('required');
- jform_vvvvvygvxy_required = false;
+ jform_vvvvvyivya_required = false;
}
jQuery('#jform_php_controller_list-lbl').closest('.control-group').show();
// add required attribute to php_controller_list field
- if (jform_vvvvvygvxz_required)
+ if (jform_vvvvvyivyb_required)
{
updateFieldRequired('php_controller_list',0);
jQuery('#jform_php_controller_list').prop('required','required');
jQuery('#jform_php_controller_list').attr('aria-required',true);
jQuery('#jform_php_controller_list').addClass('required');
- jform_vvvvvygvxz_required = false;
+ jform_vvvvvyivyb_required = false;
}
jQuery('#jform_php_model-lbl').closest('.control-group').show();
// add required attribute to php_model field
- if (jform_vvvvvygvya_required)
+ if (jform_vvvvvyivyc_required)
{
updateFieldRequired('php_model',0);
jQuery('#jform_php_model').prop('required','required');
jQuery('#jform_php_model').attr('aria-required',true);
jQuery('#jform_php_model').addClass('required');
- jform_vvvvvygvya_required = false;
+ jform_vvvvvyivyc_required = false;
}
jQuery('#jform_php_model_list-lbl').closest('.control-group').show();
// add required attribute to php_model_list field
- if (jform_vvvvvygvyb_required)
+ if (jform_vvvvvyivyd_required)
{
updateFieldRequired('php_model_list',0);
jQuery('#jform_php_model_list').prop('required','required');
jQuery('#jform_php_model_list').attr('aria-required',true);
jQuery('#jform_php_model_list').addClass('required');
- jform_vvvvvygvyb_required = false;
+ jform_vvvvvyivyd_required = false;
}
}
else
@@ -1212,43 +1284,43 @@ function vvvvvyg(add_custom_button_vvvvvyg)
jQuery('#jform_custom_button-lbl').closest('.control-group').hide();
jQuery('#jform_php_controller-lbl').closest('.control-group').hide();
// remove required attribute from php_controller field
- if (!jform_vvvvvygvxy_required)
+ if (!jform_vvvvvyivya_required)
{
updateFieldRequired('php_controller',1);
jQuery('#jform_php_controller').removeAttr('required');
jQuery('#jform_php_controller').removeAttr('aria-required');
jQuery('#jform_php_controller').removeClass('required');
- jform_vvvvvygvxy_required = true;
+ jform_vvvvvyivya_required = true;
}
jQuery('#jform_php_controller_list-lbl').closest('.control-group').hide();
// remove required attribute from php_controller_list field
- if (!jform_vvvvvygvxz_required)
+ if (!jform_vvvvvyivyb_required)
{
updateFieldRequired('php_controller_list',1);
jQuery('#jform_php_controller_list').removeAttr('required');
jQuery('#jform_php_controller_list').removeAttr('aria-required');
jQuery('#jform_php_controller_list').removeClass('required');
- jform_vvvvvygvxz_required = true;
+ jform_vvvvvyivyb_required = true;
}
jQuery('#jform_php_model-lbl').closest('.control-group').hide();
// remove required attribute from php_model field
- if (!jform_vvvvvygvya_required)
+ if (!jform_vvvvvyivyc_required)
{
updateFieldRequired('php_model',1);
jQuery('#jform_php_model').removeAttr('required');
jQuery('#jform_php_model').removeAttr('aria-required');
jQuery('#jform_php_model').removeClass('required');
- jform_vvvvvygvya_required = true;
+ jform_vvvvvyivyc_required = true;
}
jQuery('#jform_php_model_list-lbl').closest('.control-group').hide();
// remove required attribute from php_model_list field
- if (!jform_vvvvvygvyb_required)
+ if (!jform_vvvvvyivyd_required)
{
updateFieldRequired('php_model_list',1);
jQuery('#jform_php_model_list').removeAttr('required');
jQuery('#jform_php_model_list').removeAttr('aria-required');
jQuery('#jform_php_model_list').removeClass('required');
- jform_vvvvvygvyb_required = true;
+ jform_vvvvvyivyd_required = true;
}
}
}
@@ -1507,7 +1579,7 @@ function getEditCustomCodeButtons(){
getEditCustomCodeButtons_server(id).done(function(result) {
if(isObject(result)){
jQuery.each(result, function( field, buttons ) {
- jQuery('').insertBefore(".control-wrapper-"+ field);
+ jQuery('').insertBefore(".control-wrapper-"+ field);
jQuery.each(buttons, function( name, button ) {
jQuery(".control-customcode-buttons-"+field).append(button);
});
diff --git a/admin/models/forms/admin_view.xml b/admin/models/forms/admin_view.xml
index 9099467ab..b2c2bdd88 100644
--- a/admin/models/forms/admin_view.xml
+++ b/admin/models/forms/admin_view.xml
@@ -129,11 +129,11 @@
message="COM_COMPONENTBUILDER_ADMIN_VIEW_SHORT_DESCRIPTION_MESSAGE"
hint="COM_COMPONENTBUILDER_ADMIN_VIEW_SHORT_DESCRIPTION_HINT"
/>
-
+
@@ -185,20 +185,22 @@
COM_COMPONENTBUILDER_ADMIN_VIEW_NO
-
+
-
-
- COM_COMPONENTBUILDER_ADMIN_VIEW_YES
-
- COM_COMPONENTBUILDER_ADMIN_VIEW_NO
-
+ type="text"
+ name="name_list"
+ label="COM_COMPONENTBUILDER_ADMIN_VIEW_NAME_LIST_LABEL"
+ size="40"
+ maxlength="150"
+ description="COM_COMPONENTBUILDER_ADMIN_VIEW_NAME_LIST_DESCRIPTION"
+ class="inputbox"
+ readonly="false"
+ disabled="false"
+ required="true"
+ filter="STRING"
+ message="COM_COMPONENTBUILDER_ADMIN_VIEW_NAME_LIST_MESSAGE"
+ hint="COM_COMPONENTBUILDER_ADMIN_VIEW_NAME_LIST_HINT"
+ />
-
+
@@ -265,11 +267,11 @@
description="COM_COMPONENTBUILDER_ADMIN_VIEW_ICON_ADD_DESCRIPTION"
directory=""
/>
-
+
@@ -279,69 +281,6 @@
COM_COMPONENTBUILDER_ADMIN_VIEW_NO
-
-
-
-
-
-
-
-
- COM_COMPONENTBUILDER_ADMIN_VIEW_YES
-
- COM_COMPONENTBUILDER_ADMIN_VIEW_NO
-
-
-
+ default="utf8mb4_general_ci">
-
- COM_COMPONENTBUILDER_ADMIN_VIEW_GLOBAL_DEFAULT_UTFEIGHT_GENERAL_CI
COM_COMPONENTBUILDER_ADMIN_VIEW_BIGFIVE_CHINESE_CI_CHARSET_BIGFIVE
@@ -801,20 +738,19 @@
COM_COMPONENTBUILDER_ADMIN_VIEW_GBEIGHTEEN_THOUSAND_AND_THIRTY_UNICODE_FIVE_HUNDRED_AND_TWENTY_CI_CHARSET_GBEIGHTEEN_THOUSAND_AND_THIRTY
-
+
+ type="radio"
+ name="add_php_before_publish"
+ label="COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_PHP_BEFORE_PUBLISH_LABEL"
+ class="btn-group btn-group-yesno"
+ default="0"
+ required="true">
- COM_COMPONENTBUILDER_ADMIN_VIEW_READWRITE
-
- COM_COMPONENTBUILDER_ADMIN_VIEW_READONLY
+ COM_COMPONENTBUILDER_ADMIN_VIEW_YES
+
+ COM_COMPONENTBUILDER_ADMIN_VIEW_NO
COM_COMPONENTBUILDER_ADMIN_VIEW_NO
+
+
+
+
+ COM_COMPONENTBUILDER_ADMIN_VIEW_YES
+
+ COM_COMPONENTBUILDER_ADMIN_VIEW_NO
+
+
+
+
+
+ COM_COMPONENTBUILDER_ADMIN_VIEW_READWRITE
+
+ COM_COMPONENTBUILDER_ADMIN_VIEW_READONLY
+
+
+
+
+
-
+
@@ -888,7 +885,7 @@
class="list_class"
multiple="false"
filter="CMD"
- required="false"
+ required="true"
default="">
@@ -935,7 +932,6 @@
class="list_class"
multiple="false"
filter="INT"
- required="false"
default="1">
@@ -999,7 +995,7 @@
class="text_area"
readonly="false"
disabled="false"
- required="false"
+ required="true"
filter="STRING"
message="COM_COMPONENTBUILDER_ADMIN_VIEW_NAME_MESSAGE"
hint="COM_COMPONENTBUILDER_ADMIN_VIEW_NAME_HINT"
@@ -1022,11 +1018,11 @@
-
+
@@ -1038,11 +1034,11 @@
-
+
@@ -1071,7 +1067,7 @@
class="fieldMedium"
multiple="false"
default=""
- required="false"
+ required="true"
button="false"
/>
@@ -1082,7 +1078,6 @@
default="1"
description="COM_COMPONENTBUILDER_ADMIN_VIEW_TAB_DESCRIPTION"
class="fieldSmall"
- required="false"
first="1"
last="14"
step="1"
@@ -1098,7 +1093,7 @@
class="text_area"
readonly="false"
disabled="false"
- required="false"
+ required="true"
filter="WORD"
message="COM_COMPONENTBUILDER_ADMIN_VIEW_KEY_MESSAGE"
hint="COM_COMPONENTBUILDER_ADMIN_VIEW_KEY_HINT"
@@ -1114,7 +1109,7 @@
class="text_area"
readonly="false"
disabled="false"
- required="false"
+ required="true"
filter="WORD"
message="COM_COMPONENTBUILDER_ADMIN_VIEW_PARENTKEY_MESSAGE"
hint="COM_COMPONENTBUILDER_ADMIN_VIEW_PARENTKEY_HINT"
@@ -1128,7 +1123,6 @@
class="list_class"
multiple="false"
filter="int"
- required="false"
default="0">
@@ -1142,6 +1136,22 @@
+
+
+
+
+ COM_COMPONENTBUILDER_ADMIN_VIEW_YES
+
+ COM_COMPONENTBUILDER_ADMIN_VIEW_NO
+
+
+
COM_COMPONENTBUILDER_ADMIN_VIEW_NO
-
-
-
-
-
-
- COM_COMPONENTBUILDER_ADMIN_VIEW_GLOBAL_DEFAULT_MYISAM
-
- COM_COMPONENTBUILDER_ADMIN_VIEW_MYISAM
-
- COM_COMPONENTBUILDER_ADMIN_VIEW_INNODB
-
- COM_COMPONENTBUILDER_ADMIN_VIEW_MEMORY
-
- COM_COMPONENTBUILDER_ADMIN_VIEW_ARCHIVE
-
- COM_COMPONENTBUILDER_ADMIN_VIEW_PERFORMANCE_SCHEMA
-
COM_COMPONENTBUILDER_ADMIN_VIEW_CUSTOM
+
+
+
+
+ COM_COMPONENTBUILDER_ADMIN_VIEW_MYISAM
+
+ COM_COMPONENTBUILDER_ADMIN_VIEW_INNODB
+
+ COM_COMPONENTBUILDER_ADMIN_VIEW_MEMORY
+
+ COM_COMPONENTBUILDER_ADMIN_VIEW_ARCHIVE
+
+ COM_COMPONENTBUILDER_ADMIN_VIEW_PERFORMANCE_SCHEMA
+
+
+
COM_COMPONENTBUILDER_ADMIN_VIEW_NO
-
-
-
-
+
+
+
+
-
-
+
+
-
-
-
-
@@ -1534,12 +1523,12 @@
required="true"
validate="code"
/>
-
+
COM_COMPONENTBUILDER_ADMIN_VIEW_NO
-
+
-
+
COM_COMPONENTBUILDER_ADMIN_VIEW_NO
-
+
-
+
COM_COMPONENTBUILDER_ADMIN_VIEW_NO
-
+
@@ -2165,7 +2153,7 @@
class="text_area"
readonly="false"
disabled="false"
- required="false"
+ required="true"
filter="STRING"
message="COM_COMPONENTBUILDER_ADMIN_VIEW_NAME_MESSAGE"
hint="COM_COMPONENTBUILDER_ADMIN_VIEW_NAME_HINT"
@@ -2193,7 +2181,6 @@
description="COM_COMPONENTBUILDER_ADMIN_VIEW_TARGET_DESCRIPTION"
class="list_class fieldMedium"
filter="INT"
- required="false"
default="1">
@@ -2211,7 +2198,6 @@
description="COM_COMPONENTBUILDER_ADMIN_VIEW_TYPE_DESCRIPTION"
class="list_class"
multiple="false"
- required="false"
default="0">
@@ -2223,16 +2209,16 @@
-
+
+
+
+
+
+
+
+
+
+ default="utf8mb4">
-
- COM_COMPONENTBUILDER_ADMIN_VIEW_GLOBAL_DEFAULT_UTFEIGHT
COM_COMPONENTBUILDER_ADMIN_VIEW_BIGFIVE_BIGFIVE_TRADITIONAL_CHINESE_MOST_SUITABLE_COLLATION_BIGFIVE_CHINESE_CI
@@ -2354,76 +2406,6 @@
COM_COMPONENTBUILDER_ADMIN_VIEW_GBEIGHTEEN_THOUSAND_AND_THIRTY_CHINA_NATIONAL_STANDARD_GBEIGHTEEN_THOUSAND_AND_THIRTY_MOST_SUITABLE_COLLATION_GBEIGHTEEN_THOUSAND_AND_THIRTY_CHINESE_CI
-
-
-
-
-
-
- COM_COMPONENTBUILDER_ADMIN_VIEW_DEFAULT
-
- COM_COMPONENTBUILDER_ADMIN_VIEW_REDUNDANT
-
- COM_COMPONENTBUILDER_ADMIN_VIEW_COMPACT
-
- COM_COMPONENTBUILDER_ADMIN_VIEW_DYNAMIC
-
- COM_COMPONENTBUILDER_ADMIN_VIEW_COMPRESSED
-
-
-
-
-
-
-
- COM_COMPONENTBUILDER_ADMIN_VIEW_TABLE
-
- COM_COMPONENTBUILDER_ADMIN_VIEW_DUMP
-
-
+
+ default="DYNAMIC">
+
+
+ COM_COMPONENTBUILDER_ADMIN_VIEW_OMIT
+
+ COM_COMPONENTBUILDER_ADMIN_VIEW_REDUNDANT
+
+ COM_COMPONENTBUILDER_ADMIN_VIEW_COMPACT
+
+ COM_COMPONENTBUILDER_ADMIN_VIEW_DYNAMIC
+
+ COM_COMPONENTBUILDER_ADMIN_VIEW_COMPRESSED
+
COM_COMPONENTBUILDER_ADMIN_VIEW_NO
-
-
+
+
+
+
+ COM_COMPONENTBUILDER_ADMIN_VIEW_TABLE
+
+ COM_COMPONENTBUILDER_ADMIN_VIEW_DUMP
+
-
+
@@ -2521,7 +2524,7 @@
class="text_area"
readonly="false"
disabled="false"
- required="false"
+ required="true"
filter="STRING"
message="COM_COMPONENTBUILDER_ADMIN_VIEW_VALUE_NAME_MESSAGE"
hint="COM_COMPONENTBUILDER_ADMIN_VIEW_VALUE_NAME_HINT"
@@ -2537,7 +2540,7 @@
class="text_area"
readonly="false"
disabled="false"
- required="false"
+ required="true"
filter="WORD"
message="COM_COMPONENTBUILDER_ADMIN_VIEW_TASK_NAME_MESSAGE"
hint="COM_COMPONENTBUILDER_ADMIN_VIEW_TASK_NAME_HINT"
@@ -2554,7 +2557,7 @@
class="text_area"
readonly="false"
disabled="false"
- required="false"
+ required="true"
filter="STRING"
message="COM_COMPONENTBUILDER_ADMIN_VIEW_INPUT_DEFAULT_MESSAGE"
hint="COM_COMPONENTBUILDER_ADMIN_VIEW_INPUT_DEFAULT_HINT"
@@ -2568,7 +2571,7 @@
class="list_class"
multiple="false"
filter="WORD"
- required="false"
+ required="true"
default="INT">
@@ -2614,7 +2617,7 @@
class="text_area"
readonly="false"
disabled="false"
- required="false"
+ required="true"
filter="WORD"
message="COM_COMPONENTBUILDER_ADMIN_VIEW_METHOD_NAME_MESSAGE"
hint="COM_COMPONENTBUILDER_ADMIN_VIEW_METHOD_NAME_HINT"
@@ -2625,7 +2628,6 @@
name="allow_zero"
label="COM_COMPONENTBUILDER_ADMIN_VIEW_ALLOW_ZERO_LABEL"
value="1"
- required="false"
description="COM_COMPONENTBUILDER_ADMIN_VIEW_ALLOW_ZERO_DESCRIPTION"
class="inputbox"
/>
@@ -2636,12 +2638,57 @@
label="COM_COMPONENTBUILDER_ADMIN_VIEW_USER_CHECK_LABEL"
value="1"
default="1"
- required="false"
description="COM_COMPONENTBUILDER_ADMIN_VIEW_USER_CHECK_DESCRIPTION"
class="inputbox"
/>
+
+
+
+
+
+
+ COM_COMPONENTBUILDER_ADMIN_VIEW_YES
+
+ COM_COMPONENTBUILDER_ADMIN_VIEW_NO
+
+
+
+
+
-
+
@@ -2682,12 +2729,12 @@
hint="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_IMPORT_SETDATA_HINT"
required="true"
/>
-
+
-
+
diff --git a/admin/models/forms/component_admin_views.xml b/admin/models/forms/component_admin_views.xml
index b64545c1f..7236ff821 100644
--- a/admin/models/forms/component_admin_views.xml
+++ b/admin/models/forms/component_admin_views.xml
@@ -119,7 +119,7 @@
class="fieldMedium"
multiple="false"
default=""
- required="false"
+ required="true"
button="false"
/>
@@ -130,7 +130,6 @@
description="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_ICOMOON_DESCRIPTION"
class="list_class fieldMedium icomoon342"
multiple="false"
- required="false"
onchange="getIconImage(this);">
@@ -561,7 +560,6 @@
label="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_MAINMENU_LABEL"
value="1"
default="1"
- required="false"
description="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_MAINMENU_DESCRIPTION"
class="inputbox"
/>
@@ -572,7 +570,6 @@
label="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_DASHBOARD_ADD_LABEL"
value="1"
default=""
- required="false"
description="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_DASHBOARD_ADD_DESCRIPTION"
class="inputbox"
/>
@@ -583,7 +580,6 @@
label="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_DASHBOARD_LIST_LABEL"
value="1"
default="1"
- required="false"
description="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_DASHBOARD_LIST_DESCRIPTION"
class="inputbox"
/>
@@ -594,7 +590,6 @@
label="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_SUBMENU_LABEL"
value="1"
default="1"
- required="false"
description="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_SUBMENU_DESCRIPTION"
class="inputbox"
/>
@@ -605,7 +600,6 @@
label="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_CHECKIN_LABEL"
value="1"
default="1"
- required="false"
description="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_CHECKIN_DESCRIPTION"
class="inputbox"
/>
@@ -616,7 +610,6 @@
label="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_HISTORY_LABEL"
value="1"
default="1"
- required="false"
description="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_HISTORY_DESCRIPTION"
class="inputbox"
/>
@@ -627,7 +620,6 @@
label="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_JOOMLA_FIELDS_LABEL"
value="1"
default="1"
- required="false"
description="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_JOOMLA_FIELDS_DESCRIPTION"
class="inputbox"
/>
@@ -638,7 +630,6 @@
label="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_METADATA_LABEL"
value="1"
default="1"
- required="false"
description="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_METADATA_DESCRIPTION"
class="inputbox"
/>
@@ -649,7 +640,6 @@
label="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_ACCESS_LABEL"
value="1"
default="1"
- required="false"
description="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_ACCESS_DESCRIPTION"
class="inputbox"
/>
@@ -660,7 +650,6 @@
label="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_PORT_LABEL"
value="1"
default=""
- required="false"
description="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_PORT_DESCRIPTION"
class="inputbox"
/>
@@ -671,8 +660,7 @@
label="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_EDIT_CREATE_SITE_VIEW_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_EDIT_CREATE_SITE_VIEW_DESCRIPTION"
class="list_class fieldMedium"
- multiple="false"
- required="false">
+ multiple="false">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_NONE
@@ -689,7 +677,6 @@
default="0"
description="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_ORDER_DESCRIPTION"
class="fieldSmall"
- required="false"
first="0"
last="400"
step="1"
diff --git a/admin/models/forms/component_config.xml b/admin/models/forms/component_config.xml
index 99fbfcfe6..a3e64055b 100644
--- a/admin/models/forms/component_config.xml
+++ b/admin/models/forms/component_config.xml
@@ -118,7 +118,7 @@
class="list_class fieldFull"
multiple="false"
default=""
- required="false"
+ required="true"
button="false"
/>
diff --git a/admin/models/forms/component_custom_admin_menus.xml b/admin/models/forms/component_custom_admin_menus.xml
index d49df75da..066fbc9f4 100644
--- a/admin/models/forms/component_custom_admin_menus.xml
+++ b/admin/models/forms/component_custom_admin_menus.xml
@@ -119,7 +119,7 @@
class="text_area"
readonly="false"
disabled="false"
- required="false"
+ required="true"
filter="STRING"
message="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_MENUS_NAME_MESSAGE"
hint="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_MENUS_NAME_HINT"
@@ -134,7 +134,7 @@
default=""
description="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_MENUS_NAME_CODE_DESCRIPTION"
class="text_area"
- required="false"
+ required="true"
filter="CMD"
message="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_MENUS_NAME_CODE_MESSAGE"
hint="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_MENUS_NAME_CODE_HINT"
@@ -172,7 +172,6 @@
label="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_MENUS_MAINMENU_LABEL"
value="1"
default="1"
- required="false"
description="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_MENUS_MAINMENU_DESCRIPTION"
class="inputbox"
/>
@@ -183,7 +182,6 @@
label="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_MENUS_DASHBOARD_LIST_LABEL"
value="1"
default="1"
- required="false"
description="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_MENUS_DASHBOARD_LIST_DESCRIPTION"
class="inputbox"
/>
@@ -194,7 +192,6 @@
label="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_MENUS_SUBMENU_LABEL"
value="1"
default="1"
- required="false"
description="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_MENUS_SUBMENU_DESCRIPTION"
class="inputbox"
/>
@@ -206,8 +203,6 @@
description="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_MENUS_BEFORE_DESCRIPTION"
class="list_class fieldMedium"
multiple="false"
- default=""
- required="false"
button="false"
/>
diff --git a/admin/models/forms/component_custom_admin_views.xml b/admin/models/forms/component_custom_admin_views.xml
index d0408d864..d4bb68794 100644
--- a/admin/models/forms/component_custom_admin_views.xml
+++ b/admin/models/forms/component_custom_admin_views.xml
@@ -117,7 +117,7 @@
class="fieldMedium"
multiple="false"
default=""
- required="false"
+ required="true"
button="false"
/>
@@ -128,7 +128,6 @@
description="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_ICOMOON_DESCRIPTION"
class="list_class fieldMedium icomoon342"
multiple="false"
- required="false"
onchange="getIconImage(this);">
@@ -559,7 +558,6 @@
label="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_MAINMENU_LABEL"
value="1"
default="1"
- required="false"
description="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_MAINMENU_DESCRIPTION"
class="inputbox"
/>
@@ -570,7 +568,6 @@
label="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_DASHBOARD_LIST_LABEL"
value="1"
default="1"
- required="false"
description="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_DASHBOARD_LIST_DESCRIPTION"
class="inputbox"
/>
@@ -581,7 +578,6 @@
label="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_SUBMENU_LABEL"
value="1"
default="1"
- required="false"
description="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_SUBMENU_DESCRIPTION"
class="inputbox"
/>
@@ -592,7 +588,6 @@
label="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_METADATA_LABEL"
value="1"
default="1"
- required="false"
description="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_METADATA_DESCRIPTION"
class="inputbox"
/>
@@ -603,7 +598,6 @@
label="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_ACCESS_LABEL"
value="1"
default="1"
- required="false"
description="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_ACCESS_DESCRIPTION"
class="inputbox"
/>
@@ -615,8 +609,6 @@
description="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_ADMINVIEWS_DESCRIPTION"
class="fieldMedium"
multiple="true"
- default=""
- required="false"
button="false"
/>
@@ -627,8 +619,6 @@
description="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_BEFORE_DESCRIPTION"
class="list_class fieldMedium"
multiple="false"
- default=""
- required="false"
button="false"
/>
diff --git a/admin/models/forms/component_dashboard.js b/admin/models/forms/component_dashboard.js
index ed2e6521b..70dd5c103 100644
--- a/admin/models/forms/component_dashboard.js
+++ b/admin/models/forms/component_dashboard.js
@@ -37,7 +37,7 @@ function getEditCustomCodeButtons(){
getEditCustomCodeButtons_server(id).done(function(result) {
if(isObject(result)){
jQuery.each(result, function( field, buttons ) {
- jQuery('').insertBefore(".control-wrapper-"+ field);
+ jQuery('').insertBefore(".control-wrapper-"+ field);
jQuery.each(buttons, function( name, button ) {
jQuery(".control-customcode-buttons-"+field).append(button);
});
diff --git a/admin/models/forms/component_dashboard.xml b/admin/models/forms/component_dashboard.xml
index d46201b35..cc70427cd 100644
--- a/admin/models/forms/component_dashboard.xml
+++ b/admin/models/forms/component_dashboard.xml
@@ -120,7 +120,7 @@
class="text_area"
readonly="false"
disabled="false"
- required="false"
+ required="true"
filter="STRING"
message="COM_COMPONENTBUILDER_COMPONENT_DASHBOARD_NAME_MESSAGE"
hint="COM_COMPONENTBUILDER_COMPONENT_DASHBOARD_NAME_HINT"
@@ -136,7 +136,7 @@
class="text_area"
readonly="false"
disabled="false"
- required="false"
+ required="true"
filter="STRING"
message="COM_COMPONENTBUILDER_COMPONENT_DASHBOARD_HEADER_MESSAGE"
hint="COM_COMPONENTBUILDER_COMPONENT_DASHBOARD_HEADER_HINT"
@@ -152,7 +152,7 @@
class="text_area tab_html"
filter="raw"
hint="COM_COMPONENTBUILDER_COMPONENT_DASHBOARD_HTML_HINT"
- required="false"
+ required="true"
/>
diff --git a/admin/models/forms/component_files_folders.xml b/admin/models/forms/component_files_folders.xml
index 475d74a75..bafddc473 100644
--- a/admin/models/forms/component_files_folders.xml
+++ b/admin/models/forms/component_files_folders.xml
@@ -137,7 +137,7 @@
class="text_area"
readonly="false"
disabled="false"
- required="false"
+ required="true"
filter="PATH"
message="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_PATH_MESSAGE"
hint="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_PATH_HINT"
@@ -149,7 +149,6 @@
label="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_RENAME_LABEL"
value="1"
default=""
- required="false"
class="inputbox"
/>
@@ -193,7 +192,7 @@
class="text_area"
readonly="false"
disabled="false"
- required="false"
+ required="true"
filter="PATH"
message="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_PATH_MESSAGE"
hint="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_PATH_HINT"
@@ -205,7 +204,6 @@
label="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_NOTNEW_LABEL"
value="1"
default=""
- required="false"
description="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_NOTNEW_DESCRIPTION"
class="inputbox"
/>
@@ -233,7 +231,7 @@
class="list_class"
multiple="false"
default="0"
- required="false"
+ required="true"
button="false"
/>
@@ -247,7 +245,7 @@
class="text_area"
readonly="false"
disabled="false"
- required="false"
+ required="true"
filter="PATH"
message="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_PATH_MESSAGE"
hint="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_PATH_HINT"
@@ -259,7 +257,6 @@
label="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_RENAME_LABEL"
value="1"
default=""
- required="false"
class="inputbox"
/>
@@ -286,7 +283,7 @@
class="list_class"
multiple="false"
default="0"
- required="false"
+ required="true"
button="false"
/>
@@ -300,7 +297,7 @@
class="text_area"
readonly="false"
disabled="false"
- required="false"
+ required="true"
filter="PATH"
message="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_PATH_MESSAGE"
hint="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_PATH_HINT"
@@ -312,7 +309,6 @@
label="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_NOTNEW_LABEL"
value="1"
default=""
- required="false"
description="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_NOTNEW_DESCRIPTION"
class="inputbox"
/>
diff --git a/admin/models/forms/component_mysql_tweaks.xml b/admin/models/forms/component_mysql_tweaks.xml
index 94773ba4c..c114f4665 100644
--- a/admin/models/forms/component_mysql_tweaks.xml
+++ b/admin/models/forms/component_mysql_tweaks.xml
@@ -118,7 +118,7 @@
class="list_class fieldMedium"
multiple="false"
default=""
- required="false"
+ required="true"
button="false"
/>
@@ -130,7 +130,6 @@
class="list_class"
multiple="false"
filter="INT"
- required="false"
default="0">
@@ -147,7 +146,6 @@
class="list_class"
multiple="false"
filter="INT"
- required="false"
default="">
@@ -169,7 +167,6 @@
class="text_area ids_selection"
filter="raw"
hint="COM_COMPONENTBUILDER_COMPONENT_MYSQL_TWEAKS_IDS_HINT"
- required="false"
/>
diff --git a/admin/models/forms/component_placeholders.xml b/admin/models/forms/component_placeholders.xml
index d861e5090..b2ebbaaa7 100644
--- a/admin/models/forms/component_placeholders.xml
+++ b/admin/models/forms/component_placeholders.xml
@@ -118,7 +118,7 @@
maxlength="150"
description="COM_COMPONENTBUILDER_COMPONENT_PLACEHOLDERS_TARGET_DESCRIPTION"
class="text_area"
- required="false"
+ required="true"
filter="STRING"
message="COM_COMPONENTBUILDER_COMPONENT_PLACEHOLDERS_TARGET_MESSAGE"
hint="COM_COMPONENTBUILDER_COMPONENT_PLACEHOLDERS_TARGET_HINT"
@@ -132,7 +132,7 @@
size="150"
description="COM_COMPONENTBUILDER_COMPONENT_PLACEHOLDERS_VALUE_DESCRIPTION"
class="text_area"
- required="false"
+ required="true"
filter="RAW"
message="COM_COMPONENTBUILDER_COMPONENT_PLACEHOLDERS_VALUE_MESSAGE"
hint="COM_COMPONENTBUILDER_COMPONENT_PLACEHOLDERS_VALUE_HINT"
diff --git a/admin/models/forms/component_site_views.xml b/admin/models/forms/component_site_views.xml
index 95eb45277..69519b668 100644
--- a/admin/models/forms/component_site_views.xml
+++ b/admin/models/forms/component_site_views.xml
@@ -118,7 +118,7 @@
class="fieldMedium"
multiple="false"
default=""
- required="false"
+ required="true"
button="false"
/>
@@ -128,7 +128,6 @@
label="COM_COMPONENTBUILDER_COMPONENT_SITE_VIEWS_MENU_LABEL"
value="1"
default="1"
- required="false"
description="COM_COMPONENTBUILDER_COMPONENT_SITE_VIEWS_MENU_DESCRIPTION"
class="inputbox"
/>
@@ -139,7 +138,6 @@
label="COM_COMPONENTBUILDER_COMPONENT_SITE_VIEWS_METADATA_LABEL"
value="1"
default="1"
- required="false"
description="COM_COMPONENTBUILDER_COMPONENT_SITE_VIEWS_METADATA_DESCRIPTION"
class="inputbox"
/>
@@ -150,7 +148,6 @@
label="COM_COMPONENTBUILDER_COMPONENT_SITE_VIEWS_DEFAULT_VIEW_LABEL"
value="1"
default=""
- required="false"
description="COM_COMPONENTBUILDER_COMPONENT_SITE_VIEWS_DEFAULT_VIEW_DESCRIPTION"
class="inputbox"
/>
@@ -161,7 +158,6 @@
label="COM_COMPONENTBUILDER_COMPONENT_SITE_VIEWS_ACCESS_LABEL"
value="1"
default="1"
- required="false"
description="COM_COMPONENTBUILDER_COMPONENT_SITE_VIEWS_ACCESS_DESCRIPTION"
class="inputbox"
/>
@@ -172,7 +168,6 @@
label="COM_COMPONENTBUILDER_COMPONENT_SITE_VIEWS_PUBLIC_ACCESS_LABEL"
value="1"
default=""
- required="false"
description="COM_COMPONENTBUILDER_COMPONENT_SITE_VIEWS_PUBLIC_ACCESS_DESCRIPTION"
class="inputbox"
/>
diff --git a/admin/models/forms/component_updates.xml b/admin/models/forms/component_updates.xml
index 777a73099..348b9f614 100644
--- a/admin/models/forms/component_updates.xml
+++ b/admin/models/forms/component_updates.xml
@@ -138,7 +138,6 @@
class="text_area mysql_update"
filter="raw"
hint="COM_COMPONENTBUILDER_COMPONENT_UPDATES_MYSQL_HINT"
- required="false"
/>
Edit Customcode
').insertBefore(".control-wrapper-"+ field);
+ jQuery('
').insertBefore(".control-wrapper-"+ field);
jQuery.each(buttons, function( name, button ) {
jQuery(".control-customcode-buttons-"+field).append(button);
});
diff --git a/admin/models/forms/custom_admin_view.xml b/admin/models/forms/custom_admin_view.xml
index 8dd317152..a358eef46 100644
--- a/admin/models/forms/custom_admin_view.xml
+++ b/admin/models/forms/custom_admin_view.xml
@@ -405,7 +405,7 @@
class="text_area"
readonly="false"
disabled="false"
- required="false"
+ required="true"
filter="STRING"
message="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_VALUE_NAME_MESSAGE"
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_VALUE_NAME_HINT"
@@ -421,7 +421,7 @@
class="text_area"
readonly="false"
disabled="false"
- required="false"
+ required="true"
filter="WORD"
message="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_TASK_NAME_MESSAGE"
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_TASK_NAME_HINT"
@@ -438,7 +438,7 @@
class="text_area"
readonly="false"
disabled="false"
- required="false"
+ required="true"
filter="STRING"
message="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_INPUT_DEFAULT_MESSAGE"
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_INPUT_DEFAULT_HINT"
@@ -452,7 +452,7 @@
class="list_class"
multiple="false"
filter="WORD"
- required="false"
+ required="true"
default="INT">
@@ -498,7 +498,7 @@
class="text_area"
readonly="false"
disabled="false"
- required="false"
+ required="true"
filter="WORD"
message="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_METHOD_NAME_MESSAGE"
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_METHOD_NAME_HINT"
@@ -509,7 +509,6 @@
name="allow_zero"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ALLOW_ZERO_LABEL"
value="1"
- required="false"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ALLOW_ZERO_DESCRIPTION"
class="inputbox"
/>
@@ -520,7 +519,6 @@
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_USER_CHECK_LABEL"
value="1"
default="1"
- required="false"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_USER_CHECK_DESCRIPTION"
class="inputbox"
/>
@@ -692,7 +690,6 @@
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ICOMOON_DESCRIPTION"
class="list_class fieldMedium icomoon342"
multiple="false"
- required="false"
onchange="getIconImage(this);">
@@ -1127,7 +1124,7 @@
class="text_area"
readonly="false"
disabled="false"
- required="false"
+ required="true"
filter="STRING"
message="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NAME_MESSAGE"
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NAME_HINT"
@@ -1155,7 +1152,6 @@
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_TARGET_DESCRIPTION"
class="list_class fieldMedium"
filter="INT"
- required="false"
default="1">
@@ -1173,7 +1169,6 @@
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_TYPE_DESCRIPTION"
class="list_class"
multiple="false"
- required="false"
default="0">
diff --git a/admin/models/forms/custom_code.js b/admin/models/forms/custom_code.js
index 3de69a3a7..cafa094a3 100644
--- a/admin/models/forms/custom_code.js
+++ b/admin/models/forms/custom_code.js
@@ -9,44 +9,44 @@
*/
// Some Global Values
-jform_vvvvwafvzu_required = false;
-jform_vvvvwagvzv_required = false;
-jform_vvvvwagvzw_required = false;
-jform_vvvvwagvzx_required = false;
+jform_vvvvwahvzw_required = false;
+jform_vvvvwaivzx_required = false;
+jform_vvvvwaivzy_required = false;
+jform_vvvvwaivzz_required = false;
// Initial Script
jQuery(document).ready(function()
{
- var target_vvvvwaf = jQuery("#jform_target input[type='radio']:checked").val();
- vvvvwaf(target_vvvvwaf);
-
- var target_vvvvwag = jQuery("#jform_target input[type='radio']:checked").val();
- vvvvwag(target_vvvvwag);
-
var target_vvvvwah = jQuery("#jform_target input[type='radio']:checked").val();
- var type_vvvvwah = jQuery("#jform_type input[type='radio']:checked").val();
- vvvvwah(target_vvvvwah,type_vvvvwah);
+ vvvvwah(target_vvvvwah);
- var type_vvvvwai = jQuery("#jform_type input[type='radio']:checked").val();
var target_vvvvwai = jQuery("#jform_target input[type='radio']:checked").val();
- vvvvwai(type_vvvvwai,target_vvvvwai);
+ vvvvwai(target_vvvvwai);
+
+ var target_vvvvwaj = jQuery("#jform_target input[type='radio']:checked").val();
+ var type_vvvvwaj = jQuery("#jform_type input[type='radio']:checked").val();
+ vvvvwaj(target_vvvvwaj,type_vvvvwaj);
+
+ var type_vvvvwak = jQuery("#jform_type input[type='radio']:checked").val();
+ var target_vvvvwak = jQuery("#jform_target input[type='radio']:checked").val();
+ vvvvwak(type_vvvvwak,target_vvvvwak);
});
-// the vvvvwaf function
-function vvvvwaf(target_vvvvwaf)
+// the vvvvwah function
+function vvvvwah(target_vvvvwah)
{
// set the function logic
- if (target_vvvvwaf == 2)
+ if (target_vvvvwah == 2)
{
jQuery('#jform_function_name').closest('.control-group').show();
// add required attribute to function_name field
- if (jform_vvvvwafvzu_required)
+ if (jform_vvvvwahvzw_required)
{
updateFieldRequired('function_name',0);
jQuery('#jform_function_name').prop('required','required');
jQuery('#jform_function_name').attr('aria-required',true);
jQuery('#jform_function_name').addClass('required');
- jform_vvvvwafvzu_required = false;
+ jform_vvvvwahvzw_required = false;
}
jQuery('.note_jcb_placeholder').closest('.control-group').show();
jQuery('#jform_system_name').closest('.control-group').show();
@@ -55,102 +55,102 @@ function vvvvwaf(target_vvvvwaf)
{
jQuery('#jform_function_name').closest('.control-group').hide();
// remove required attribute from function_name field
- if (!jform_vvvvwafvzu_required)
+ if (!jform_vvvvwahvzw_required)
{
updateFieldRequired('function_name',1);
jQuery('#jform_function_name').removeAttr('required');
jQuery('#jform_function_name').removeAttr('aria-required');
jQuery('#jform_function_name').removeClass('required');
- jform_vvvvwafvzu_required = true;
+ jform_vvvvwahvzw_required = true;
}
jQuery('.note_jcb_placeholder').closest('.control-group').hide();
jQuery('#jform_system_name').closest('.control-group').hide();
}
}
-// the vvvvwag function
-function vvvvwag(target_vvvvwag)
+// the vvvvwai function
+function vvvvwai(target_vvvvwai)
{
// set the function logic
- if (target_vvvvwag == 1)
+ if (target_vvvvwai == 1)
{
jQuery('#jform_component').closest('.control-group').show();
// add required attribute to component field
- if (jform_vvvvwagvzv_required)
+ if (jform_vvvvwaivzx_required)
{
updateFieldRequired('component',0);
jQuery('#jform_component').prop('required','required');
jQuery('#jform_component').attr('aria-required',true);
jQuery('#jform_component').addClass('required');
- jform_vvvvwagvzv_required = false;
+ jform_vvvvwaivzx_required = false;
}
jQuery('#jform_path').closest('.control-group').show();
// add required attribute to path field
- if (jform_vvvvwagvzw_required)
+ if (jform_vvvvwaivzy_required)
{
updateFieldRequired('path',0);
jQuery('#jform_path').prop('required','required');
jQuery('#jform_path').attr('aria-required',true);
jQuery('#jform_path').addClass('required');
- jform_vvvvwagvzw_required = false;
+ jform_vvvvwaivzy_required = false;
}
jQuery('#jform_from_line').closest('.control-group').show();
jQuery('#jform_hashtarget').closest('.control-group').show();
jQuery('#jform_to_line').closest('.control-group').show();
jQuery('#jform_type').closest('.control-group').show();
// add required attribute to type field
- if (jform_vvvvwagvzx_required)
+ if (jform_vvvvwaivzz_required)
{
updateFieldRequired('type',0);
jQuery('#jform_type').prop('required','required');
jQuery('#jform_type').attr('aria-required',true);
jQuery('#jform_type').addClass('required');
- jform_vvvvwagvzx_required = false;
+ jform_vvvvwaivzz_required = false;
}
}
else
{
jQuery('#jform_component').closest('.control-group').hide();
// remove required attribute from component field
- if (!jform_vvvvwagvzv_required)
+ if (!jform_vvvvwaivzx_required)
{
updateFieldRequired('component',1);
jQuery('#jform_component').removeAttr('required');
jQuery('#jform_component').removeAttr('aria-required');
jQuery('#jform_component').removeClass('required');
- jform_vvvvwagvzv_required = true;
+ jform_vvvvwaivzx_required = true;
}
jQuery('#jform_path').closest('.control-group').hide();
// remove required attribute from path field
- if (!jform_vvvvwagvzw_required)
+ if (!jform_vvvvwaivzy_required)
{
updateFieldRequired('path',1);
jQuery('#jform_path').removeAttr('required');
jQuery('#jform_path').removeAttr('aria-required');
jQuery('#jform_path').removeClass('required');
- jform_vvvvwagvzw_required = true;
+ jform_vvvvwaivzy_required = true;
}
jQuery('#jform_from_line').closest('.control-group').hide();
jQuery('#jform_hashtarget').closest('.control-group').hide();
jQuery('#jform_to_line').closest('.control-group').hide();
jQuery('#jform_type').closest('.control-group').hide();
// remove required attribute from type field
- if (!jform_vvvvwagvzx_required)
+ if (!jform_vvvvwaivzz_required)
{
updateFieldRequired('type',1);
jQuery('#jform_type').removeAttr('required');
jQuery('#jform_type').removeAttr('aria-required');
jQuery('#jform_type').removeClass('required');
- jform_vvvvwagvzx_required = true;
+ jform_vvvvwaivzz_required = true;
}
}
}
-// the vvvvwah function
-function vvvvwah(target_vvvvwah,type_vvvvwah)
+// the vvvvwaj function
+function vvvvwaj(target_vvvvwaj,type_vvvvwaj)
{
// set the function logic
- if (target_vvvvwah == 1 && type_vvvvwah == 1)
+ if (target_vvvvwaj == 1 && type_vvvvwaj == 1)
{
jQuery('#jform_hashendtarget').closest('.control-group').show();
jQuery('#jform_to_line').closest('.control-group').show();
@@ -162,11 +162,11 @@ function vvvvwah(target_vvvvwah,type_vvvvwah)
}
}
-// the vvvvwai function
-function vvvvwai(type_vvvvwai,target_vvvvwai)
+// the vvvvwak function
+function vvvvwak(type_vvvvwak,target_vvvvwak)
{
// set the function logic
- if (type_vvvvwai == 1 && target_vvvvwai == 1)
+ if (type_vvvvwak == 1 && target_vvvvwak == 1)
{
jQuery('#jform_hashendtarget').closest('.control-group').show();
jQuery('#jform_to_line').closest('.control-group').show();
@@ -313,8 +313,8 @@ function usedin(functioName, ide) {
jQuery('#note-usedin-not').hide();
jQuery('#note-usedin-found').hide();
jQuery('#loading-usedin').show();
- var targets = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n']; // if you update this, also update (below 13) & [customcode-codeUsedInHtmlNote]!
- var targetNumber = 13;
+ var targets = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p']; // if you update this, also update (below 15) & [customcode-codeUsedInHtmlNote]!
+ var targetNumber = 15;
var run = 0;
var usedinChecker = setInterval(function(){
var target = targets[run];
@@ -377,7 +377,7 @@ function getEditCustomCodeButtons(){
getEditCustomCodeButtons_server(id).done(function(result) {
if(isObject(result)){
jQuery.each(result, function( field, buttons ) {
- jQuery('').insertBefore(".control-wrapper-"+ field);
+ jQuery('').insertBefore(".control-wrapper-"+ field);
jQuery.each(buttons, function( name, button ) {
jQuery(".control-customcode-buttons-"+field).append(button);
});
diff --git a/admin/models/forms/dynamic_get.js b/admin/models/forms/dynamic_get.js
index 33da3c9f4..a4e776f6d 100644
--- a/admin/models/forms/dynamic_get.js
+++ b/admin/models/forms/dynamic_get.js
@@ -9,38 +9,32 @@
*/
// Some Global Values
-jform_vvvvvzevza_required = false;
-jform_vvvvvzgvzb_required = false;
-jform_vvvvvzhvzc_required = false;
+jform_vvvvvzgvzc_required = false;
jform_vvvvvzivzd_required = false;
jform_vvvvvzjvze_required = false;
jform_vvvvvzkvzf_required = false;
-jform_vvvvvzpvzg_required = false;
-jform_vvvvvzrvzh_required = false;
-jform_vvvvvzsvzi_required = false;
-jform_vvvvvzuvzj_required = false;
+jform_vvvvvzlvzg_required = false;
+jform_vvvvvzmvzh_required = false;
+jform_vvvvvzrvzi_required = false;
+jform_vvvvvztvzj_required = false;
jform_vvvvvzuvzk_required = false;
-jform_vvvvvzvvzl_required = false;
+jform_vvvvvzwvzl_required = false;
jform_vvvvvzwvzm_required = false;
jform_vvvvvzxvzn_required = false;
-jform_vvvvvzzvzo_required = false;
+jform_vvvvvzyvzo_required = false;
jform_vvvvvzzvzp_required = false;
-jform_vvvvvzzvzq_required = false;
-jform_vvvvwaavzr_required = false;
+jform_vvvvwabvzq_required = false;
+jform_vvvvwabvzr_required = false;
jform_vvvvwabvzs_required = false;
jform_vvvvwacvzt_required = false;
+jform_vvvvwadvzu_required = false;
+jform_vvvvwaevzv_required = false;
// Initial Script
jQuery(document).ready(function()
{
- var gettype_vvvvvze = jQuery("#jform_gettype").val();
- vvvvvze(gettype_vvvvvze);
-
- var main_source_vvvvvzf = jQuery("#jform_main_source").val();
- vvvvvzf(main_source_vvvvvzf);
-
- var main_source_vvvvvzg = jQuery("#jform_main_source").val();
- vvvvvzg(main_source_vvvvvzg);
+ var gettype_vvvvvzg = jQuery("#jform_gettype").val();
+ vvvvvzg(gettype_vvvvvzg);
var main_source_vvvvvzh = jQuery("#jform_main_source").val();
vvvvvzh(main_source_vvvvvzh);
@@ -51,77 +45,83 @@ jQuery(document).ready(function()
var main_source_vvvvvzj = jQuery("#jform_main_source").val();
vvvvvzj(main_source_vvvvvzj);
- var addcalculation_vvvvvzk = jQuery("#jform_addcalculation input[type='radio']:checked").val();
- vvvvvzk(addcalculation_vvvvvzk);
+ var main_source_vvvvvzk = jQuery("#jform_main_source").val();
+ vvvvvzk(main_source_vvvvvzk);
- var addcalculation_vvvvvzl = jQuery("#jform_addcalculation input[type='radio']:checked").val();
- var gettype_vvvvvzl = jQuery("#jform_gettype").val();
- vvvvvzl(addcalculation_vvvvvzl,gettype_vvvvvzl);
+ var main_source_vvvvvzl = jQuery("#jform_main_source").val();
+ vvvvvzl(main_source_vvvvvzl);
var addcalculation_vvvvvzm = jQuery("#jform_addcalculation input[type='radio']:checked").val();
- var gettype_vvvvvzm = jQuery("#jform_gettype").val();
- vvvvvzm(addcalculation_vvvvvzm,gettype_vvvvvzm);
+ vvvvvzm(addcalculation_vvvvvzm);
- var main_source_vvvvvzp = jQuery("#jform_main_source").val();
- vvvvvzp(main_source_vvvvvzp);
+ var addcalculation_vvvvvzn = jQuery("#jform_addcalculation input[type='radio']:checked").val();
+ var gettype_vvvvvzn = jQuery("#jform_gettype").val();
+ vvvvvzn(addcalculation_vvvvvzn,gettype_vvvvvzn);
- var main_source_vvvvvzq = jQuery("#jform_main_source").val();
- vvvvvzq(main_source_vvvvvzq);
+ var addcalculation_vvvvvzo = jQuery("#jform_addcalculation input[type='radio']:checked").val();
+ var gettype_vvvvvzo = jQuery("#jform_gettype").val();
+ vvvvvzo(addcalculation_vvvvvzo,gettype_vvvvvzo);
- var add_php_before_getitem_vvvvvzr = jQuery("#jform_add_php_before_getitem input[type='radio']:checked").val();
- var gettype_vvvvvzr = jQuery("#jform_gettype").val();
- vvvvvzr(add_php_before_getitem_vvvvvzr,gettype_vvvvvzr);
+ var main_source_vvvvvzr = jQuery("#jform_main_source").val();
+ vvvvvzr(main_source_vvvvvzr);
- var add_php_after_getitem_vvvvvzs = jQuery("#jform_add_php_after_getitem input[type='radio']:checked").val();
- var gettype_vvvvvzs = jQuery("#jform_gettype").val();
- vvvvvzs(add_php_after_getitem_vvvvvzs,gettype_vvvvvzs);
+ var main_source_vvvvvzs = jQuery("#jform_main_source").val();
+ vvvvvzs(main_source_vvvvvzs);
+ var add_php_before_getitem_vvvvvzt = jQuery("#jform_add_php_before_getitem input[type='radio']:checked").val();
+ var gettype_vvvvvzt = jQuery("#jform_gettype").val();
+ vvvvvzt(add_php_before_getitem_vvvvvzt,gettype_vvvvvzt);
+
+ var add_php_after_getitem_vvvvvzu = jQuery("#jform_add_php_after_getitem input[type='radio']:checked").val();
var gettype_vvvvvzu = jQuery("#jform_gettype").val();
- vvvvvzu(gettype_vvvvvzu);
+ vvvvvzu(add_php_after_getitem_vvvvvzu,gettype_vvvvvzu);
- var add_php_getlistquery_vvvvvzv = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val();
- var gettype_vvvvvzv = jQuery("#jform_gettype").val();
- vvvvvzv(add_php_getlistquery_vvvvvzv,gettype_vvvvvzv);
-
- var add_php_before_getitems_vvvvvzw = jQuery("#jform_add_php_before_getitems input[type='radio']:checked").val();
var gettype_vvvvvzw = jQuery("#jform_gettype").val();
- vvvvvzw(add_php_before_getitems_vvvvvzw,gettype_vvvvvzw);
+ vvvvvzw(gettype_vvvvvzw);
- var add_php_after_getitems_vvvvvzx = jQuery("#jform_add_php_after_getitems input[type='radio']:checked").val();
+ var add_php_getlistquery_vvvvvzx = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val();
var gettype_vvvvvzx = jQuery("#jform_gettype").val();
- vvvvvzx(add_php_after_getitems_vvvvvzx,gettype_vvvvvzx);
+ vvvvvzx(add_php_getlistquery_vvvvvzx,gettype_vvvvvzx);
+ var add_php_before_getitems_vvvvvzy = jQuery("#jform_add_php_before_getitems input[type='radio']:checked").val();
+ var gettype_vvvvvzy = jQuery("#jform_gettype").val();
+ vvvvvzy(add_php_before_getitems_vvvvvzy,gettype_vvvvvzy);
+
+ var add_php_after_getitems_vvvvvzz = jQuery("#jform_add_php_after_getitems input[type='radio']:checked").val();
var gettype_vvvvvzz = jQuery("#jform_gettype").val();
- vvvvvzz(gettype_vvvvvzz);
-
- var gettype_vvvvwaa = jQuery("#jform_gettype").val();
- vvvvwaa(gettype_vvvvwaa);
+ vvvvvzz(add_php_after_getitems_vvvvvzz,gettype_vvvvvzz);
var gettype_vvvvwab = jQuery("#jform_gettype").val();
vvvvwab(gettype_vvvvwab);
var gettype_vvvvwac = jQuery("#jform_gettype").val();
- var add_php_router_parse_vvvvwac = jQuery("#jform_add_php_router_parse input[type='radio']:checked").val();
- vvvvwac(gettype_vvvvwac,add_php_router_parse_vvvvwac);
+ vvvvwac(gettype_vvvvwac);
+
+ var gettype_vvvvwad = jQuery("#jform_gettype").val();
+ vvvvwad(gettype_vvvvwad);
var gettype_vvvvwae = jQuery("#jform_gettype").val();
- vvvvwae(gettype_vvvvwae);
+ var add_php_router_parse_vvvvwae = jQuery("#jform_add_php_router_parse input[type='radio']:checked").val();
+ vvvvwae(gettype_vvvvwae,add_php_router_parse_vvvvwae);
+
+ var gettype_vvvvwag = jQuery("#jform_gettype").val();
+ vvvvwag(gettype_vvvvwag);
});
-// the vvvvvze function
-function vvvvvze(gettype_vvvvvze)
+// the vvvvvzg function
+function vvvvvzg(gettype_vvvvvzg)
{
- if (isSet(gettype_vvvvvze) && gettype_vvvvvze.constructor !== Array)
+ if (isSet(gettype_vvvvvzg) && gettype_vvvvvzg.constructor !== Array)
{
- var temp_vvvvvze = gettype_vvvvvze;
- var gettype_vvvvvze = [];
- gettype_vvvvvze.push(temp_vvvvvze);
+ var temp_vvvvvzg = gettype_vvvvvzg;
+ var gettype_vvvvvzg = [];
+ gettype_vvvvvzg.push(temp_vvvvvzg);
}
- else if (!isSet(gettype_vvvvvze))
+ else if (!isSet(gettype_vvvvvzg))
{
- var gettype_vvvvvze = [];
+ var gettype_vvvvvzg = [];
}
- var gettype = gettype_vvvvvze.some(gettype_vvvvvze_SomeFunc);
+ var gettype = gettype_vvvvvzg.some(gettype_vvvvvzg_SomeFunc);
// set this function logic
@@ -129,129 +129,35 @@ function vvvvvze(gettype_vvvvvze)
{
jQuery('#jform_getcustom').closest('.control-group').show();
// add required attribute to getcustom field
- if (jform_vvvvvzevza_required)
+ if (jform_vvvvvzgvzc_required)
{
updateFieldRequired('getcustom',0);
jQuery('#jform_getcustom').prop('required','required');
jQuery('#jform_getcustom').attr('aria-required',true);
jQuery('#jform_getcustom').addClass('required');
- jform_vvvvvzevza_required = false;
+ jform_vvvvvzgvzc_required = false;
}
}
else
{
jQuery('#jform_getcustom').closest('.control-group').hide();
// remove required attribute from getcustom field
- if (!jform_vvvvvzevza_required)
+ if (!jform_vvvvvzgvzc_required)
{
updateFieldRequired('getcustom',1);
jQuery('#jform_getcustom').removeAttr('required');
jQuery('#jform_getcustom').removeAttr('aria-required');
jQuery('#jform_getcustom').removeClass('required');
- jform_vvvvvzevza_required = true;
- }
- }
-}
-
-// the vvvvvze Some function
-function gettype_vvvvvze_SomeFunc(gettype_vvvvvze)
-{
- // set the function logic
- if (gettype_vvvvvze == 3 || gettype_vvvvvze == 4)
- {
- return true;
- }
- return false;
-}
-
-// the vvvvvzf function
-function vvvvvzf(main_source_vvvvvzf)
-{
- if (isSet(main_source_vvvvvzf) && main_source_vvvvvzf.constructor !== Array)
- {
- var temp_vvvvvzf = main_source_vvvvvzf;
- var main_source_vvvvvzf = [];
- main_source_vvvvvzf.push(temp_vvvvvzf);
- }
- else if (!isSet(main_source_vvvvvzf))
- {
- var main_source_vvvvvzf = [];
- }
- var main_source = main_source_vvvvvzf.some(main_source_vvvvvzf_SomeFunc);
-
-
- // set this function logic
- if (main_source)
- {
- jQuery('#jform_select_all').closest('.control-group').show();
- }
- else
- {
- jQuery('#jform_select_all').closest('.control-group').hide();
- }
-}
-
-// the vvvvvzf Some function
-function main_source_vvvvvzf_SomeFunc(main_source_vvvvvzf)
-{
- // set the function logic
- if (main_source_vvvvvzf == 1 || main_source_vvvvvzf == 2)
- {
- return true;
- }
- return false;
-}
-
-// the vvvvvzg function
-function vvvvvzg(main_source_vvvvvzg)
-{
- if (isSet(main_source_vvvvvzg) && main_source_vvvvvzg.constructor !== Array)
- {
- var temp_vvvvvzg = main_source_vvvvvzg;
- var main_source_vvvvvzg = [];
- main_source_vvvvvzg.push(temp_vvvvvzg);
- }
- else if (!isSet(main_source_vvvvvzg))
- {
- var main_source_vvvvvzg = [];
- }
- var main_source = main_source_vvvvvzg.some(main_source_vvvvvzg_SomeFunc);
-
-
- // set this function logic
- if (main_source)
- {
- jQuery('#jform_view_table_main').closest('.control-group').show();
- // add required attribute to view_table_main field
- if (jform_vvvvvzgvzb_required)
- {
- updateFieldRequired('view_table_main',0);
- jQuery('#jform_view_table_main').prop('required','required');
- jQuery('#jform_view_table_main').attr('aria-required',true);
- jQuery('#jform_view_table_main').addClass('required');
- jform_vvvvvzgvzb_required = false;
- }
- }
- else
- {
- jQuery('#jform_view_table_main').closest('.control-group').hide();
- // remove required attribute from view_table_main field
- if (!jform_vvvvvzgvzb_required)
- {
- updateFieldRequired('view_table_main',1);
- jQuery('#jform_view_table_main').removeAttr('required');
- jQuery('#jform_view_table_main').removeAttr('aria-required');
- jQuery('#jform_view_table_main').removeClass('required');
- jform_vvvvvzgvzb_required = true;
+ jform_vvvvvzgvzc_required = true;
}
}
}
// the vvvvvzg Some function
-function main_source_vvvvvzg_SomeFunc(main_source_vvvvvzg)
+function gettype_vvvvvzg_SomeFunc(gettype_vvvvvzg)
{
// set the function logic
- if (main_source_vvvvvzg == 1)
+ if (gettype_vvvvvzg == 3 || gettype_vvvvvzg == 4)
{
return true;
}
@@ -277,29 +183,11 @@ function vvvvvzh(main_source_vvvvvzh)
// set this function logic
if (main_source)
{
- jQuery('#jform_view_selection').closest('.control-group').show();
- // add required attribute to view_selection field
- if (jform_vvvvvzhvzc_required)
- {
- updateFieldRequired('view_selection',0);
- jQuery('#jform_view_selection').prop('required','required');
- jQuery('#jform_view_selection').attr('aria-required',true);
- jQuery('#jform_view_selection').addClass('required');
- jform_vvvvvzhvzc_required = false;
- }
+ jQuery('#jform_select_all').closest('.control-group').show();
}
else
{
- jQuery('#jform_view_selection').closest('.control-group').hide();
- // remove required attribute from view_selection field
- if (!jform_vvvvvzhvzc_required)
- {
- updateFieldRequired('view_selection',1);
- jQuery('#jform_view_selection').removeAttr('required');
- jQuery('#jform_view_selection').removeAttr('aria-required');
- jQuery('#jform_view_selection').removeClass('required');
- jform_vvvvvzhvzc_required = true;
- }
+ jQuery('#jform_select_all').closest('.control-group').hide();
}
}
@@ -307,7 +195,7 @@ function vvvvvzh(main_source_vvvvvzh)
function main_source_vvvvvzh_SomeFunc(main_source_vvvvvzh)
{
// set the function logic
- if (main_source_vvvvvzh == 1)
+ if (main_source_vvvvvzh == 1 || main_source_vvvvvzh == 2)
{
return true;
}
@@ -333,27 +221,27 @@ function vvvvvzi(main_source_vvvvvzi)
// set this function logic
if (main_source)
{
- jQuery('#jform_db_table_main').closest('.control-group').show();
- // add required attribute to db_table_main field
+ jQuery('#jform_view_table_main').closest('.control-group').show();
+ // add required attribute to view_table_main field
if (jform_vvvvvzivzd_required)
{
- updateFieldRequired('db_table_main',0);
- jQuery('#jform_db_table_main').prop('required','required');
- jQuery('#jform_db_table_main').attr('aria-required',true);
- jQuery('#jform_db_table_main').addClass('required');
+ updateFieldRequired('view_table_main',0);
+ jQuery('#jform_view_table_main').prop('required','required');
+ jQuery('#jform_view_table_main').attr('aria-required',true);
+ jQuery('#jform_view_table_main').addClass('required');
jform_vvvvvzivzd_required = false;
}
}
else
{
- jQuery('#jform_db_table_main').closest('.control-group').hide();
- // remove required attribute from db_table_main field
+ jQuery('#jform_view_table_main').closest('.control-group').hide();
+ // remove required attribute from view_table_main field
if (!jform_vvvvvzivzd_required)
{
- updateFieldRequired('db_table_main',1);
- jQuery('#jform_db_table_main').removeAttr('required');
- jQuery('#jform_db_table_main').removeAttr('aria-required');
- jQuery('#jform_db_table_main').removeClass('required');
+ updateFieldRequired('view_table_main',1);
+ jQuery('#jform_view_table_main').removeAttr('required');
+ jQuery('#jform_view_table_main').removeAttr('aria-required');
+ jQuery('#jform_view_table_main').removeClass('required');
jform_vvvvvzivzd_required = true;
}
}
@@ -363,7 +251,7 @@ function vvvvvzi(main_source_vvvvvzi)
function main_source_vvvvvzi_SomeFunc(main_source_vvvvvzi)
{
// set the function logic
- if (main_source_vvvvvzi == 2)
+ if (main_source_vvvvvzi == 1)
{
return true;
}
@@ -389,27 +277,27 @@ function vvvvvzj(main_source_vvvvvzj)
// set this function logic
if (main_source)
{
- jQuery('#jform_db_selection').closest('.control-group').show();
- // add required attribute to db_selection field
+ jQuery('#jform_view_selection').closest('.control-group').show();
+ // add required attribute to view_selection field
if (jform_vvvvvzjvze_required)
{
- updateFieldRequired('db_selection',0);
- jQuery('#jform_db_selection').prop('required','required');
- jQuery('#jform_db_selection').attr('aria-required',true);
- jQuery('#jform_db_selection').addClass('required');
+ updateFieldRequired('view_selection',0);
+ jQuery('#jform_view_selection').prop('required','required');
+ jQuery('#jform_view_selection').attr('aria-required',true);
+ jQuery('#jform_view_selection').addClass('required');
jform_vvvvvzjvze_required = false;
}
}
else
{
- jQuery('#jform_db_selection').closest('.control-group').hide();
- // remove required attribute from db_selection field
+ jQuery('#jform_view_selection').closest('.control-group').hide();
+ // remove required attribute from view_selection field
if (!jform_vvvvvzjvze_required)
{
- updateFieldRequired('db_selection',1);
- jQuery('#jform_db_selection').removeAttr('required');
- jQuery('#jform_db_selection').removeAttr('aria-required');
- jQuery('#jform_db_selection').removeClass('required');
+ updateFieldRequired('view_selection',1);
+ jQuery('#jform_view_selection').removeAttr('required');
+ jQuery('#jform_view_selection').removeAttr('aria-required');
+ jQuery('#jform_view_selection').removeClass('required');
jform_vvvvvzjvze_required = true;
}
}
@@ -419,7 +307,7 @@ function vvvvvzj(main_source_vvvvvzj)
function main_source_vvvvvzj_SomeFunc(main_source_vvvvvzj)
{
// set the function logic
- if (main_source_vvvvvzj == 2)
+ if (main_source_vvvvvzj == 1)
{
return true;
}
@@ -427,63 +315,175 @@ function main_source_vvvvvzj_SomeFunc(main_source_vvvvvzj)
}
// the vvvvvzk function
-function vvvvvzk(addcalculation_vvvvvzk)
+function vvvvvzk(main_source_vvvvvzk)
+{
+ if (isSet(main_source_vvvvvzk) && main_source_vvvvvzk.constructor !== Array)
+ {
+ var temp_vvvvvzk = main_source_vvvvvzk;
+ var main_source_vvvvvzk = [];
+ main_source_vvvvvzk.push(temp_vvvvvzk);
+ }
+ else if (!isSet(main_source_vvvvvzk))
+ {
+ var main_source_vvvvvzk = [];
+ }
+ var main_source = main_source_vvvvvzk.some(main_source_vvvvvzk_SomeFunc);
+
+
+ // set this function logic
+ if (main_source)
+ {
+ jQuery('#jform_db_table_main').closest('.control-group').show();
+ // add required attribute to db_table_main field
+ if (jform_vvvvvzkvzf_required)
+ {
+ updateFieldRequired('db_table_main',0);
+ jQuery('#jform_db_table_main').prop('required','required');
+ jQuery('#jform_db_table_main').attr('aria-required',true);
+ jQuery('#jform_db_table_main').addClass('required');
+ jform_vvvvvzkvzf_required = false;
+ }
+ }
+ else
+ {
+ jQuery('#jform_db_table_main').closest('.control-group').hide();
+ // remove required attribute from db_table_main field
+ if (!jform_vvvvvzkvzf_required)
+ {
+ updateFieldRequired('db_table_main',1);
+ jQuery('#jform_db_table_main').removeAttr('required');
+ jQuery('#jform_db_table_main').removeAttr('aria-required');
+ jQuery('#jform_db_table_main').removeClass('required');
+ jform_vvvvvzkvzf_required = true;
+ }
+ }
+}
+
+// the vvvvvzk Some function
+function main_source_vvvvvzk_SomeFunc(main_source_vvvvvzk)
{
// set the function logic
- if (addcalculation_vvvvvzk == 1)
+ if (main_source_vvvvvzk == 2)
+ {
+ return true;
+ }
+ return false;
+}
+
+// the vvvvvzl function
+function vvvvvzl(main_source_vvvvvzl)
+{
+ if (isSet(main_source_vvvvvzl) && main_source_vvvvvzl.constructor !== Array)
+ {
+ var temp_vvvvvzl = main_source_vvvvvzl;
+ var main_source_vvvvvzl = [];
+ main_source_vvvvvzl.push(temp_vvvvvzl);
+ }
+ else if (!isSet(main_source_vvvvvzl))
+ {
+ var main_source_vvvvvzl = [];
+ }
+ var main_source = main_source_vvvvvzl.some(main_source_vvvvvzl_SomeFunc);
+
+
+ // set this function logic
+ if (main_source)
+ {
+ jQuery('#jform_db_selection').closest('.control-group').show();
+ // add required attribute to db_selection field
+ if (jform_vvvvvzlvzg_required)
+ {
+ updateFieldRequired('db_selection',0);
+ jQuery('#jform_db_selection').prop('required','required');
+ jQuery('#jform_db_selection').attr('aria-required',true);
+ jQuery('#jform_db_selection').addClass('required');
+ jform_vvvvvzlvzg_required = false;
+ }
+ }
+ else
+ {
+ jQuery('#jform_db_selection').closest('.control-group').hide();
+ // remove required attribute from db_selection field
+ if (!jform_vvvvvzlvzg_required)
+ {
+ updateFieldRequired('db_selection',1);
+ jQuery('#jform_db_selection').removeAttr('required');
+ jQuery('#jform_db_selection').removeAttr('aria-required');
+ jQuery('#jform_db_selection').removeClass('required');
+ jform_vvvvvzlvzg_required = true;
+ }
+ }
+}
+
+// the vvvvvzl Some function
+function main_source_vvvvvzl_SomeFunc(main_source_vvvvvzl)
+{
+ // set the function logic
+ if (main_source_vvvvvzl == 2)
+ {
+ return true;
+ }
+ return false;
+}
+
+// the vvvvvzm function
+function vvvvvzm(addcalculation_vvvvvzm)
+{
+ // set the function logic
+ if (addcalculation_vvvvvzm == 1)
{
jQuery('#jform_php_calculation-lbl').closest('.control-group').show();
// add required attribute to php_calculation field
- if (jform_vvvvvzkvzf_required)
+ if (jform_vvvvvzmvzh_required)
{
updateFieldRequired('php_calculation',0);
jQuery('#jform_php_calculation').prop('required','required');
jQuery('#jform_php_calculation').attr('aria-required',true);
jQuery('#jform_php_calculation').addClass('required');
- jform_vvvvvzkvzf_required = false;
+ jform_vvvvvzmvzh_required = false;
}
}
else
{
jQuery('#jform_php_calculation-lbl').closest('.control-group').hide();
// remove required attribute from php_calculation field
- if (!jform_vvvvvzkvzf_required)
+ if (!jform_vvvvvzmvzh_required)
{
updateFieldRequired('php_calculation',1);
jQuery('#jform_php_calculation').removeAttr('required');
jQuery('#jform_php_calculation').removeAttr('aria-required');
jQuery('#jform_php_calculation').removeClass('required');
- jform_vvvvvzkvzf_required = true;
+ jform_vvvvvzmvzh_required = true;
}
}
}
-// the vvvvvzl function
-function vvvvvzl(addcalculation_vvvvvzl,gettype_vvvvvzl)
+// the vvvvvzn function
+function vvvvvzn(addcalculation_vvvvvzn,gettype_vvvvvzn)
{
- if (isSet(addcalculation_vvvvvzl) && addcalculation_vvvvvzl.constructor !== Array)
+ if (isSet(addcalculation_vvvvvzn) && addcalculation_vvvvvzn.constructor !== Array)
{
- var temp_vvvvvzl = addcalculation_vvvvvzl;
- var addcalculation_vvvvvzl = [];
- addcalculation_vvvvvzl.push(temp_vvvvvzl);
+ var temp_vvvvvzn = addcalculation_vvvvvzn;
+ var addcalculation_vvvvvzn = [];
+ addcalculation_vvvvvzn.push(temp_vvvvvzn);
}
- else if (!isSet(addcalculation_vvvvvzl))
+ else if (!isSet(addcalculation_vvvvvzn))
{
- var addcalculation_vvvvvzl = [];
+ var addcalculation_vvvvvzn = [];
}
- var addcalculation = addcalculation_vvvvvzl.some(addcalculation_vvvvvzl_SomeFunc);
+ var addcalculation = addcalculation_vvvvvzn.some(addcalculation_vvvvvzn_SomeFunc);
- if (isSet(gettype_vvvvvzl) && gettype_vvvvvzl.constructor !== Array)
+ if (isSet(gettype_vvvvvzn) && gettype_vvvvvzn.constructor !== Array)
{
- var temp_vvvvvzl = gettype_vvvvvzl;
- var gettype_vvvvvzl = [];
- gettype_vvvvvzl.push(temp_vvvvvzl);
+ var temp_vvvvvzn = gettype_vvvvvzn;
+ var gettype_vvvvvzn = [];
+ gettype_vvvvvzn.push(temp_vvvvvzn);
}
- else if (!isSet(gettype_vvvvvzl))
+ else if (!isSet(gettype_vvvvvzn))
{
- var gettype_vvvvvzl = [];
+ var gettype_vvvvvzn = [];
}
- var gettype = gettype_vvvvvzl.some(gettype_vvvvvzl_SomeFunc);
+ var gettype = gettype_vvvvvzn.some(gettype_vvvvvzn_SomeFunc);
// set this function logic
@@ -497,54 +497,54 @@ function vvvvvzl(addcalculation_vvvvvzl,gettype_vvvvvzl)
}
}
-// the vvvvvzl Some function
-function addcalculation_vvvvvzl_SomeFunc(addcalculation_vvvvvzl)
+// the vvvvvzn Some function
+function addcalculation_vvvvvzn_SomeFunc(addcalculation_vvvvvzn)
{
// set the function logic
- if (addcalculation_vvvvvzl == 1)
+ if (addcalculation_vvvvvzn == 1)
{
return true;
}
return false;
}
-// the vvvvvzl Some function
-function gettype_vvvvvzl_SomeFunc(gettype_vvvvvzl)
+// the vvvvvzn Some function
+function gettype_vvvvvzn_SomeFunc(gettype_vvvvvzn)
{
// set the function logic
- if (gettype_vvvvvzl == 1 || gettype_vvvvvzl == 3)
+ if (gettype_vvvvvzn == 1 || gettype_vvvvvzn == 3)
{
return true;
}
return false;
}
-// the vvvvvzm function
-function vvvvvzm(addcalculation_vvvvvzm,gettype_vvvvvzm)
+// the vvvvvzo function
+function vvvvvzo(addcalculation_vvvvvzo,gettype_vvvvvzo)
{
- if (isSet(addcalculation_vvvvvzm) && addcalculation_vvvvvzm.constructor !== Array)
+ if (isSet(addcalculation_vvvvvzo) && addcalculation_vvvvvzo.constructor !== Array)
{
- var temp_vvvvvzm = addcalculation_vvvvvzm;
- var addcalculation_vvvvvzm = [];
- addcalculation_vvvvvzm.push(temp_vvvvvzm);
+ var temp_vvvvvzo = addcalculation_vvvvvzo;
+ var addcalculation_vvvvvzo = [];
+ addcalculation_vvvvvzo.push(temp_vvvvvzo);
}
- else if (!isSet(addcalculation_vvvvvzm))
+ else if (!isSet(addcalculation_vvvvvzo))
{
- var addcalculation_vvvvvzm = [];
+ var addcalculation_vvvvvzo = [];
}
- var addcalculation = addcalculation_vvvvvzm.some(addcalculation_vvvvvzm_SomeFunc);
+ var addcalculation = addcalculation_vvvvvzo.some(addcalculation_vvvvvzo_SomeFunc);
- if (isSet(gettype_vvvvvzm) && gettype_vvvvvzm.constructor !== Array)
+ if (isSet(gettype_vvvvvzo) && gettype_vvvvvzo.constructor !== Array)
{
- var temp_vvvvvzm = gettype_vvvvvzm;
- var gettype_vvvvvzm = [];
- gettype_vvvvvzm.push(temp_vvvvvzm);
+ var temp_vvvvvzo = gettype_vvvvvzo;
+ var gettype_vvvvvzo = [];
+ gettype_vvvvvzo.push(temp_vvvvvzo);
}
- else if (!isSet(gettype_vvvvvzm))
+ else if (!isSet(gettype_vvvvvzo))
{
- var gettype_vvvvvzm = [];
+ var gettype_vvvvvzo = [];
}
- var gettype = gettype_vvvvvzm.some(gettype_vvvvvzm_SomeFunc);
+ var gettype = gettype_vvvvvzo.some(gettype_vvvvvzo_SomeFunc);
// set this function logic
@@ -558,42 +558,42 @@ function vvvvvzm(addcalculation_vvvvvzm,gettype_vvvvvzm)
}
}
-// the vvvvvzm Some function
-function addcalculation_vvvvvzm_SomeFunc(addcalculation_vvvvvzm)
+// the vvvvvzo Some function
+function addcalculation_vvvvvzo_SomeFunc(addcalculation_vvvvvzo)
{
// set the function logic
- if (addcalculation_vvvvvzm == 1)
+ if (addcalculation_vvvvvzo == 1)
{
return true;
}
return false;
}
-// the vvvvvzm Some function
-function gettype_vvvvvzm_SomeFunc(gettype_vvvvvzm)
+// the vvvvvzo Some function
+function gettype_vvvvvzo_SomeFunc(gettype_vvvvvzo)
{
// set the function logic
- if (gettype_vvvvvzm == 2 || gettype_vvvvvzm == 4)
+ if (gettype_vvvvvzo == 2 || gettype_vvvvvzo == 4)
{
return true;
}
return false;
}
-// the vvvvvzp function
-function vvvvvzp(main_source_vvvvvzp)
+// the vvvvvzr function
+function vvvvvzr(main_source_vvvvvzr)
{
- if (isSet(main_source_vvvvvzp) && main_source_vvvvvzp.constructor !== Array)
+ if (isSet(main_source_vvvvvzr) && main_source_vvvvvzr.constructor !== Array)
{
- var temp_vvvvvzp = main_source_vvvvvzp;
- var main_source_vvvvvzp = [];
- main_source_vvvvvzp.push(temp_vvvvvzp);
+ var temp_vvvvvzr = main_source_vvvvvzr;
+ var main_source_vvvvvzr = [];
+ main_source_vvvvvzr.push(temp_vvvvvzr);
}
- else if (!isSet(main_source_vvvvvzp))
+ else if (!isSet(main_source_vvvvvzr))
{
- var main_source_vvvvvzp = [];
+ var main_source_vvvvvzr = [];
}
- var main_source = main_source_vvvvvzp.some(main_source_vvvvvzp_SomeFunc);
+ var main_source = main_source_vvvvvzr.some(main_source_vvvvvzr_SomeFunc);
// set this function logic
@@ -601,55 +601,55 @@ function vvvvvzp(main_source_vvvvvzp)
{
jQuery('#jform_php_custom_get-lbl').closest('.control-group').show();
// add required attribute to php_custom_get field
- if (jform_vvvvvzpvzg_required)
+ if (jform_vvvvvzrvzi_required)
{
updateFieldRequired('php_custom_get',0);
jQuery('#jform_php_custom_get').prop('required','required');
jQuery('#jform_php_custom_get').attr('aria-required',true);
jQuery('#jform_php_custom_get').addClass('required');
- jform_vvvvvzpvzg_required = false;
+ jform_vvvvvzrvzi_required = false;
}
}
else
{
jQuery('#jform_php_custom_get-lbl').closest('.control-group').hide();
// remove required attribute from php_custom_get field
- if (!jform_vvvvvzpvzg_required)
+ if (!jform_vvvvvzrvzi_required)
{
updateFieldRequired('php_custom_get',1);
jQuery('#jform_php_custom_get').removeAttr('required');
jQuery('#jform_php_custom_get').removeAttr('aria-required');
jQuery('#jform_php_custom_get').removeClass('required');
- jform_vvvvvzpvzg_required = true;
+ jform_vvvvvzrvzi_required = true;
}
}
}
-// the vvvvvzp Some function
-function main_source_vvvvvzp_SomeFunc(main_source_vvvvvzp)
+// the vvvvvzr Some function
+function main_source_vvvvvzr_SomeFunc(main_source_vvvvvzr)
{
// set the function logic
- if (main_source_vvvvvzp == 3)
+ if (main_source_vvvvvzr == 3)
{
return true;
}
return false;
}
-// the vvvvvzq function
-function vvvvvzq(main_source_vvvvvzq)
+// the vvvvvzs function
+function vvvvvzs(main_source_vvvvvzs)
{
- if (isSet(main_source_vvvvvzq) && main_source_vvvvvzq.constructor !== Array)
+ if (isSet(main_source_vvvvvzs) && main_source_vvvvvzs.constructor !== Array)
{
- var temp_vvvvvzq = main_source_vvvvvzq;
- var main_source_vvvvvzq = [];
- main_source_vvvvvzq.push(temp_vvvvvzq);
+ var temp_vvvvvzs = main_source_vvvvvzs;
+ var main_source_vvvvvzs = [];
+ main_source_vvvvvzs.push(temp_vvvvvzs);
}
- else if (!isSet(main_source_vvvvvzq))
+ else if (!isSet(main_source_vvvvvzs))
{
- var main_source_vvvvvzq = [];
+ var main_source_vvvvvzs = [];
}
- var main_source = main_source_vvvvvzq.some(main_source_vvvvvzq_SomeFunc);
+ var main_source = main_source_vvvvvzs.some(main_source_vvvvvzs_SomeFunc);
// set this function logic
@@ -675,43 +675,43 @@ function vvvvvzq(main_source_vvvvvzq)
}
}
-// the vvvvvzq Some function
-function main_source_vvvvvzq_SomeFunc(main_source_vvvvvzq)
+// the vvvvvzs Some function
+function main_source_vvvvvzs_SomeFunc(main_source_vvvvvzs)
{
// set the function logic
- if (main_source_vvvvvzq == 1 || main_source_vvvvvzq == 2)
+ if (main_source_vvvvvzs == 1 || main_source_vvvvvzs == 2)
{
return true;
}
return false;
}
-// the vvvvvzr function
-function vvvvvzr(add_php_before_getitem_vvvvvzr,gettype_vvvvvzr)
+// the vvvvvzt function
+function vvvvvzt(add_php_before_getitem_vvvvvzt,gettype_vvvvvzt)
{
- if (isSet(add_php_before_getitem_vvvvvzr) && add_php_before_getitem_vvvvvzr.constructor !== Array)
+ if (isSet(add_php_before_getitem_vvvvvzt) && add_php_before_getitem_vvvvvzt.constructor !== Array)
{
- var temp_vvvvvzr = add_php_before_getitem_vvvvvzr;
- var add_php_before_getitem_vvvvvzr = [];
- add_php_before_getitem_vvvvvzr.push(temp_vvvvvzr);
+ var temp_vvvvvzt = add_php_before_getitem_vvvvvzt;
+ var add_php_before_getitem_vvvvvzt = [];
+ add_php_before_getitem_vvvvvzt.push(temp_vvvvvzt);
}
- else if (!isSet(add_php_before_getitem_vvvvvzr))
+ else if (!isSet(add_php_before_getitem_vvvvvzt))
{
- var add_php_before_getitem_vvvvvzr = [];
+ var add_php_before_getitem_vvvvvzt = [];
}
- var add_php_before_getitem = add_php_before_getitem_vvvvvzr.some(add_php_before_getitem_vvvvvzr_SomeFunc);
+ var add_php_before_getitem = add_php_before_getitem_vvvvvzt.some(add_php_before_getitem_vvvvvzt_SomeFunc);
- if (isSet(gettype_vvvvvzr) && gettype_vvvvvzr.constructor !== Array)
+ if (isSet(gettype_vvvvvzt) && gettype_vvvvvzt.constructor !== Array)
{
- var temp_vvvvvzr = gettype_vvvvvzr;
- var gettype_vvvvvzr = [];
- gettype_vvvvvzr.push(temp_vvvvvzr);
+ var temp_vvvvvzt = gettype_vvvvvzt;
+ var gettype_vvvvvzt = [];
+ gettype_vvvvvzt.push(temp_vvvvvzt);
}
- else if (!isSet(gettype_vvvvvzr))
+ else if (!isSet(gettype_vvvvvzt))
{
- var gettype_vvvvvzr = [];
+ var gettype_vvvvvzt = [];
}
- var gettype = gettype_vvvvvzr.some(gettype_vvvvvzr_SomeFunc);
+ var gettype = gettype_vvvvvzt.some(gettype_vvvvvzt_SomeFunc);
// set this function logic
@@ -719,125 +719,46 @@ function vvvvvzr(add_php_before_getitem_vvvvvzr,gettype_vvvvvzr)
{
jQuery('#jform_php_before_getitem-lbl').closest('.control-group').show();
// add required attribute to php_before_getitem field
- if (jform_vvvvvzrvzh_required)
+ if (jform_vvvvvztvzj_required)
{
updateFieldRequired('php_before_getitem',0);
jQuery('#jform_php_before_getitem').prop('required','required');
jQuery('#jform_php_before_getitem').attr('aria-required',true);
jQuery('#jform_php_before_getitem').addClass('required');
- jform_vvvvvzrvzh_required = false;
+ jform_vvvvvztvzj_required = false;
}
}
else
{
jQuery('#jform_php_before_getitem-lbl').closest('.control-group').hide();
// remove required attribute from php_before_getitem field
- if (!jform_vvvvvzrvzh_required)
+ if (!jform_vvvvvztvzj_required)
{
updateFieldRequired('php_before_getitem',1);
jQuery('#jform_php_before_getitem').removeAttr('required');
jQuery('#jform_php_before_getitem').removeAttr('aria-required');
jQuery('#jform_php_before_getitem').removeClass('required');
- jform_vvvvvzrvzh_required = true;
+ jform_vvvvvztvzj_required = true;
}
}
}
-// the vvvvvzr Some function
-function add_php_before_getitem_vvvvvzr_SomeFunc(add_php_before_getitem_vvvvvzr)
+// the vvvvvzt Some function
+function add_php_before_getitem_vvvvvzt_SomeFunc(add_php_before_getitem_vvvvvzt)
{
// set the function logic
- if (add_php_before_getitem_vvvvvzr == 1)
+ if (add_php_before_getitem_vvvvvzt == 1)
{
return true;
}
return false;
}
-// the vvvvvzr Some function
-function gettype_vvvvvzr_SomeFunc(gettype_vvvvvzr)
+// the vvvvvzt Some function
+function gettype_vvvvvzt_SomeFunc(gettype_vvvvvzt)
{
// set the function logic
- if (gettype_vvvvvzr == 1 || gettype_vvvvvzr == 3)
- {
- return true;
- }
- return false;
-}
-
-// the vvvvvzs function
-function vvvvvzs(add_php_after_getitem_vvvvvzs,gettype_vvvvvzs)
-{
- if (isSet(add_php_after_getitem_vvvvvzs) && add_php_after_getitem_vvvvvzs.constructor !== Array)
- {
- var temp_vvvvvzs = add_php_after_getitem_vvvvvzs;
- var add_php_after_getitem_vvvvvzs = [];
- add_php_after_getitem_vvvvvzs.push(temp_vvvvvzs);
- }
- else if (!isSet(add_php_after_getitem_vvvvvzs))
- {
- var add_php_after_getitem_vvvvvzs = [];
- }
- var add_php_after_getitem = add_php_after_getitem_vvvvvzs.some(add_php_after_getitem_vvvvvzs_SomeFunc);
-
- if (isSet(gettype_vvvvvzs) && gettype_vvvvvzs.constructor !== Array)
- {
- var temp_vvvvvzs = gettype_vvvvvzs;
- var gettype_vvvvvzs = [];
- gettype_vvvvvzs.push(temp_vvvvvzs);
- }
- else if (!isSet(gettype_vvvvvzs))
- {
- var gettype_vvvvvzs = [];
- }
- var gettype = gettype_vvvvvzs.some(gettype_vvvvvzs_SomeFunc);
-
-
- // set this function logic
- if (add_php_after_getitem && gettype)
- {
- jQuery('#jform_php_after_getitem-lbl').closest('.control-group').show();
- // add required attribute to php_after_getitem field
- if (jform_vvvvvzsvzi_required)
- {
- updateFieldRequired('php_after_getitem',0);
- jQuery('#jform_php_after_getitem').prop('required','required');
- jQuery('#jform_php_after_getitem').attr('aria-required',true);
- jQuery('#jform_php_after_getitem').addClass('required');
- jform_vvvvvzsvzi_required = false;
- }
- }
- else
- {
- jQuery('#jform_php_after_getitem-lbl').closest('.control-group').hide();
- // remove required attribute from php_after_getitem field
- if (!jform_vvvvvzsvzi_required)
- {
- updateFieldRequired('php_after_getitem',1);
- jQuery('#jform_php_after_getitem').removeAttr('required');
- jQuery('#jform_php_after_getitem').removeAttr('aria-required');
- jQuery('#jform_php_after_getitem').removeClass('required');
- jform_vvvvvzsvzi_required = true;
- }
- }
-}
-
-// the vvvvvzs Some function
-function add_php_after_getitem_vvvvvzs_SomeFunc(add_php_after_getitem_vvvvvzs)
-{
- // set the function logic
- if (add_php_after_getitem_vvvvvzs == 1)
- {
- return true;
- }
- return false;
-}
-
-// the vvvvvzs Some function
-function gettype_vvvvvzs_SomeFunc(gettype_vvvvvzs)
-{
- // set the function logic
- if (gettype_vvvvvzs == 1 || gettype_vvvvvzs == 3)
+ if (gettype_vvvvvzt == 1 || gettype_vvvvvzt == 3)
{
return true;
}
@@ -845,8 +766,20 @@ function gettype_vvvvvzs_SomeFunc(gettype_vvvvvzs)
}
// the vvvvvzu function
-function vvvvvzu(gettype_vvvvvzu)
+function vvvvvzu(add_php_after_getitem_vvvvvzu,gettype_vvvvvzu)
{
+ if (isSet(add_php_after_getitem_vvvvvzu) && add_php_after_getitem_vvvvvzu.constructor !== Array)
+ {
+ var temp_vvvvvzu = add_php_after_getitem_vvvvvzu;
+ var add_php_after_getitem_vvvvvzu = [];
+ add_php_after_getitem_vvvvvzu.push(temp_vvvvvzu);
+ }
+ else if (!isSet(add_php_after_getitem_vvvvvzu))
+ {
+ var add_php_after_getitem_vvvvvzu = [];
+ }
+ var add_php_after_getitem = add_php_after_getitem_vvvvvzu.some(add_php_after_getitem_vvvvvzu_SomeFunc);
+
if (isSet(gettype_vvvvvzu) && gettype_vvvvvzu.constructor !== Array)
{
var temp_vvvvvzu = gettype_vvvvvzu;
@@ -861,54 +794,45 @@ function vvvvvzu(gettype_vvvvvzu)
// set this function logic
- if (gettype)
+ if (add_php_after_getitem && gettype)
{
- jQuery('#jform_add_php_after_getitem').closest('.control-group').show();
- // add required attribute to add_php_after_getitem field
- if (jform_vvvvvzuvzj_required)
- {
- updateFieldRequired('add_php_after_getitem',0);
- jQuery('#jform_add_php_after_getitem').prop('required','required');
- jQuery('#jform_add_php_after_getitem').attr('aria-required',true);
- jQuery('#jform_add_php_after_getitem').addClass('required');
- jform_vvvvvzuvzj_required = false;
- }
- jQuery('#jform_add_php_before_getitem').closest('.control-group').show();
- // add required attribute to add_php_before_getitem field
+ jQuery('#jform_php_after_getitem-lbl').closest('.control-group').show();
+ // add required attribute to php_after_getitem field
if (jform_vvvvvzuvzk_required)
{
- updateFieldRequired('add_php_before_getitem',0);
- jQuery('#jform_add_php_before_getitem').prop('required','required');
- jQuery('#jform_add_php_before_getitem').attr('aria-required',true);
- jQuery('#jform_add_php_before_getitem').addClass('required');
+ updateFieldRequired('php_after_getitem',0);
+ jQuery('#jform_php_after_getitem').prop('required','required');
+ jQuery('#jform_php_after_getitem').attr('aria-required',true);
+ jQuery('#jform_php_after_getitem').addClass('required');
jform_vvvvvzuvzk_required = false;
}
}
else
{
- jQuery('#jform_add_php_after_getitem').closest('.control-group').hide();
- // remove required attribute from add_php_after_getitem field
- if (!jform_vvvvvzuvzj_required)
- {
- updateFieldRequired('add_php_after_getitem',1);
- jQuery('#jform_add_php_after_getitem').removeAttr('required');
- jQuery('#jform_add_php_after_getitem').removeAttr('aria-required');
- jQuery('#jform_add_php_after_getitem').removeClass('required');
- jform_vvvvvzuvzj_required = true;
- }
- jQuery('#jform_add_php_before_getitem').closest('.control-group').hide();
- // remove required attribute from add_php_before_getitem field
+ jQuery('#jform_php_after_getitem-lbl').closest('.control-group').hide();
+ // remove required attribute from php_after_getitem field
if (!jform_vvvvvzuvzk_required)
{
- updateFieldRequired('add_php_before_getitem',1);
- jQuery('#jform_add_php_before_getitem').removeAttr('required');
- jQuery('#jform_add_php_before_getitem').removeAttr('aria-required');
- jQuery('#jform_add_php_before_getitem').removeClass('required');
+ updateFieldRequired('php_after_getitem',1);
+ jQuery('#jform_php_after_getitem').removeAttr('required');
+ jQuery('#jform_php_after_getitem').removeAttr('aria-required');
+ jQuery('#jform_php_after_getitem').removeClass('required');
jform_vvvvvzuvzk_required = true;
}
}
}
+// the vvvvvzu Some function
+function add_php_after_getitem_vvvvvzu_SomeFunc(add_php_after_getitem_vvvvvzu)
+{
+ // set the function logic
+ if (add_php_after_getitem_vvvvvzu == 1)
+ {
+ return true;
+ }
+ return false;
+}
+
// the vvvvvzu Some function
function gettype_vvvvvzu_SomeFunc(gettype_vvvvvzu)
{
@@ -920,100 +844,9 @@ function gettype_vvvvvzu_SomeFunc(gettype_vvvvvzu)
return false;
}
-// the vvvvvzv function
-function vvvvvzv(add_php_getlistquery_vvvvvzv,gettype_vvvvvzv)
-{
- if (isSet(add_php_getlistquery_vvvvvzv) && add_php_getlistquery_vvvvvzv.constructor !== Array)
- {
- var temp_vvvvvzv = add_php_getlistquery_vvvvvzv;
- var add_php_getlistquery_vvvvvzv = [];
- add_php_getlistquery_vvvvvzv.push(temp_vvvvvzv);
- }
- else if (!isSet(add_php_getlistquery_vvvvvzv))
- {
- var add_php_getlistquery_vvvvvzv = [];
- }
- var add_php_getlistquery = add_php_getlistquery_vvvvvzv.some(add_php_getlistquery_vvvvvzv_SomeFunc);
-
- if (isSet(gettype_vvvvvzv) && gettype_vvvvvzv.constructor !== Array)
- {
- var temp_vvvvvzv = gettype_vvvvvzv;
- var gettype_vvvvvzv = [];
- gettype_vvvvvzv.push(temp_vvvvvzv);
- }
- else if (!isSet(gettype_vvvvvzv))
- {
- var gettype_vvvvvzv = [];
- }
- var gettype = gettype_vvvvvzv.some(gettype_vvvvvzv_SomeFunc);
-
-
- // set this function logic
- if (add_php_getlistquery && gettype)
- {
- jQuery('#jform_php_getlistquery-lbl').closest('.control-group').show();
- // add required attribute to php_getlistquery field
- if (jform_vvvvvzvvzl_required)
- {
- updateFieldRequired('php_getlistquery',0);
- jQuery('#jform_php_getlistquery').prop('required','required');
- jQuery('#jform_php_getlistquery').attr('aria-required',true);
- jQuery('#jform_php_getlistquery').addClass('required');
- jform_vvvvvzvvzl_required = false;
- }
- }
- else
- {
- jQuery('#jform_php_getlistquery-lbl').closest('.control-group').hide();
- // remove required attribute from php_getlistquery field
- if (!jform_vvvvvzvvzl_required)
- {
- updateFieldRequired('php_getlistquery',1);
- jQuery('#jform_php_getlistquery').removeAttr('required');
- jQuery('#jform_php_getlistquery').removeAttr('aria-required');
- jQuery('#jform_php_getlistquery').removeClass('required');
- jform_vvvvvzvvzl_required = true;
- }
- }
-}
-
-// the vvvvvzv Some function
-function add_php_getlistquery_vvvvvzv_SomeFunc(add_php_getlistquery_vvvvvzv)
-{
- // set the function logic
- if (add_php_getlistquery_vvvvvzv == 1)
- {
- return true;
- }
- return false;
-}
-
-// the vvvvvzv Some function
-function gettype_vvvvvzv_SomeFunc(gettype_vvvvvzv)
-{
- // set the function logic
- if (gettype_vvvvvzv == 2 || gettype_vvvvvzv == 4)
- {
- return true;
- }
- return false;
-}
-
// the vvvvvzw function
-function vvvvvzw(add_php_before_getitems_vvvvvzw,gettype_vvvvvzw)
+function vvvvvzw(gettype_vvvvvzw)
{
- if (isSet(add_php_before_getitems_vvvvvzw) && add_php_before_getitems_vvvvvzw.constructor !== Array)
- {
- var temp_vvvvvzw = add_php_before_getitems_vvvvvzw;
- var add_php_before_getitems_vvvvvzw = [];
- add_php_before_getitems_vvvvvzw.push(temp_vvvvvzw);
- }
- else if (!isSet(add_php_before_getitems_vvvvvzw))
- {
- var add_php_before_getitems_vvvvvzw = [];
- }
- var add_php_before_getitems = add_php_before_getitems_vvvvvzw.some(add_php_before_getitems_vvvvvzw_SomeFunc);
-
if (isSet(gettype_vvvvvzw) && gettype_vvvvvzw.constructor !== Array)
{
var temp_vvvvvzw = gettype_vvvvvzw;
@@ -1028,50 +861,59 @@ function vvvvvzw(add_php_before_getitems_vvvvvzw,gettype_vvvvvzw)
// set this function logic
- if (add_php_before_getitems && gettype)
+ if (gettype)
{
- jQuery('#jform_php_before_getitems-lbl').closest('.control-group').show();
- // add required attribute to php_before_getitems field
+ jQuery('#jform_add_php_after_getitem').closest('.control-group').show();
+ // add required attribute to add_php_after_getitem field
+ if (jform_vvvvvzwvzl_required)
+ {
+ updateFieldRequired('add_php_after_getitem',0);
+ jQuery('#jform_add_php_after_getitem').prop('required','required');
+ jQuery('#jform_add_php_after_getitem').attr('aria-required',true);
+ jQuery('#jform_add_php_after_getitem').addClass('required');
+ jform_vvvvvzwvzl_required = false;
+ }
+ jQuery('#jform_add_php_before_getitem').closest('.control-group').show();
+ // add required attribute to add_php_before_getitem field
if (jform_vvvvvzwvzm_required)
{
- updateFieldRequired('php_before_getitems',0);
- jQuery('#jform_php_before_getitems').prop('required','required');
- jQuery('#jform_php_before_getitems').attr('aria-required',true);
- jQuery('#jform_php_before_getitems').addClass('required');
+ updateFieldRequired('add_php_before_getitem',0);
+ jQuery('#jform_add_php_before_getitem').prop('required','required');
+ jQuery('#jform_add_php_before_getitem').attr('aria-required',true);
+ jQuery('#jform_add_php_before_getitem').addClass('required');
jform_vvvvvzwvzm_required = false;
}
}
else
{
- jQuery('#jform_php_before_getitems-lbl').closest('.control-group').hide();
- // remove required attribute from php_before_getitems field
+ jQuery('#jform_add_php_after_getitem').closest('.control-group').hide();
+ // remove required attribute from add_php_after_getitem field
+ if (!jform_vvvvvzwvzl_required)
+ {
+ updateFieldRequired('add_php_after_getitem',1);
+ jQuery('#jform_add_php_after_getitem').removeAttr('required');
+ jQuery('#jform_add_php_after_getitem').removeAttr('aria-required');
+ jQuery('#jform_add_php_after_getitem').removeClass('required');
+ jform_vvvvvzwvzl_required = true;
+ }
+ jQuery('#jform_add_php_before_getitem').closest('.control-group').hide();
+ // remove required attribute from add_php_before_getitem field
if (!jform_vvvvvzwvzm_required)
{
- updateFieldRequired('php_before_getitems',1);
- jQuery('#jform_php_before_getitems').removeAttr('required');
- jQuery('#jform_php_before_getitems').removeAttr('aria-required');
- jQuery('#jform_php_before_getitems').removeClass('required');
+ updateFieldRequired('add_php_before_getitem',1);
+ jQuery('#jform_add_php_before_getitem').removeAttr('required');
+ jQuery('#jform_add_php_before_getitem').removeAttr('aria-required');
+ jQuery('#jform_add_php_before_getitem').removeClass('required');
jform_vvvvvzwvzm_required = true;
}
}
}
-// the vvvvvzw Some function
-function add_php_before_getitems_vvvvvzw_SomeFunc(add_php_before_getitems_vvvvvzw)
-{
- // set the function logic
- if (add_php_before_getitems_vvvvvzw == 1)
- {
- return true;
- }
- return false;
-}
-
// the vvvvvzw Some function
function gettype_vvvvvzw_SomeFunc(gettype_vvvvvzw)
{
// set the function logic
- if (gettype_vvvvvzw == 2 || gettype_vvvvvzw == 4)
+ if (gettype_vvvvvzw == 1 || gettype_vvvvvzw == 3)
{
return true;
}
@@ -1079,19 +921,19 @@ function gettype_vvvvvzw_SomeFunc(gettype_vvvvvzw)
}
// the vvvvvzx function
-function vvvvvzx(add_php_after_getitems_vvvvvzx,gettype_vvvvvzx)
+function vvvvvzx(add_php_getlistquery_vvvvvzx,gettype_vvvvvzx)
{
- if (isSet(add_php_after_getitems_vvvvvzx) && add_php_after_getitems_vvvvvzx.constructor !== Array)
+ if (isSet(add_php_getlistquery_vvvvvzx) && add_php_getlistquery_vvvvvzx.constructor !== Array)
{
- var temp_vvvvvzx = add_php_after_getitems_vvvvvzx;
- var add_php_after_getitems_vvvvvzx = [];
- add_php_after_getitems_vvvvvzx.push(temp_vvvvvzx);
+ var temp_vvvvvzx = add_php_getlistquery_vvvvvzx;
+ var add_php_getlistquery_vvvvvzx = [];
+ add_php_getlistquery_vvvvvzx.push(temp_vvvvvzx);
}
- else if (!isSet(add_php_after_getitems_vvvvvzx))
+ else if (!isSet(add_php_getlistquery_vvvvvzx))
{
- var add_php_after_getitems_vvvvvzx = [];
+ var add_php_getlistquery_vvvvvzx = [];
}
- var add_php_after_getitems = add_php_after_getitems_vvvvvzx.some(add_php_after_getitems_vvvvvzx_SomeFunc);
+ var add_php_getlistquery = add_php_getlistquery_vvvvvzx.some(add_php_getlistquery_vvvvvzx_SomeFunc);
if (isSet(gettype_vvvvvzx) && gettype_vvvvvzx.constructor !== Array)
{
@@ -1107,39 +949,39 @@ function vvvvvzx(add_php_after_getitems_vvvvvzx,gettype_vvvvvzx)
// set this function logic
- if (add_php_after_getitems && gettype)
+ if (add_php_getlistquery && gettype)
{
- jQuery('#jform_php_after_getitems-lbl').closest('.control-group').show();
- // add required attribute to php_after_getitems field
+ jQuery('#jform_php_getlistquery-lbl').closest('.control-group').show();
+ // add required attribute to php_getlistquery field
if (jform_vvvvvzxvzn_required)
{
- updateFieldRequired('php_after_getitems',0);
- jQuery('#jform_php_after_getitems').prop('required','required');
- jQuery('#jform_php_after_getitems').attr('aria-required',true);
- jQuery('#jform_php_after_getitems').addClass('required');
+ updateFieldRequired('php_getlistquery',0);
+ jQuery('#jform_php_getlistquery').prop('required','required');
+ jQuery('#jform_php_getlistquery').attr('aria-required',true);
+ jQuery('#jform_php_getlistquery').addClass('required');
jform_vvvvvzxvzn_required = false;
}
}
else
{
- jQuery('#jform_php_after_getitems-lbl').closest('.control-group').hide();
- // remove required attribute from php_after_getitems field
+ jQuery('#jform_php_getlistquery-lbl').closest('.control-group').hide();
+ // remove required attribute from php_getlistquery field
if (!jform_vvvvvzxvzn_required)
{
- updateFieldRequired('php_after_getitems',1);
- jQuery('#jform_php_after_getitems').removeAttr('required');
- jQuery('#jform_php_after_getitems').removeAttr('aria-required');
- jQuery('#jform_php_after_getitems').removeClass('required');
+ updateFieldRequired('php_getlistquery',1);
+ jQuery('#jform_php_getlistquery').removeAttr('required');
+ jQuery('#jform_php_getlistquery').removeAttr('aria-required');
+ jQuery('#jform_php_getlistquery').removeClass('required');
jform_vvvvvzxvzn_required = true;
}
}
}
// the vvvvvzx Some function
-function add_php_after_getitems_vvvvvzx_SomeFunc(add_php_after_getitems_vvvvvzx)
+function add_php_getlistquery_vvvvvzx_SomeFunc(add_php_getlistquery_vvvvvzx)
{
// set the function logic
- if (add_php_after_getitems_vvvvvzx == 1)
+ if (add_php_getlistquery_vvvvvzx == 1)
{
return true;
}
@@ -1157,9 +999,100 @@ function gettype_vvvvvzx_SomeFunc(gettype_vvvvvzx)
return false;
}
-// the vvvvvzz function
-function vvvvvzz(gettype_vvvvvzz)
+// the vvvvvzy function
+function vvvvvzy(add_php_before_getitems_vvvvvzy,gettype_vvvvvzy)
{
+ if (isSet(add_php_before_getitems_vvvvvzy) && add_php_before_getitems_vvvvvzy.constructor !== Array)
+ {
+ var temp_vvvvvzy = add_php_before_getitems_vvvvvzy;
+ var add_php_before_getitems_vvvvvzy = [];
+ add_php_before_getitems_vvvvvzy.push(temp_vvvvvzy);
+ }
+ else if (!isSet(add_php_before_getitems_vvvvvzy))
+ {
+ var add_php_before_getitems_vvvvvzy = [];
+ }
+ var add_php_before_getitems = add_php_before_getitems_vvvvvzy.some(add_php_before_getitems_vvvvvzy_SomeFunc);
+
+ if (isSet(gettype_vvvvvzy) && gettype_vvvvvzy.constructor !== Array)
+ {
+ var temp_vvvvvzy = gettype_vvvvvzy;
+ var gettype_vvvvvzy = [];
+ gettype_vvvvvzy.push(temp_vvvvvzy);
+ }
+ else if (!isSet(gettype_vvvvvzy))
+ {
+ var gettype_vvvvvzy = [];
+ }
+ var gettype = gettype_vvvvvzy.some(gettype_vvvvvzy_SomeFunc);
+
+
+ // set this function logic
+ if (add_php_before_getitems && gettype)
+ {
+ jQuery('#jform_php_before_getitems-lbl').closest('.control-group').show();
+ // add required attribute to php_before_getitems field
+ if (jform_vvvvvzyvzo_required)
+ {
+ updateFieldRequired('php_before_getitems',0);
+ jQuery('#jform_php_before_getitems').prop('required','required');
+ jQuery('#jform_php_before_getitems').attr('aria-required',true);
+ jQuery('#jform_php_before_getitems').addClass('required');
+ jform_vvvvvzyvzo_required = false;
+ }
+ }
+ else
+ {
+ jQuery('#jform_php_before_getitems-lbl').closest('.control-group').hide();
+ // remove required attribute from php_before_getitems field
+ if (!jform_vvvvvzyvzo_required)
+ {
+ updateFieldRequired('php_before_getitems',1);
+ jQuery('#jform_php_before_getitems').removeAttr('required');
+ jQuery('#jform_php_before_getitems').removeAttr('aria-required');
+ jQuery('#jform_php_before_getitems').removeClass('required');
+ jform_vvvvvzyvzo_required = true;
+ }
+ }
+}
+
+// the vvvvvzy Some function
+function add_php_before_getitems_vvvvvzy_SomeFunc(add_php_before_getitems_vvvvvzy)
+{
+ // set the function logic
+ if (add_php_before_getitems_vvvvvzy == 1)
+ {
+ return true;
+ }
+ return false;
+}
+
+// the vvvvvzy Some function
+function gettype_vvvvvzy_SomeFunc(gettype_vvvvvzy)
+{
+ // set the function logic
+ if (gettype_vvvvvzy == 2 || gettype_vvvvvzy == 4)
+ {
+ return true;
+ }
+ return false;
+}
+
+// the vvvvvzz function
+function vvvvvzz(add_php_after_getitems_vvvvvzz,gettype_vvvvvzz)
+{
+ if (isSet(add_php_after_getitems_vvvvvzz) && add_php_after_getitems_vvvvvzz.constructor !== Array)
+ {
+ var temp_vvvvvzz = add_php_after_getitems_vvvvvzz;
+ var add_php_after_getitems_vvvvvzz = [];
+ add_php_after_getitems_vvvvvzz.push(temp_vvvvvzz);
+ }
+ else if (!isSet(add_php_after_getitems_vvvvvzz))
+ {
+ var add_php_after_getitems_vvvvvzz = [];
+ }
+ var add_php_after_getitems = add_php_after_getitems_vvvvvzz.some(add_php_after_getitems_vvvvvzz_SomeFunc);
+
if (isSet(gettype_vvvvvzz) && gettype_vvvvvzz.constructor !== Array)
{
var temp_vvvvvzz = gettype_vvvvvzz;
@@ -1174,74 +1107,45 @@ function vvvvvzz(gettype_vvvvvzz)
// set this function logic
- if (gettype)
+ if (add_php_after_getitems && gettype)
{
- jQuery('#jform_add_php_after_getitems').closest('.control-group').show();
- // add required attribute to add_php_after_getitems field
- if (jform_vvvvvzzvzo_required)
- {
- updateFieldRequired('add_php_after_getitems',0);
- jQuery('#jform_add_php_after_getitems').prop('required','required');
- jQuery('#jform_add_php_after_getitems').attr('aria-required',true);
- jQuery('#jform_add_php_after_getitems').addClass('required');
- jform_vvvvvzzvzo_required = false;
- }
- jQuery('#jform_add_php_before_getitems').closest('.control-group').show();
- // add required attribute to add_php_before_getitems field
+ jQuery('#jform_php_after_getitems-lbl').closest('.control-group').show();
+ // add required attribute to php_after_getitems field
if (jform_vvvvvzzvzp_required)
{
- updateFieldRequired('add_php_before_getitems',0);
- jQuery('#jform_add_php_before_getitems').prop('required','required');
- jQuery('#jform_add_php_before_getitems').attr('aria-required',true);
- jQuery('#jform_add_php_before_getitems').addClass('required');
+ updateFieldRequired('php_after_getitems',0);
+ jQuery('#jform_php_after_getitems').prop('required','required');
+ jQuery('#jform_php_after_getitems').attr('aria-required',true);
+ jQuery('#jform_php_after_getitems').addClass('required');
jform_vvvvvzzvzp_required = false;
}
- jQuery('#jform_add_php_getlistquery').closest('.control-group').show();
- // add required attribute to add_php_getlistquery field
- if (jform_vvvvvzzvzq_required)
- {
- updateFieldRequired('add_php_getlistquery',0);
- jQuery('#jform_add_php_getlistquery').prop('required','required');
- jQuery('#jform_add_php_getlistquery').attr('aria-required',true);
- jQuery('#jform_add_php_getlistquery').addClass('required');
- jform_vvvvvzzvzq_required = false;
- }
}
else
{
- jQuery('#jform_add_php_after_getitems').closest('.control-group').hide();
- // remove required attribute from add_php_after_getitems field
- if (!jform_vvvvvzzvzo_required)
- {
- updateFieldRequired('add_php_after_getitems',1);
- jQuery('#jform_add_php_after_getitems').removeAttr('required');
- jQuery('#jform_add_php_after_getitems').removeAttr('aria-required');
- jQuery('#jform_add_php_after_getitems').removeClass('required');
- jform_vvvvvzzvzo_required = true;
- }
- jQuery('#jform_add_php_before_getitems').closest('.control-group').hide();
- // remove required attribute from add_php_before_getitems field
+ jQuery('#jform_php_after_getitems-lbl').closest('.control-group').hide();
+ // remove required attribute from php_after_getitems field
if (!jform_vvvvvzzvzp_required)
{
- updateFieldRequired('add_php_before_getitems',1);
- jQuery('#jform_add_php_before_getitems').removeAttr('required');
- jQuery('#jform_add_php_before_getitems').removeAttr('aria-required');
- jQuery('#jform_add_php_before_getitems').removeClass('required');
+ updateFieldRequired('php_after_getitems',1);
+ jQuery('#jform_php_after_getitems').removeAttr('required');
+ jQuery('#jform_php_after_getitems').removeAttr('aria-required');
+ jQuery('#jform_php_after_getitems').removeClass('required');
jform_vvvvvzzvzp_required = true;
}
- jQuery('#jform_add_php_getlistquery').closest('.control-group').hide();
- // remove required attribute from add_php_getlistquery field
- if (!jform_vvvvvzzvzq_required)
- {
- updateFieldRequired('add_php_getlistquery',1);
- jQuery('#jform_add_php_getlistquery').removeAttr('required');
- jQuery('#jform_add_php_getlistquery').removeAttr('aria-required');
- jQuery('#jform_add_php_getlistquery').removeClass('required');
- jform_vvvvvzzvzq_required = true;
- }
}
}
+// the vvvvvzz Some function
+function add_php_after_getitems_vvvvvzz_SomeFunc(add_php_after_getitems_vvvvvzz)
+{
+ // set the function logic
+ if (add_php_after_getitems_vvvvvzz == 1)
+ {
+ return true;
+ }
+ return false;
+}
+
// the vvvvvzz Some function
function gettype_vvvvvzz_SomeFunc(gettype_vvvvvzz)
{
@@ -1253,62 +1157,6 @@ function gettype_vvvvvzz_SomeFunc(gettype_vvvvvzz)
return false;
}
-// the vvvvwaa function
-function vvvvwaa(gettype_vvvvwaa)
-{
- if (isSet(gettype_vvvvwaa) && gettype_vvvvwaa.constructor !== Array)
- {
- var temp_vvvvwaa = gettype_vvvvwaa;
- var gettype_vvvvwaa = [];
- gettype_vvvvwaa.push(temp_vvvvwaa);
- }
- else if (!isSet(gettype_vvvvwaa))
- {
- var gettype_vvvvwaa = [];
- }
- var gettype = gettype_vvvvwaa.some(gettype_vvvvwaa_SomeFunc);
-
-
- // set this function logic
- if (gettype)
- {
- jQuery('#jform_pagination').closest('.control-group').show();
- // add required attribute to pagination field
- if (jform_vvvvwaavzr_required)
- {
- updateFieldRequired('pagination',0);
- jQuery('#jform_pagination').prop('required','required');
- jQuery('#jform_pagination').attr('aria-required',true);
- jQuery('#jform_pagination').addClass('required');
- jform_vvvvwaavzr_required = false;
- }
- }
- else
- {
- jQuery('#jform_pagination').closest('.control-group').hide();
- // remove required attribute from pagination field
- if (!jform_vvvvwaavzr_required)
- {
- updateFieldRequired('pagination',1);
- jQuery('#jform_pagination').removeAttr('required');
- jQuery('#jform_pagination').removeAttr('aria-required');
- jQuery('#jform_pagination').removeClass('required');
- jform_vvvvwaavzr_required = true;
- }
- }
-}
-
-// the vvvvwaa Some function
-function gettype_vvvvwaa_SomeFunc(gettype_vvvvwaa)
-{
- // set the function logic
- if (gettype_vvvvwaa == 2)
- {
- return true;
- }
- return false;
-}
-
// the vvvvwab function
function vvvvwab(gettype_vvvvwab)
{
@@ -1328,27 +1176,67 @@ function vvvvwab(gettype_vvvvwab)
// set this function logic
if (gettype)
{
- jQuery('#jform_add_php_router_parse').closest('.control-group').show();
- // add required attribute to add_php_router_parse field
+ jQuery('#jform_add_php_after_getitems').closest('.control-group').show();
+ // add required attribute to add_php_after_getitems field
+ if (jform_vvvvwabvzq_required)
+ {
+ updateFieldRequired('add_php_after_getitems',0);
+ jQuery('#jform_add_php_after_getitems').prop('required','required');
+ jQuery('#jform_add_php_after_getitems').attr('aria-required',true);
+ jQuery('#jform_add_php_after_getitems').addClass('required');
+ jform_vvvvwabvzq_required = false;
+ }
+ jQuery('#jform_add_php_before_getitems').closest('.control-group').show();
+ // add required attribute to add_php_before_getitems field
+ if (jform_vvvvwabvzr_required)
+ {
+ updateFieldRequired('add_php_before_getitems',0);
+ jQuery('#jform_add_php_before_getitems').prop('required','required');
+ jQuery('#jform_add_php_before_getitems').attr('aria-required',true);
+ jQuery('#jform_add_php_before_getitems').addClass('required');
+ jform_vvvvwabvzr_required = false;
+ }
+ jQuery('#jform_add_php_getlistquery').closest('.control-group').show();
+ // add required attribute to add_php_getlistquery field
if (jform_vvvvwabvzs_required)
{
- updateFieldRequired('add_php_router_parse',0);
- jQuery('#jform_add_php_router_parse').prop('required','required');
- jQuery('#jform_add_php_router_parse').attr('aria-required',true);
- jQuery('#jform_add_php_router_parse').addClass('required');
+ updateFieldRequired('add_php_getlistquery',0);
+ jQuery('#jform_add_php_getlistquery').prop('required','required');
+ jQuery('#jform_add_php_getlistquery').attr('aria-required',true);
+ jQuery('#jform_add_php_getlistquery').addClass('required');
jform_vvvvwabvzs_required = false;
}
}
else
{
- jQuery('#jform_add_php_router_parse').closest('.control-group').hide();
- // remove required attribute from add_php_router_parse field
+ jQuery('#jform_add_php_after_getitems').closest('.control-group').hide();
+ // remove required attribute from add_php_after_getitems field
+ if (!jform_vvvvwabvzq_required)
+ {
+ updateFieldRequired('add_php_after_getitems',1);
+ jQuery('#jform_add_php_after_getitems').removeAttr('required');
+ jQuery('#jform_add_php_after_getitems').removeAttr('aria-required');
+ jQuery('#jform_add_php_after_getitems').removeClass('required');
+ jform_vvvvwabvzq_required = true;
+ }
+ jQuery('#jform_add_php_before_getitems').closest('.control-group').hide();
+ // remove required attribute from add_php_before_getitems field
+ if (!jform_vvvvwabvzr_required)
+ {
+ updateFieldRequired('add_php_before_getitems',1);
+ jQuery('#jform_add_php_before_getitems').removeAttr('required');
+ jQuery('#jform_add_php_before_getitems').removeAttr('aria-required');
+ jQuery('#jform_add_php_before_getitems').removeClass('required');
+ jform_vvvvwabvzr_required = true;
+ }
+ jQuery('#jform_add_php_getlistquery').closest('.control-group').hide();
+ // remove required attribute from add_php_getlistquery field
if (!jform_vvvvwabvzs_required)
{
- updateFieldRequired('add_php_router_parse',1);
- jQuery('#jform_add_php_router_parse').removeAttr('required');
- jQuery('#jform_add_php_router_parse').removeAttr('aria-required');
- jQuery('#jform_add_php_router_parse').removeClass('required');
+ updateFieldRequired('add_php_getlistquery',1);
+ jQuery('#jform_add_php_getlistquery').removeAttr('required');
+ jQuery('#jform_add_php_getlistquery').removeAttr('aria-required');
+ jQuery('#jform_add_php_getlistquery').removeClass('required');
jform_vvvvwabvzs_required = true;
}
}
@@ -1358,7 +1246,7 @@ function vvvvwab(gettype_vvvvwab)
function gettype_vvvvwab_SomeFunc(gettype_vvvvwab)
{
// set the function logic
- if (gettype_vvvvwab == 1 || gettype_vvvvwab == 2)
+ if (gettype_vvvvwab == 2 || gettype_vvvvwab == 4)
{
return true;
}
@@ -1366,7 +1254,7 @@ function gettype_vvvvwab_SomeFunc(gettype_vvvvwab)
}
// the vvvvwac function
-function vvvvwac(gettype_vvvvwac,add_php_router_parse_vvvvwac)
+function vvvvwac(gettype_vvvvwac)
{
if (isSet(gettype_vvvvwac) && gettype_vvvvwac.constructor !== Array)
{
@@ -1380,43 +1268,31 @@ function vvvvwac(gettype_vvvvwac,add_php_router_parse_vvvvwac)
}
var gettype = gettype_vvvvwac.some(gettype_vvvvwac_SomeFunc);
- if (isSet(add_php_router_parse_vvvvwac) && add_php_router_parse_vvvvwac.constructor !== Array)
- {
- var temp_vvvvwac = add_php_router_parse_vvvvwac;
- var add_php_router_parse_vvvvwac = [];
- add_php_router_parse_vvvvwac.push(temp_vvvvwac);
- }
- else if (!isSet(add_php_router_parse_vvvvwac))
- {
- var add_php_router_parse_vvvvwac = [];
- }
- var add_php_router_parse = add_php_router_parse_vvvvwac.some(add_php_router_parse_vvvvwac_SomeFunc);
-
// set this function logic
- if (gettype && add_php_router_parse)
+ if (gettype)
{
- jQuery('#jform_php_router_parse').closest('.control-group').show();
- // add required attribute to php_router_parse field
+ jQuery('#jform_pagination').closest('.control-group').show();
+ // add required attribute to pagination field
if (jform_vvvvwacvzt_required)
{
- updateFieldRequired('php_router_parse',0);
- jQuery('#jform_php_router_parse').prop('required','required');
- jQuery('#jform_php_router_parse').attr('aria-required',true);
- jQuery('#jform_php_router_parse').addClass('required');
+ updateFieldRequired('pagination',0);
+ jQuery('#jform_pagination').prop('required','required');
+ jQuery('#jform_pagination').attr('aria-required',true);
+ jQuery('#jform_pagination').addClass('required');
jform_vvvvwacvzt_required = false;
}
}
else
{
- jQuery('#jform_php_router_parse').closest('.control-group').hide();
- // remove required attribute from php_router_parse field
+ jQuery('#jform_pagination').closest('.control-group').hide();
+ // remove required attribute from pagination field
if (!jform_vvvvwacvzt_required)
{
- updateFieldRequired('php_router_parse',1);
- jQuery('#jform_php_router_parse').removeAttr('required');
- jQuery('#jform_php_router_parse').removeAttr('aria-required');
- jQuery('#jform_php_router_parse').removeClass('required');
+ updateFieldRequired('pagination',1);
+ jQuery('#jform_pagination').removeAttr('required');
+ jQuery('#jform_pagination').removeAttr('aria-required');
+ jQuery('#jform_pagination').removeClass('required');
jform_vvvvwacvzt_required = true;
}
}
@@ -1426,18 +1302,63 @@ function vvvvwac(gettype_vvvvwac,add_php_router_parse_vvvvwac)
function gettype_vvvvwac_SomeFunc(gettype_vvvvwac)
{
// set the function logic
- if (gettype_vvvvwac == 1 || gettype_vvvvwac == 2)
+ if (gettype_vvvvwac == 2)
{
return true;
}
return false;
}
-// the vvvvwac Some function
-function add_php_router_parse_vvvvwac_SomeFunc(add_php_router_parse_vvvvwac)
+// the vvvvwad function
+function vvvvwad(gettype_vvvvwad)
+{
+ if (isSet(gettype_vvvvwad) && gettype_vvvvwad.constructor !== Array)
+ {
+ var temp_vvvvwad = gettype_vvvvwad;
+ var gettype_vvvvwad = [];
+ gettype_vvvvwad.push(temp_vvvvwad);
+ }
+ else if (!isSet(gettype_vvvvwad))
+ {
+ var gettype_vvvvwad = [];
+ }
+ var gettype = gettype_vvvvwad.some(gettype_vvvvwad_SomeFunc);
+
+
+ // set this function logic
+ if (gettype)
+ {
+ jQuery('#jform_add_php_router_parse').closest('.control-group').show();
+ // add required attribute to add_php_router_parse field
+ if (jform_vvvvwadvzu_required)
+ {
+ updateFieldRequired('add_php_router_parse',0);
+ jQuery('#jform_add_php_router_parse').prop('required','required');
+ jQuery('#jform_add_php_router_parse').attr('aria-required',true);
+ jQuery('#jform_add_php_router_parse').addClass('required');
+ jform_vvvvwadvzu_required = false;
+ }
+ }
+ else
+ {
+ jQuery('#jform_add_php_router_parse').closest('.control-group').hide();
+ // remove required attribute from add_php_router_parse field
+ if (!jform_vvvvwadvzu_required)
+ {
+ updateFieldRequired('add_php_router_parse',1);
+ jQuery('#jform_add_php_router_parse').removeAttr('required');
+ jQuery('#jform_add_php_router_parse').removeAttr('aria-required');
+ jQuery('#jform_add_php_router_parse').removeClass('required');
+ jform_vvvvwadvzu_required = true;
+ }
+ }
+}
+
+// the vvvvwad Some function
+function gettype_vvvvwad_SomeFunc(gettype_vvvvwad)
{
// set the function logic
- if (add_php_router_parse_vvvvwac == 1)
+ if (gettype_vvvvwad == 1 || gettype_vvvvwad == 2)
{
return true;
}
@@ -1445,7 +1366,7 @@ function add_php_router_parse_vvvvwac_SomeFunc(add_php_router_parse_vvvvwac)
}
// the vvvvwae function
-function vvvvwae(gettype_vvvvwae)
+function vvvvwae(gettype_vvvvwae,add_php_router_parse_vvvvwae)
{
if (isSet(gettype_vvvvwae) && gettype_vvvvwae.constructor !== Array)
{
@@ -1459,6 +1380,85 @@ function vvvvwae(gettype_vvvvwae)
}
var gettype = gettype_vvvvwae.some(gettype_vvvvwae_SomeFunc);
+ if (isSet(add_php_router_parse_vvvvwae) && add_php_router_parse_vvvvwae.constructor !== Array)
+ {
+ var temp_vvvvwae = add_php_router_parse_vvvvwae;
+ var add_php_router_parse_vvvvwae = [];
+ add_php_router_parse_vvvvwae.push(temp_vvvvwae);
+ }
+ else if (!isSet(add_php_router_parse_vvvvwae))
+ {
+ var add_php_router_parse_vvvvwae = [];
+ }
+ var add_php_router_parse = add_php_router_parse_vvvvwae.some(add_php_router_parse_vvvvwae_SomeFunc);
+
+
+ // set this function logic
+ if (gettype && add_php_router_parse)
+ {
+ jQuery('#jform_php_router_parse').closest('.control-group').show();
+ // add required attribute to php_router_parse field
+ if (jform_vvvvwaevzv_required)
+ {
+ updateFieldRequired('php_router_parse',0);
+ jQuery('#jform_php_router_parse').prop('required','required');
+ jQuery('#jform_php_router_parse').attr('aria-required',true);
+ jQuery('#jform_php_router_parse').addClass('required');
+ jform_vvvvwaevzv_required = false;
+ }
+ }
+ else
+ {
+ jQuery('#jform_php_router_parse').closest('.control-group').hide();
+ // remove required attribute from php_router_parse field
+ if (!jform_vvvvwaevzv_required)
+ {
+ updateFieldRequired('php_router_parse',1);
+ jQuery('#jform_php_router_parse').removeAttr('required');
+ jQuery('#jform_php_router_parse').removeAttr('aria-required');
+ jQuery('#jform_php_router_parse').removeClass('required');
+ jform_vvvvwaevzv_required = true;
+ }
+ }
+}
+
+// the vvvvwae Some function
+function gettype_vvvvwae_SomeFunc(gettype_vvvvwae)
+{
+ // set the function logic
+ if (gettype_vvvvwae == 1 || gettype_vvvvwae == 2)
+ {
+ return true;
+ }
+ return false;
+}
+
+// the vvvvwae Some function
+function add_php_router_parse_vvvvwae_SomeFunc(add_php_router_parse_vvvvwae)
+{
+ // set the function logic
+ if (add_php_router_parse_vvvvwae == 1)
+ {
+ return true;
+ }
+ return false;
+}
+
+// the vvvvwag function
+function vvvvwag(gettype_vvvvwag)
+{
+ if (isSet(gettype_vvvvwag) && gettype_vvvvwag.constructor !== Array)
+ {
+ var temp_vvvvwag = gettype_vvvvwag;
+ var gettype_vvvvwag = [];
+ gettype_vvvvwag.push(temp_vvvvwag);
+ }
+ else if (!isSet(gettype_vvvvwag))
+ {
+ var gettype_vvvvwag = [];
+ }
+ var gettype = gettype_vvvvwag.some(gettype_vvvvwag_SomeFunc);
+
// set this function logic
if (gettype)
@@ -1471,11 +1471,11 @@ function vvvvwae(gettype_vvvvwae)
}
}
-// the vvvvwae Some function
-function gettype_vvvvwae_SomeFunc(gettype_vvvvwae)
+// the vvvvwag Some function
+function gettype_vvvvwag_SomeFunc(gettype_vvvvwag)
{
// set the function logic
- if (gettype_vvvvwae == 1)
+ if (gettype_vvvvwag == 1)
{
return true;
}
@@ -1744,7 +1744,7 @@ function getEditCustomCodeButtons(){
getEditCustomCodeButtons_server(id).done(function(result) {
if(isObject(result)){
jQuery.each(result, function( field, buttons ) {
- jQuery('').insertBefore(".control-wrapper-"+ field);
+ jQuery('').insertBefore(".control-wrapper-"+ field);
jQuery.each(buttons, function( name, button ) {
jQuery(".control-customcode-buttons-"+field).append(button);
});
diff --git a/admin/models/forms/dynamic_get.xml b/admin/models/forms/dynamic_get.xml
index eb47ec68f..3edb290cd 100644
--- a/admin/models/forms/dynamic_get.xml
+++ b/admin/models/forms/dynamic_get.xml
@@ -331,7 +331,7 @@
description="COM_COMPONENTBUILDER_DYNAMIC_GET_VIEW_TABLE_DESCRIPTION"
multiple="false"
default=""
- required="false"
+ required="true"
button="false"
/>
@@ -343,7 +343,7 @@
class="list_class fieldMedium"
multiple="false"
filter="INT"
- required="false"
+ required="true"
default="1">
@@ -359,7 +359,7 @@
class="list_class fieldSmall"
multiple="false"
filter="WORD"
- required="false"
+ required="true"
default="b">
@@ -473,7 +473,7 @@
class="list_class fieldMedium"
multiple="false"
filter="INT"
- required="false"
+ required="true"
default="1">
@@ -498,7 +498,7 @@
class="text_area fieldMedium"
readonly="false"
disabled="false"
- required="false"
+ required="true"
filter="CMD"
message="COM_COMPONENTBUILDER_DYNAMIC_GET_ON_FIELD_MESSAGE"
hint="COM_COMPONENTBUILDER_DYNAMIC_GET_ON_FIELD_HINT"
@@ -512,7 +512,7 @@
class="list_class fieldMedium"
multiple="false"
filter="INT"
- required="false"
+ required="true"
default="0">
@@ -549,7 +549,7 @@
class="text_area fieldMedium"
readonly="false"
disabled="false"
- required="false"
+ required="true"
filter="CMD"
message="COM_COMPONENTBUILDER_DYNAMIC_GET_JOIN_FIELD_MESSAGE"
hint="COM_COMPONENTBUILDER_DYNAMIC_GET_JOIN_FIELD_HINT"
@@ -565,7 +565,7 @@
class="text_area span12"
filter="HTML"
hint="COM_COMPONENTBUILDER_DYNAMIC_GET_SELECTION_HINT"
- required="false"
+ required="true"
/>
@@ -601,7 +601,7 @@
description="COM_COMPONENTBUILDER_DYNAMIC_GET_DB_TABLE_DESCRIPTION"
class="list_class"
multiple="false"
- required="false"
+ required="true"
button="false"
/>
@@ -613,7 +613,7 @@
class="list_class fieldMedium"
multiple="false"
filter="INT"
- required="false"
+ required="true"
default="1">
@@ -629,7 +629,7 @@
class="list_class fieldSmall"
multiple="false"
filter="WORD"
- required="false"
+ required="true"
default="b">
@@ -743,7 +743,7 @@
class="list_class fieldMedium"
multiple="false"
filter="INT"
- required="false"
+ required="true"
default="1">
@@ -768,7 +768,7 @@
class="text_area fieldMedium"
readonly="false"
disabled="false"
- required="false"
+ required="true"
filter="CMD"
message="COM_COMPONENTBUILDER_DYNAMIC_GET_ON_FIELD_MESSAGE"
hint="COM_COMPONENTBUILDER_DYNAMIC_GET_ON_FIELD_HINT"
@@ -782,7 +782,7 @@
class="list_class fieldMedium"
multiple="false"
filter="INT"
- required="false"
+ required="true"
default="0">
@@ -819,7 +819,7 @@
class="text_area fieldMedium"
readonly="false"
disabled="false"
- required="false"
+ required="true"
filter="CMD"
message="COM_COMPONENTBUILDER_DYNAMIC_GET_JOIN_FIELD_MESSAGE"
hint="COM_COMPONENTBUILDER_DYNAMIC_GET_JOIN_FIELD_HINT"
@@ -835,7 +835,7 @@
class="text_area span12"
filter="HTML"
hint="COM_COMPONENTBUILDER_DYNAMIC_GET_SELECTION_HINT"
- required="false"
+ required="true"
/>
@@ -977,7 +977,7 @@
class="list_class"
multiple="false"
filter="INT"
- required="false"
+ required="true"
default="1">
@@ -1014,7 +1014,7 @@
class="text_area"
readonly="false"
disabled="false"
- required="false"
+ required="true"
filter="STRING"
message="COM_COMPONENTBUILDER_DYNAMIC_GET_STATE_KEY_MESSAGE"
hint="COM_COMPONENTBUILDER_DYNAMIC_GET_STATE_KEY_HINT"
@@ -1028,7 +1028,7 @@
class="list_class fieldMedium"
multiple="false"
filter="INT"
- required="false"
+ required="true"
default="0">
@@ -1065,7 +1065,7 @@
class="text_area"
readonly="false"
disabled="false"
- required="false"
+ required="true"
filter="CMD"
message="COM_COMPONENTBUILDER_DYNAMIC_GET_TABLE_KEY_MESSAGE"
hint="COM_COMPONENTBUILDER_DYNAMIC_GET_TABLE_KEY_HINT"
@@ -1110,7 +1110,7 @@
class="text_area"
readonly="false"
disabled="false"
- required="false"
+ required="true"
filter="CMD"
message="COM_COMPONENTBUILDER_DYNAMIC_GET_TABLE_KEY_MESSAGE"
hint="COM_COMPONENTBUILDER_DYNAMIC_GET_TABLE_KEY_HINT"
@@ -1124,7 +1124,7 @@
class="list_class fieldMedium"
multiple="false"
filter="INT"
- required="false"
+ required="true"
default="0">
@@ -1161,8 +1161,8 @@
class="text_area"
readonly="false"
disabled="false"
- required="false"
- filter="CMD"
+ required="true"
+ filter="STRING"
message="COM_COMPONENTBUILDER_DYNAMIC_GET_VALUE_KEY_MESSAGE"
hint="COM_COMPONENTBUILDER_DYNAMIC_GET_VALUE_KEY_HINT"
/>
@@ -1202,7 +1202,7 @@
class="text_area"
readonly="false"
disabled="false"
- required="false"
+ required="true"
filter="CMD"
message="COM_COMPONENTBUILDER_DYNAMIC_GET_TABLE_KEY_MESSAGE"
hint="COM_COMPONENTBUILDER_DYNAMIC_GET_TABLE_KEY_HINT"
@@ -1215,7 +1215,7 @@
class="list_class"
multiple="false"
filter="WORD"
- required="false"
+ required="true"
default="">
@@ -1250,7 +1250,7 @@
class="text_area"
readonly="false"
disabled="false"
- required="false"
+ required="true"
filter="CMD"
message="COM_COMPONENTBUILDER_DYNAMIC_GET_TABLE_KEY_MESSAGE"
hint="COM_COMPONENTBUILDER_DYNAMIC_GET_TABLE_KEY_HINT"
@@ -1295,7 +1295,7 @@
class="text_area"
readonly="false"
disabled="false"
- required="false"
+ required="true"
filter="CMD"
message="COM_COMPONENTBUILDER_DYNAMIC_GET_NAME_MESSAGE"
hint="COM_COMPONENTBUILDER_DYNAMIC_GET_NAME_HINT"
@@ -1311,7 +1311,7 @@
class="text_area"
readonly="false"
disabled="false"
- required="false"
+ required="true"
filter="STRING"
message="COM_COMPONENTBUILDER_DYNAMIC_GET_KEY_MESSAGE"
hint="COM_COMPONENTBUILDER_DYNAMIC_GET_KEY_HINT"
@@ -1324,7 +1324,7 @@
class="list_class fieldSmall"
multiple="false"
filter="WORD"
- required="false"
+ required="true"
default="a">
@@ -1438,7 +1438,7 @@
name="type"
label="COM_COMPONENTBUILDER_DYNAMIC_GET_TYPE_LABEL"
default="2"
- required="false">
+ required="true">
COM_COMPONENTBUILDER_DYNAMIC_GET_STATE
diff --git a/admin/models/forms/field.js b/admin/models/forms/field.js
index 03abec751..8791d8d4f 100644
--- a/admin/models/forms/field.js
+++ b/admin/models/forms/field.js
@@ -9,61 +9,61 @@
*/
// Some Global Values
-jform_vvvvwarwaa_required = false;
-jform_vvvvwaswab_required = false;
jform_vvvvwatwac_required = false;
jform_vvvvwauwad_required = false;
-jform_vvvvwaxwae_required = false;
-jform_vvvvwaywaf_required = false;
+jform_vvvvwavwae_required = false;
+jform_vvvvwawwaf_required = false;
jform_vvvvwazwag_required = false;
jform_vvvvwbawah_required = false;
+jform_vvvvwbbwai_required = false;
+jform_vvvvwbcwaj_required = false;
// Initial Script
jQuery(document).ready(function()
{
- var datalenght_vvvvwar = jQuery("#jform_datalenght").val();
- vvvvwar(datalenght_vvvvwar);
+ var datalenght_vvvvwat = jQuery("#jform_datalenght").val();
+ vvvvwat(datalenght_vvvvwat);
- var datadefault_vvvvwas = jQuery("#jform_datadefault").val();
- vvvvwas(datadefault_vvvvwas);
+ var datadefault_vvvvwau = jQuery("#jform_datadefault").val();
+ vvvvwau(datadefault_vvvvwau);
- var datatype_vvvvwat = jQuery("#jform_datatype").val();
- vvvvwat(datatype_vvvvwat);
-
- var datatype_vvvvwau = jQuery("#jform_datatype").val();
- vvvvwau(datatype_vvvvwau);
-
- var store_vvvvwav = jQuery("#jform_store").val();
var datatype_vvvvwav = jQuery("#jform_datatype").val();
- vvvvwav(store_vvvvwav,datatype_vvvvwav);
+ vvvvwav(datatype_vvvvwav);
- var add_css_view_vvvvwax = jQuery("#jform_add_css_view input[type='radio']:checked").val();
- vvvvwax(add_css_view_vvvvwax);
+ var datatype_vvvvwaw = jQuery("#jform_datatype").val();
+ vvvvwaw(datatype_vvvvwaw);
- var add_css_views_vvvvway = jQuery("#jform_add_css_views input[type='radio']:checked").val();
- vvvvway(add_css_views_vvvvway);
+ var store_vvvvwax = jQuery("#jform_store").val();
+ var datatype_vvvvwax = jQuery("#jform_datatype").val();
+ vvvvwax(store_vvvvwax,datatype_vvvvwax);
- var add_javascript_view_footer_vvvvwaz = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
- vvvvwaz(add_javascript_view_footer_vvvvwaz);
+ var add_css_view_vvvvwaz = jQuery("#jform_add_css_view input[type='radio']:checked").val();
+ vvvvwaz(add_css_view_vvvvwaz);
- var add_javascript_views_footer_vvvvwba = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
- vvvvwba(add_javascript_views_footer_vvvvwba);
+ var add_css_views_vvvvwba = jQuery("#jform_add_css_views input[type='radio']:checked").val();
+ vvvvwba(add_css_views_vvvvwba);
+
+ var add_javascript_view_footer_vvvvwbb = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
+ vvvvwbb(add_javascript_view_footer_vvvvwbb);
+
+ var add_javascript_views_footer_vvvvwbc = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
+ vvvvwbc(add_javascript_views_footer_vvvvwbc);
});
-// the vvvvwar function
-function vvvvwar(datalenght_vvvvwar)
+// the vvvvwat function
+function vvvvwat(datalenght_vvvvwat)
{
- if (isSet(datalenght_vvvvwar) && datalenght_vvvvwar.constructor !== Array)
+ if (isSet(datalenght_vvvvwat) && datalenght_vvvvwat.constructor !== Array)
{
- var temp_vvvvwar = datalenght_vvvvwar;
- var datalenght_vvvvwar = [];
- datalenght_vvvvwar.push(temp_vvvvwar);
+ var temp_vvvvwat = datalenght_vvvvwat;
+ var datalenght_vvvvwat = [];
+ datalenght_vvvvwat.push(temp_vvvvwat);
}
- else if (!isSet(datalenght_vvvvwar))
+ else if (!isSet(datalenght_vvvvwat))
{
- var datalenght_vvvvwar = [];
+ var datalenght_vvvvwat = [];
}
- var datalenght = datalenght_vvvvwar.some(datalenght_vvvvwar_SomeFunc);
+ var datalenght = datalenght_vvvvwat.some(datalenght_vvvvwat_SomeFunc);
// set this function logic
@@ -71,151 +71,35 @@ function vvvvwar(datalenght_vvvvwar)
{
jQuery('#jform_datalenght_other').closest('.control-group').show();
// add required attribute to datalenght_other field
- if (jform_vvvvwarwaa_required)
+ if (jform_vvvvwatwac_required)
{
updateFieldRequired('datalenght_other',0);
jQuery('#jform_datalenght_other').prop('required','required');
jQuery('#jform_datalenght_other').attr('aria-required',true);
jQuery('#jform_datalenght_other').addClass('required');
- jform_vvvvwarwaa_required = false;
+ jform_vvvvwatwac_required = false;
}
}
else
{
jQuery('#jform_datalenght_other').closest('.control-group').hide();
// remove required attribute from datalenght_other field
- if (!jform_vvvvwarwaa_required)
+ if (!jform_vvvvwatwac_required)
{
updateFieldRequired('datalenght_other',1);
jQuery('#jform_datalenght_other').removeAttr('required');
jQuery('#jform_datalenght_other').removeAttr('aria-required');
jQuery('#jform_datalenght_other').removeClass('required');
- jform_vvvvwarwaa_required = true;
- }
- }
-}
-
-// the vvvvwar Some function
-function datalenght_vvvvwar_SomeFunc(datalenght_vvvvwar)
-{
- // set the function logic
- if (datalenght_vvvvwar == 'Other')
- {
- return true;
- }
- return false;
-}
-
-// the vvvvwas function
-function vvvvwas(datadefault_vvvvwas)
-{
- if (isSet(datadefault_vvvvwas) && datadefault_vvvvwas.constructor !== Array)
- {
- var temp_vvvvwas = datadefault_vvvvwas;
- var datadefault_vvvvwas = [];
- datadefault_vvvvwas.push(temp_vvvvwas);
- }
- else if (!isSet(datadefault_vvvvwas))
- {
- var datadefault_vvvvwas = [];
- }
- var datadefault = datadefault_vvvvwas.some(datadefault_vvvvwas_SomeFunc);
-
-
- // set this function logic
- if (datadefault)
- {
- jQuery('#jform_datadefault_other').closest('.control-group').show();
- // add required attribute to datadefault_other field
- if (jform_vvvvwaswab_required)
- {
- updateFieldRequired('datadefault_other',0);
- jQuery('#jform_datadefault_other').prop('required','required');
- jQuery('#jform_datadefault_other').attr('aria-required',true);
- jQuery('#jform_datadefault_other').addClass('required');
- jform_vvvvwaswab_required = false;
- }
- }
- else
- {
- jQuery('#jform_datadefault_other').closest('.control-group').hide();
- // remove required attribute from datadefault_other field
- if (!jform_vvvvwaswab_required)
- {
- updateFieldRequired('datadefault_other',1);
- jQuery('#jform_datadefault_other').removeAttr('required');
- jQuery('#jform_datadefault_other').removeAttr('aria-required');
- jQuery('#jform_datadefault_other').removeClass('required');
- jform_vvvvwaswab_required = true;
- }
- }
-}
-
-// the vvvvwas Some function
-function datadefault_vvvvwas_SomeFunc(datadefault_vvvvwas)
-{
- // set the function logic
- if (datadefault_vvvvwas == 'Other')
- {
- return true;
- }
- return false;
-}
-
-// the vvvvwat function
-function vvvvwat(datatype_vvvvwat)
-{
- if (isSet(datatype_vvvvwat) && datatype_vvvvwat.constructor !== Array)
- {
- var temp_vvvvwat = datatype_vvvvwat;
- var datatype_vvvvwat = [];
- datatype_vvvvwat.push(temp_vvvvwat);
- }
- else if (!isSet(datatype_vvvvwat))
- {
- var datatype_vvvvwat = [];
- }
- var datatype = datatype_vvvvwat.some(datatype_vvvvwat_SomeFunc);
-
-
- // set this function logic
- if (datatype)
- {
- jQuery('#jform_datadefault').closest('.control-group').show();
- jQuery('#jform_datalenght').closest('.control-group').show();
- jQuery('#jform_indexes').closest('.control-group').show();
- // add required attribute to indexes field
- if (jform_vvvvwatwac_required)
- {
- updateFieldRequired('indexes',0);
- jQuery('#jform_indexes').prop('required','required');
- jQuery('#jform_indexes').attr('aria-required',true);
- jQuery('#jform_indexes').addClass('required');
- jform_vvvvwatwac_required = false;
- }
- }
- else
- {
- jQuery('#jform_datadefault').closest('.control-group').hide();
- jQuery('#jform_datalenght').closest('.control-group').hide();
- jQuery('#jform_indexes').closest('.control-group').hide();
- // remove required attribute from indexes field
- if (!jform_vvvvwatwac_required)
- {
- updateFieldRequired('indexes',1);
- jQuery('#jform_indexes').removeAttr('required');
- jQuery('#jform_indexes').removeAttr('aria-required');
- jQuery('#jform_indexes').removeClass('required');
jform_vvvvwatwac_required = true;
}
}
}
// the vvvvwat Some function
-function datatype_vvvvwat_SomeFunc(datatype_vvvvwat)
+function datalenght_vvvvwat_SomeFunc(datalenght_vvvvwat)
{
// set the function logic
- if (datatype_vvvvwat == 'CHAR' || datatype_vvvvwat == 'VARCHAR' || datatype_vvvvwat == 'DATETIME' || datatype_vvvvwat == 'DATE' || datatype_vvvvwat == 'TIME' || datatype_vvvvwat == 'INT' || datatype_vvvvwat == 'TINYINT' || datatype_vvvvwat == 'BIGINT' || datatype_vvvvwat == 'FLOAT' || datatype_vvvvwat == 'DECIMAL' || datatype_vvvvwat == 'DOUBLE')
+ if (datalenght_vvvvwat == 'Other')
{
return true;
}
@@ -223,55 +107,55 @@ function datatype_vvvvwat_SomeFunc(datatype_vvvvwat)
}
// the vvvvwau function
-function vvvvwau(datatype_vvvvwau)
+function vvvvwau(datadefault_vvvvwau)
{
- if (isSet(datatype_vvvvwau) && datatype_vvvvwau.constructor !== Array)
+ if (isSet(datadefault_vvvvwau) && datadefault_vvvvwau.constructor !== Array)
{
- var temp_vvvvwau = datatype_vvvvwau;
- var datatype_vvvvwau = [];
- datatype_vvvvwau.push(temp_vvvvwau);
+ var temp_vvvvwau = datadefault_vvvvwau;
+ var datadefault_vvvvwau = [];
+ datadefault_vvvvwau.push(temp_vvvvwau);
}
- else if (!isSet(datatype_vvvvwau))
+ else if (!isSet(datadefault_vvvvwau))
{
- var datatype_vvvvwau = [];
+ var datadefault_vvvvwau = [];
}
- var datatype = datatype_vvvvwau.some(datatype_vvvvwau_SomeFunc);
+ var datadefault = datadefault_vvvvwau.some(datadefault_vvvvwau_SomeFunc);
// set this function logic
- if (datatype)
+ if (datadefault)
{
- jQuery('#jform_store').closest('.control-group').show();
- // add required attribute to store field
+ jQuery('#jform_datadefault_other').closest('.control-group').show();
+ // add required attribute to datadefault_other field
if (jform_vvvvwauwad_required)
{
- updateFieldRequired('store',0);
- jQuery('#jform_store').prop('required','required');
- jQuery('#jform_store').attr('aria-required',true);
- jQuery('#jform_store').addClass('required');
+ updateFieldRequired('datadefault_other',0);
+ jQuery('#jform_datadefault_other').prop('required','required');
+ jQuery('#jform_datadefault_other').attr('aria-required',true);
+ jQuery('#jform_datadefault_other').addClass('required');
jform_vvvvwauwad_required = false;
}
}
else
{
- jQuery('#jform_store').closest('.control-group').hide();
- // remove required attribute from store field
+ jQuery('#jform_datadefault_other').closest('.control-group').hide();
+ // remove required attribute from datadefault_other field
if (!jform_vvvvwauwad_required)
{
- updateFieldRequired('store',1);
- jQuery('#jform_store').removeAttr('required');
- jQuery('#jform_store').removeAttr('aria-required');
- jQuery('#jform_store').removeClass('required');
+ updateFieldRequired('datadefault_other',1);
+ jQuery('#jform_datadefault_other').removeAttr('required');
+ jQuery('#jform_datadefault_other').removeAttr('aria-required');
+ jQuery('#jform_datadefault_other').removeClass('required');
jform_vvvvwauwad_required = true;
}
}
}
// the vvvvwau Some function
-function datatype_vvvvwau_SomeFunc(datatype_vvvvwau)
+function datadefault_vvvvwau_SomeFunc(datadefault_vvvvwau)
{
// set the function logic
- if (datatype_vvvvwau == 'CHAR' || datatype_vvvvwau == 'VARCHAR' || datatype_vvvvwau == 'TEXT' || datatype_vvvvwau == 'MEDIUMTEXT' || datatype_vvvvwau == 'LONGTEXT' || datatype_vvvvwau == 'BLOB' || datatype_vvvvwau == 'TINYBLOB' || datatype_vvvvwau == 'MEDIUMBLOB' || datatype_vvvvwau == 'LONGBLOB')
+ if (datadefault_vvvvwau == 'Other')
{
return true;
}
@@ -279,20 +163,8 @@ function datatype_vvvvwau_SomeFunc(datatype_vvvvwau)
}
// the vvvvwav function
-function vvvvwav(store_vvvvwav,datatype_vvvvwav)
+function vvvvwav(datatype_vvvvwav)
{
- if (isSet(store_vvvvwav) && store_vvvvwav.constructor !== Array)
- {
- var temp_vvvvwav = store_vvvvwav;
- var store_vvvvwav = [];
- store_vvvvwav.push(temp_vvvvwav);
- }
- else if (!isSet(store_vvvvwav))
- {
- var store_vvvvwav = [];
- }
- var store = store_vvvvwav.some(store_vvvvwav_SomeFunc);
-
if (isSet(datatype_vvvvwav) && datatype_vvvvwav.constructor !== Array)
{
var temp_vvvvwav = datatype_vvvvwav;
@@ -306,6 +178,134 @@ function vvvvwav(store_vvvvwav,datatype_vvvvwav)
var datatype = datatype_vvvvwav.some(datatype_vvvvwav_SomeFunc);
+ // set this function logic
+ if (datatype)
+ {
+ jQuery('#jform_datadefault').closest('.control-group').show();
+ jQuery('#jform_datalenght').closest('.control-group').show();
+ jQuery('#jform_indexes').closest('.control-group').show();
+ // add required attribute to indexes field
+ if (jform_vvvvwavwae_required)
+ {
+ updateFieldRequired('indexes',0);
+ jQuery('#jform_indexes').prop('required','required');
+ jQuery('#jform_indexes').attr('aria-required',true);
+ jQuery('#jform_indexes').addClass('required');
+ jform_vvvvwavwae_required = false;
+ }
+ }
+ else
+ {
+ jQuery('#jform_datadefault').closest('.control-group').hide();
+ jQuery('#jform_datalenght').closest('.control-group').hide();
+ jQuery('#jform_indexes').closest('.control-group').hide();
+ // remove required attribute from indexes field
+ if (!jform_vvvvwavwae_required)
+ {
+ updateFieldRequired('indexes',1);
+ jQuery('#jform_indexes').removeAttr('required');
+ jQuery('#jform_indexes').removeAttr('aria-required');
+ jQuery('#jform_indexes').removeClass('required');
+ jform_vvvvwavwae_required = true;
+ }
+ }
+}
+
+// the vvvvwav Some function
+function datatype_vvvvwav_SomeFunc(datatype_vvvvwav)
+{
+ // set the function logic
+ if (datatype_vvvvwav == 'CHAR' || datatype_vvvvwav == 'VARCHAR' || datatype_vvvvwav == 'DATETIME' || datatype_vvvvwav == 'DATE' || datatype_vvvvwav == 'TIME' || datatype_vvvvwav == 'INT' || datatype_vvvvwav == 'TINYINT' || datatype_vvvvwav == 'BIGINT' || datatype_vvvvwav == 'FLOAT' || datatype_vvvvwav == 'DECIMAL' || datatype_vvvvwav == 'DOUBLE')
+ {
+ return true;
+ }
+ return false;
+}
+
+// the vvvvwaw function
+function vvvvwaw(datatype_vvvvwaw)
+{
+ if (isSet(datatype_vvvvwaw) && datatype_vvvvwaw.constructor !== Array)
+ {
+ var temp_vvvvwaw = datatype_vvvvwaw;
+ var datatype_vvvvwaw = [];
+ datatype_vvvvwaw.push(temp_vvvvwaw);
+ }
+ else if (!isSet(datatype_vvvvwaw))
+ {
+ var datatype_vvvvwaw = [];
+ }
+ var datatype = datatype_vvvvwaw.some(datatype_vvvvwaw_SomeFunc);
+
+
+ // set this function logic
+ if (datatype)
+ {
+ jQuery('#jform_store').closest('.control-group').show();
+ // add required attribute to store field
+ if (jform_vvvvwawwaf_required)
+ {
+ updateFieldRequired('store',0);
+ jQuery('#jform_store').prop('required','required');
+ jQuery('#jform_store').attr('aria-required',true);
+ jQuery('#jform_store').addClass('required');
+ jform_vvvvwawwaf_required = false;
+ }
+ }
+ else
+ {
+ jQuery('#jform_store').closest('.control-group').hide();
+ // remove required attribute from store field
+ if (!jform_vvvvwawwaf_required)
+ {
+ updateFieldRequired('store',1);
+ jQuery('#jform_store').removeAttr('required');
+ jQuery('#jform_store').removeAttr('aria-required');
+ jQuery('#jform_store').removeClass('required');
+ jform_vvvvwawwaf_required = true;
+ }
+ }
+}
+
+// the vvvvwaw Some function
+function datatype_vvvvwaw_SomeFunc(datatype_vvvvwaw)
+{
+ // set the function logic
+ if (datatype_vvvvwaw == 'CHAR' || datatype_vvvvwaw == 'VARCHAR' || datatype_vvvvwaw == 'TEXT' || datatype_vvvvwaw == 'MEDIUMTEXT' || datatype_vvvvwaw == 'LONGTEXT' || datatype_vvvvwaw == 'BLOB' || datatype_vvvvwaw == 'TINYBLOB' || datatype_vvvvwaw == 'MEDIUMBLOB' || datatype_vvvvwaw == 'LONGBLOB')
+ {
+ return true;
+ }
+ return false;
+}
+
+// the vvvvwax function
+function vvvvwax(store_vvvvwax,datatype_vvvvwax)
+{
+ if (isSet(store_vvvvwax) && store_vvvvwax.constructor !== Array)
+ {
+ var temp_vvvvwax = store_vvvvwax;
+ var store_vvvvwax = [];
+ store_vvvvwax.push(temp_vvvvwax);
+ }
+ else if (!isSet(store_vvvvwax))
+ {
+ var store_vvvvwax = [];
+ }
+ var store = store_vvvvwax.some(store_vvvvwax_SomeFunc);
+
+ if (isSet(datatype_vvvvwax) && datatype_vvvvwax.constructor !== Array)
+ {
+ var temp_vvvvwax = datatype_vvvvwax;
+ var datatype_vvvvwax = [];
+ datatype_vvvvwax.push(temp_vvvvwax);
+ }
+ else if (!isSet(datatype_vvvvwax))
+ {
+ var datatype_vvvvwax = [];
+ }
+ var datatype = datatype_vvvvwax.some(datatype_vvvvwax_SomeFunc);
+
+
// set this function logic
if (store && datatype)
{
@@ -317,152 +317,152 @@ function vvvvwav(store_vvvvwav,datatype_vvvvwav)
}
}
-// the vvvvwav Some function
-function store_vvvvwav_SomeFunc(store_vvvvwav)
+// the vvvvwax Some function
+function store_vvvvwax_SomeFunc(store_vvvvwax)
{
// set the function logic
- if (store_vvvvwav == 4)
+ if (store_vvvvwax == 4)
{
return true;
}
return false;
}
-// the vvvvwav Some function
-function datatype_vvvvwav_SomeFunc(datatype_vvvvwav)
+// the vvvvwax Some function
+function datatype_vvvvwax_SomeFunc(datatype_vvvvwax)
{
// set the function logic
- if (datatype_vvvvwav == 'CHAR' || datatype_vvvvwav == 'VARCHAR' || datatype_vvvvwav == 'TEXT' || datatype_vvvvwav == 'MEDIUMTEXT' || datatype_vvvvwav == 'LONGTEXT' || datatype_vvvvwav == 'BLOB' || datatype_vvvvwav == 'TINYBLOB' || datatype_vvvvwav == 'MEDIUMBLOB' || datatype_vvvvwav == 'LONGBLOB')
+ if (datatype_vvvvwax == 'CHAR' || datatype_vvvvwax == 'VARCHAR' || datatype_vvvvwax == 'TEXT' || datatype_vvvvwax == 'MEDIUMTEXT' || datatype_vvvvwax == 'LONGTEXT' || datatype_vvvvwax == 'BLOB' || datatype_vvvvwax == 'TINYBLOB' || datatype_vvvvwax == 'MEDIUMBLOB' || datatype_vvvvwax == 'LONGBLOB')
{
return true;
}
return false;
}
-// the vvvvwax function
-function vvvvwax(add_css_view_vvvvwax)
+// the vvvvwaz function
+function vvvvwaz(add_css_view_vvvvwaz)
{
// set the function logic
- if (add_css_view_vvvvwax == 1)
+ if (add_css_view_vvvvwaz == 1)
{
jQuery('#jform_css_view-lbl').closest('.control-group').show();
// add required attribute to css_view field
- if (jform_vvvvwaxwae_required)
+ if (jform_vvvvwazwag_required)
{
updateFieldRequired('css_view',0);
jQuery('#jform_css_view').prop('required','required');
jQuery('#jform_css_view').attr('aria-required',true);
jQuery('#jform_css_view').addClass('required');
- jform_vvvvwaxwae_required = false;
+ jform_vvvvwazwag_required = false;
}
}
else
{
jQuery('#jform_css_view-lbl').closest('.control-group').hide();
// remove required attribute from css_view field
- if (!jform_vvvvwaxwae_required)
+ if (!jform_vvvvwazwag_required)
{
updateFieldRequired('css_view',1);
jQuery('#jform_css_view').removeAttr('required');
jQuery('#jform_css_view').removeAttr('aria-required');
jQuery('#jform_css_view').removeClass('required');
- jform_vvvvwaxwae_required = true;
- }
- }
-}
-
-// the vvvvway function
-function vvvvway(add_css_views_vvvvway)
-{
- // set the function logic
- if (add_css_views_vvvvway == 1)
- {
- jQuery('#jform_css_views-lbl').closest('.control-group').show();
- // add required attribute to css_views field
- if (jform_vvvvwaywaf_required)
- {
- updateFieldRequired('css_views',0);
- jQuery('#jform_css_views').prop('required','required');
- jQuery('#jform_css_views').attr('aria-required',true);
- jQuery('#jform_css_views').addClass('required');
- jform_vvvvwaywaf_required = false;
- }
- }
- else
- {
- jQuery('#jform_css_views-lbl').closest('.control-group').hide();
- // remove required attribute from css_views field
- if (!jform_vvvvwaywaf_required)
- {
- updateFieldRequired('css_views',1);
- jQuery('#jform_css_views').removeAttr('required');
- jQuery('#jform_css_views').removeAttr('aria-required');
- jQuery('#jform_css_views').removeClass('required');
- jform_vvvvwaywaf_required = true;
- }
- }
-}
-
-// the vvvvwaz function
-function vvvvwaz(add_javascript_view_footer_vvvvwaz)
-{
- // set the function logic
- if (add_javascript_view_footer_vvvvwaz == 1)
- {
- jQuery('#jform_javascript_view_footer-lbl').closest('.control-group').show();
- // add required attribute to javascript_view_footer field
- if (jform_vvvvwazwag_required)
- {
- updateFieldRequired('javascript_view_footer',0);
- jQuery('#jform_javascript_view_footer').prop('required','required');
- jQuery('#jform_javascript_view_footer').attr('aria-required',true);
- jQuery('#jform_javascript_view_footer').addClass('required');
- jform_vvvvwazwag_required = false;
- }
- }
- else
- {
- jQuery('#jform_javascript_view_footer-lbl').closest('.control-group').hide();
- // remove required attribute from javascript_view_footer field
- if (!jform_vvvvwazwag_required)
- {
- updateFieldRequired('javascript_view_footer',1);
- jQuery('#jform_javascript_view_footer').removeAttr('required');
- jQuery('#jform_javascript_view_footer').removeAttr('aria-required');
- jQuery('#jform_javascript_view_footer').removeClass('required');
jform_vvvvwazwag_required = true;
}
}
}
// the vvvvwba function
-function vvvvwba(add_javascript_views_footer_vvvvwba)
+function vvvvwba(add_css_views_vvvvwba)
{
// set the function logic
- if (add_javascript_views_footer_vvvvwba == 1)
+ if (add_css_views_vvvvwba == 1)
+ {
+ jQuery('#jform_css_views-lbl').closest('.control-group').show();
+ // add required attribute to css_views field
+ if (jform_vvvvwbawah_required)
+ {
+ updateFieldRequired('css_views',0);
+ jQuery('#jform_css_views').prop('required','required');
+ jQuery('#jform_css_views').attr('aria-required',true);
+ jQuery('#jform_css_views').addClass('required');
+ jform_vvvvwbawah_required = false;
+ }
+ }
+ else
+ {
+ jQuery('#jform_css_views-lbl').closest('.control-group').hide();
+ // remove required attribute from css_views field
+ if (!jform_vvvvwbawah_required)
+ {
+ updateFieldRequired('css_views',1);
+ jQuery('#jform_css_views').removeAttr('required');
+ jQuery('#jform_css_views').removeAttr('aria-required');
+ jQuery('#jform_css_views').removeClass('required');
+ jform_vvvvwbawah_required = true;
+ }
+ }
+}
+
+// the vvvvwbb function
+function vvvvwbb(add_javascript_view_footer_vvvvwbb)
+{
+ // set the function logic
+ if (add_javascript_view_footer_vvvvwbb == 1)
+ {
+ jQuery('#jform_javascript_view_footer-lbl').closest('.control-group').show();
+ // add required attribute to javascript_view_footer field
+ if (jform_vvvvwbbwai_required)
+ {
+ updateFieldRequired('javascript_view_footer',0);
+ jQuery('#jform_javascript_view_footer').prop('required','required');
+ jQuery('#jform_javascript_view_footer').attr('aria-required',true);
+ jQuery('#jform_javascript_view_footer').addClass('required');
+ jform_vvvvwbbwai_required = false;
+ }
+ }
+ else
+ {
+ jQuery('#jform_javascript_view_footer-lbl').closest('.control-group').hide();
+ // remove required attribute from javascript_view_footer field
+ if (!jform_vvvvwbbwai_required)
+ {
+ updateFieldRequired('javascript_view_footer',1);
+ jQuery('#jform_javascript_view_footer').removeAttr('required');
+ jQuery('#jform_javascript_view_footer').removeAttr('aria-required');
+ jQuery('#jform_javascript_view_footer').removeClass('required');
+ jform_vvvvwbbwai_required = true;
+ }
+ }
+}
+
+// the vvvvwbc function
+function vvvvwbc(add_javascript_views_footer_vvvvwbc)
+{
+ // set the function logic
+ if (add_javascript_views_footer_vvvvwbc == 1)
{
jQuery('#jform_javascript_views_footer-lbl').closest('.control-group').show();
// add required attribute to javascript_views_footer field
- if (jform_vvvvwbawah_required)
+ if (jform_vvvvwbcwaj_required)
{
updateFieldRequired('javascript_views_footer',0);
jQuery('#jform_javascript_views_footer').prop('required','required');
jQuery('#jform_javascript_views_footer').attr('aria-required',true);
jQuery('#jform_javascript_views_footer').addClass('required');
- jform_vvvvwbawah_required = false;
+ jform_vvvvwbcwaj_required = false;
}
}
else
{
jQuery('#jform_javascript_views_footer-lbl').closest('.control-group').hide();
// remove required attribute from javascript_views_footer field
- if (!jform_vvvvwbawah_required)
+ if (!jform_vvvvwbcwaj_required)
{
updateFieldRequired('javascript_views_footer',1);
jQuery('#jform_javascript_views_footer').removeAttr('required');
jQuery('#jform_javascript_views_footer').removeAttr('aria-required');
jQuery('#jform_javascript_views_footer').removeClass('required');
- jform_vvvvwbawah_required = true;
+ jform_vvvvwbcwaj_required = true;
}
}
}
@@ -873,7 +873,7 @@ function getEditCustomCodeButtons(){
getEditCustomCodeButtons_server(id).done(function(result) {
if(isObject(result)){
jQuery.each(result, function( field, buttons ) {
- jQuery('
').insertBefore(".control-wrapper-"+ field);
+ jQuery('
').insertBefore(".control-wrapper-"+ field);
jQuery.each(buttons, function( name, button ) {
jQuery(".control-customcode-buttons-"+field).append(button);
});
diff --git a/admin/models/forms/fieldtype.js b/admin/models/forms/fieldtype.js
index 927afbd1a..1c20f92c3 100644
--- a/admin/models/forms/fieldtype.js
+++ b/admin/models/forms/fieldtype.js
@@ -9,149 +9,70 @@
*/
// Some Global Values
-jform_vvvvwbbwai_required = false;
-jform_vvvvwbdwaj_required = false;
-jform_vvvvwbfwak_required = false;
-jform_vvvvwbgwal_required = false;
+jform_vvvvwbdwak_required = false;
+jform_vvvvwbfwal_required = false;
jform_vvvvwbhwam_required = false;
-jform_vvvvwbmwan_required = false;
-jform_vvvvwbmwao_required = false;
+jform_vvvvwbiwan_required = false;
+jform_vvvvwbjwao_required = false;
+jform_vvvvwbowap_required = false;
+jform_vvvvwbowaq_required = false;
// Initial Script
jQuery(document).ready(function()
{
- var datalenght_vvvvwbb = jQuery("#jform_datalenght").val();
- var has_defaults_vvvvwbb = jQuery("#jform_has_defaults input[type='radio']:checked").val();
- vvvvwbb(datalenght_vvvvwbb,has_defaults_vvvvwbb);
-
- var datadefault_vvvvwbd = jQuery("#jform_datadefault").val();
+ var datalenght_vvvvwbd = jQuery("#jform_datalenght").val();
var has_defaults_vvvvwbd = jQuery("#jform_has_defaults input[type='radio']:checked").val();
- vvvvwbd(datadefault_vvvvwbd,has_defaults_vvvvwbd);
+ vvvvwbd(datalenght_vvvvwbd,has_defaults_vvvvwbd);
- var datatype_vvvvwbf = jQuery("#jform_datatype").val();
+ var datadefault_vvvvwbf = jQuery("#jform_datadefault").val();
var has_defaults_vvvvwbf = jQuery("#jform_has_defaults input[type='radio']:checked").val();
- vvvvwbf(datatype_vvvvwbf,has_defaults_vvvvwbf);
-
- var has_defaults_vvvvwbg = jQuery("#jform_has_defaults input[type='radio']:checked").val();
- var datatype_vvvvwbg = jQuery("#jform_datatype").val();
- vvvvwbg(has_defaults_vvvvwbg,datatype_vvvvwbg);
+ vvvvwbf(datadefault_vvvvwbf,has_defaults_vvvvwbf);
var datatype_vvvvwbh = jQuery("#jform_datatype").val();
var has_defaults_vvvvwbh = jQuery("#jform_has_defaults input[type='radio']:checked").val();
vvvvwbh(datatype_vvvvwbh,has_defaults_vvvvwbh);
- var store_vvvvwbj = jQuery("#jform_store").val();
+ var has_defaults_vvvvwbi = jQuery("#jform_has_defaults input[type='radio']:checked").val();
+ var datatype_vvvvwbi = jQuery("#jform_datatype").val();
+ vvvvwbi(has_defaults_vvvvwbi,datatype_vvvvwbi);
+
var datatype_vvvvwbj = jQuery("#jform_datatype").val();
var has_defaults_vvvvwbj = jQuery("#jform_has_defaults input[type='radio']:checked").val();
- vvvvwbj(store_vvvvwbj,datatype_vvvvwbj,has_defaults_vvvvwbj);
+ vvvvwbj(datatype_vvvvwbj,has_defaults_vvvvwbj);
- var datatype_vvvvwbk = jQuery("#jform_datatype").val();
- var store_vvvvwbk = jQuery("#jform_store").val();
- var has_defaults_vvvvwbk = jQuery("#jform_has_defaults input[type='radio']:checked").val();
- vvvvwbk(datatype_vvvvwbk,store_vvvvwbk,has_defaults_vvvvwbk);
-
- var has_defaults_vvvvwbl = jQuery("#jform_has_defaults input[type='radio']:checked").val();
var store_vvvvwbl = jQuery("#jform_store").val();
var datatype_vvvvwbl = jQuery("#jform_datatype").val();
- vvvvwbl(has_defaults_vvvvwbl,store_vvvvwbl,datatype_vvvvwbl);
+ var has_defaults_vvvvwbl = jQuery("#jform_has_defaults input[type='radio']:checked").val();
+ vvvvwbl(store_vvvvwbl,datatype_vvvvwbl,has_defaults_vvvvwbl);
+ var datatype_vvvvwbm = jQuery("#jform_datatype").val();
+ var store_vvvvwbm = jQuery("#jform_store").val();
var has_defaults_vvvvwbm = jQuery("#jform_has_defaults input[type='radio']:checked").val();
- vvvvwbm(has_defaults_vvvvwbm);
+ vvvvwbm(datatype_vvvvwbm,store_vvvvwbm,has_defaults_vvvvwbm);
+
+ var has_defaults_vvvvwbn = jQuery("#jform_has_defaults input[type='radio']:checked").val();
+ var store_vvvvwbn = jQuery("#jform_store").val();
+ var datatype_vvvvwbn = jQuery("#jform_datatype").val();
+ vvvvwbn(has_defaults_vvvvwbn,store_vvvvwbn,datatype_vvvvwbn);
+
+ var has_defaults_vvvvwbo = jQuery("#jform_has_defaults input[type='radio']:checked").val();
+ vvvvwbo(has_defaults_vvvvwbo);
});
-// the vvvvwbb function
-function vvvvwbb(datalenght_vvvvwbb,has_defaults_vvvvwbb)
-{
- if (isSet(datalenght_vvvvwbb) && datalenght_vvvvwbb.constructor !== Array)
- {
- var temp_vvvvwbb = datalenght_vvvvwbb;
- var datalenght_vvvvwbb = [];
- datalenght_vvvvwbb.push(temp_vvvvwbb);
- }
- else if (!isSet(datalenght_vvvvwbb))
- {
- var datalenght_vvvvwbb = [];
- }
- var datalenght = datalenght_vvvvwbb.some(datalenght_vvvvwbb_SomeFunc);
-
- if (isSet(has_defaults_vvvvwbb) && has_defaults_vvvvwbb.constructor !== Array)
- {
- var temp_vvvvwbb = has_defaults_vvvvwbb;
- var has_defaults_vvvvwbb = [];
- has_defaults_vvvvwbb.push(temp_vvvvwbb);
- }
- else if (!isSet(has_defaults_vvvvwbb))
- {
- var has_defaults_vvvvwbb = [];
- }
- var has_defaults = has_defaults_vvvvwbb.some(has_defaults_vvvvwbb_SomeFunc);
-
-
- // set this function logic
- if (datalenght && has_defaults)
- {
- jQuery('#jform_datalenght_other').closest('.control-group').show();
- // add required attribute to datalenght_other field
- if (jform_vvvvwbbwai_required)
- {
- updateFieldRequired('datalenght_other',0);
- jQuery('#jform_datalenght_other').prop('required','required');
- jQuery('#jform_datalenght_other').attr('aria-required',true);
- jQuery('#jform_datalenght_other').addClass('required');
- jform_vvvvwbbwai_required = false;
- }
- }
- else
- {
- jQuery('#jform_datalenght_other').closest('.control-group').hide();
- // remove required attribute from datalenght_other field
- if (!jform_vvvvwbbwai_required)
- {
- updateFieldRequired('datalenght_other',1);
- jQuery('#jform_datalenght_other').removeAttr('required');
- jQuery('#jform_datalenght_other').removeAttr('aria-required');
- jQuery('#jform_datalenght_other').removeClass('required');
- jform_vvvvwbbwai_required = true;
- }
- }
-}
-
-// the vvvvwbb Some function
-function datalenght_vvvvwbb_SomeFunc(datalenght_vvvvwbb)
-{
- // set the function logic
- if (datalenght_vvvvwbb == 'Other')
- {
- return true;
- }
- return false;
-}
-
-// the vvvvwbb Some function
-function has_defaults_vvvvwbb_SomeFunc(has_defaults_vvvvwbb)
-{
- // set the function logic
- if (has_defaults_vvvvwbb == 1)
- {
- return true;
- }
- return false;
-}
-
// the vvvvwbd function
-function vvvvwbd(datadefault_vvvvwbd,has_defaults_vvvvwbd)
+function vvvvwbd(datalenght_vvvvwbd,has_defaults_vvvvwbd)
{
- if (isSet(datadefault_vvvvwbd) && datadefault_vvvvwbd.constructor !== Array)
+ if (isSet(datalenght_vvvvwbd) && datalenght_vvvvwbd.constructor !== Array)
{
- var temp_vvvvwbd = datadefault_vvvvwbd;
- var datadefault_vvvvwbd = [];
- datadefault_vvvvwbd.push(temp_vvvvwbd);
+ var temp_vvvvwbd = datalenght_vvvvwbd;
+ var datalenght_vvvvwbd = [];
+ datalenght_vvvvwbd.push(temp_vvvvwbd);
}
- else if (!isSet(datadefault_vvvvwbd))
+ else if (!isSet(datalenght_vvvvwbd))
{
- var datadefault_vvvvwbd = [];
+ var datalenght_vvvvwbd = [];
}
- var datadefault = datadefault_vvvvwbd.some(datadefault_vvvvwbd_SomeFunc);
+ var datalenght = datalenght_vvvvwbd.some(datalenght_vvvvwbd_SomeFunc);
if (isSet(has_defaults_vvvvwbd) && has_defaults_vvvvwbd.constructor !== Array)
{
@@ -167,39 +88,39 @@ function vvvvwbd(datadefault_vvvvwbd,has_defaults_vvvvwbd)
// set this function logic
- if (datadefault && has_defaults)
+ if (datalenght && has_defaults)
{
- jQuery('#jform_datadefault_other').closest('.control-group').show();
- // add required attribute to datadefault_other field
- if (jform_vvvvwbdwaj_required)
+ jQuery('#jform_datalenght_other').closest('.control-group').show();
+ // add required attribute to datalenght_other field
+ if (jform_vvvvwbdwak_required)
{
- updateFieldRequired('datadefault_other',0);
- jQuery('#jform_datadefault_other').prop('required','required');
- jQuery('#jform_datadefault_other').attr('aria-required',true);
- jQuery('#jform_datadefault_other').addClass('required');
- jform_vvvvwbdwaj_required = false;
+ updateFieldRequired('datalenght_other',0);
+ jQuery('#jform_datalenght_other').prop('required','required');
+ jQuery('#jform_datalenght_other').attr('aria-required',true);
+ jQuery('#jform_datalenght_other').addClass('required');
+ jform_vvvvwbdwak_required = false;
}
}
else
{
- jQuery('#jform_datadefault_other').closest('.control-group').hide();
- // remove required attribute from datadefault_other field
- if (!jform_vvvvwbdwaj_required)
+ jQuery('#jform_datalenght_other').closest('.control-group').hide();
+ // remove required attribute from datalenght_other field
+ if (!jform_vvvvwbdwak_required)
{
- updateFieldRequired('datadefault_other',1);
- jQuery('#jform_datadefault_other').removeAttr('required');
- jQuery('#jform_datadefault_other').removeAttr('aria-required');
- jQuery('#jform_datadefault_other').removeClass('required');
- jform_vvvvwbdwaj_required = true;
+ updateFieldRequired('datalenght_other',1);
+ jQuery('#jform_datalenght_other').removeAttr('required');
+ jQuery('#jform_datalenght_other').removeAttr('aria-required');
+ jQuery('#jform_datalenght_other').removeClass('required');
+ jform_vvvvwbdwak_required = true;
}
}
}
// the vvvvwbd Some function
-function datadefault_vvvvwbd_SomeFunc(datadefault_vvvvwbd)
+function datalenght_vvvvwbd_SomeFunc(datalenght_vvvvwbd)
{
// set the function logic
- if (datadefault_vvvvwbd == 'Other')
+ if (datalenght_vvvvwbd == 'Other')
{
return true;
}
@@ -218,19 +139,19 @@ function has_defaults_vvvvwbd_SomeFunc(has_defaults_vvvvwbd)
}
// the vvvvwbf function
-function vvvvwbf(datatype_vvvvwbf,has_defaults_vvvvwbf)
+function vvvvwbf(datadefault_vvvvwbf,has_defaults_vvvvwbf)
{
- if (isSet(datatype_vvvvwbf) && datatype_vvvvwbf.constructor !== Array)
+ if (isSet(datadefault_vvvvwbf) && datadefault_vvvvwbf.constructor !== Array)
{
- var temp_vvvvwbf = datatype_vvvvwbf;
- var datatype_vvvvwbf = [];
- datatype_vvvvwbf.push(temp_vvvvwbf);
+ var temp_vvvvwbf = datadefault_vvvvwbf;
+ var datadefault_vvvvwbf = [];
+ datadefault_vvvvwbf.push(temp_vvvvwbf);
}
- else if (!isSet(datatype_vvvvwbf))
+ else if (!isSet(datadefault_vvvvwbf))
{
- var datatype_vvvvwbf = [];
+ var datadefault_vvvvwbf = [];
}
- var datatype = datatype_vvvvwbf.some(datatype_vvvvwbf_SomeFunc);
+ var datadefault = datadefault_vvvvwbf.some(datadefault_vvvvwbf_SomeFunc);
if (isSet(has_defaults_vvvvwbf) && has_defaults_vvvvwbf.constructor !== Array)
{
@@ -246,43 +167,39 @@ function vvvvwbf(datatype_vvvvwbf,has_defaults_vvvvwbf)
// set this function logic
- if (datatype && has_defaults)
+ if (datadefault && has_defaults)
{
- jQuery('#jform_datadefault').closest('.control-group').show();
- jQuery('#jform_datalenght').closest('.control-group').show();
- jQuery('#jform_indexes').closest('.control-group').show();
- // add required attribute to indexes field
- if (jform_vvvvwbfwak_required)
+ jQuery('#jform_datadefault_other').closest('.control-group').show();
+ // add required attribute to datadefault_other field
+ if (jform_vvvvwbfwal_required)
{
- updateFieldRequired('indexes',0);
- jQuery('#jform_indexes').prop('required','required');
- jQuery('#jform_indexes').attr('aria-required',true);
- jQuery('#jform_indexes').addClass('required');
- jform_vvvvwbfwak_required = false;
+ updateFieldRequired('datadefault_other',0);
+ jQuery('#jform_datadefault_other').prop('required','required');
+ jQuery('#jform_datadefault_other').attr('aria-required',true);
+ jQuery('#jform_datadefault_other').addClass('required');
+ jform_vvvvwbfwal_required = false;
}
}
else
{
- jQuery('#jform_datadefault').closest('.control-group').hide();
- jQuery('#jform_datalenght').closest('.control-group').hide();
- jQuery('#jform_indexes').closest('.control-group').hide();
- // remove required attribute from indexes field
- if (!jform_vvvvwbfwak_required)
+ jQuery('#jform_datadefault_other').closest('.control-group').hide();
+ // remove required attribute from datadefault_other field
+ if (!jform_vvvvwbfwal_required)
{
- updateFieldRequired('indexes',1);
- jQuery('#jform_indexes').removeAttr('required');
- jQuery('#jform_indexes').removeAttr('aria-required');
- jQuery('#jform_indexes').removeClass('required');
- jform_vvvvwbfwak_required = true;
+ updateFieldRequired('datadefault_other',1);
+ jQuery('#jform_datadefault_other').removeAttr('required');
+ jQuery('#jform_datadefault_other').removeAttr('aria-required');
+ jQuery('#jform_datadefault_other').removeClass('required');
+ jform_vvvvwbfwal_required = true;
}
}
}
// the vvvvwbf Some function
-function datatype_vvvvwbf_SomeFunc(datatype_vvvvwbf)
+function datadefault_vvvvwbf_SomeFunc(datadefault_vvvvwbf)
{
// set the function logic
- if (datatype_vvvvwbf == 'CHAR' || datatype_vvvvwbf == 'VARCHAR' || datatype_vvvvwbf == 'DATETIME' || datatype_vvvvwbf == 'DATE' || datatype_vvvvwbf == 'TIME' || datatype_vvvvwbf == 'INT' || datatype_vvvvwbf == 'TINYINT' || datatype_vvvvwbf == 'BIGINT' || datatype_vvvvwbf == 'FLOAT' || datatype_vvvvwbf == 'DECIMAL' || datatype_vvvvwbf == 'DOUBLE')
+ if (datadefault_vvvvwbf == 'Other')
{
return true;
}
@@ -300,89 +217,6 @@ function has_defaults_vvvvwbf_SomeFunc(has_defaults_vvvvwbf)
return false;
}
-// the vvvvwbg function
-function vvvvwbg(has_defaults_vvvvwbg,datatype_vvvvwbg)
-{
- if (isSet(has_defaults_vvvvwbg) && has_defaults_vvvvwbg.constructor !== Array)
- {
- var temp_vvvvwbg = has_defaults_vvvvwbg;
- var has_defaults_vvvvwbg = [];
- has_defaults_vvvvwbg.push(temp_vvvvwbg);
- }
- else if (!isSet(has_defaults_vvvvwbg))
- {
- var has_defaults_vvvvwbg = [];
- }
- var has_defaults = has_defaults_vvvvwbg.some(has_defaults_vvvvwbg_SomeFunc);
-
- if (isSet(datatype_vvvvwbg) && datatype_vvvvwbg.constructor !== Array)
- {
- var temp_vvvvwbg = datatype_vvvvwbg;
- var datatype_vvvvwbg = [];
- datatype_vvvvwbg.push(temp_vvvvwbg);
- }
- else if (!isSet(datatype_vvvvwbg))
- {
- var datatype_vvvvwbg = [];
- }
- var datatype = datatype_vvvvwbg.some(datatype_vvvvwbg_SomeFunc);
-
-
- // set this function logic
- if (has_defaults && datatype)
- {
- jQuery('#jform_datadefault').closest('.control-group').show();
- jQuery('#jform_datalenght').closest('.control-group').show();
- jQuery('#jform_indexes').closest('.control-group').show();
- // add required attribute to indexes field
- if (jform_vvvvwbgwal_required)
- {
- updateFieldRequired('indexes',0);
- jQuery('#jform_indexes').prop('required','required');
- jQuery('#jform_indexes').attr('aria-required',true);
- jQuery('#jform_indexes').addClass('required');
- jform_vvvvwbgwal_required = false;
- }
- }
- else
- {
- jQuery('#jform_datadefault').closest('.control-group').hide();
- jQuery('#jform_datalenght').closest('.control-group').hide();
- jQuery('#jform_indexes').closest('.control-group').hide();
- // remove required attribute from indexes field
- if (!jform_vvvvwbgwal_required)
- {
- updateFieldRequired('indexes',1);
- jQuery('#jform_indexes').removeAttr('required');
- jQuery('#jform_indexes').removeAttr('aria-required');
- jQuery('#jform_indexes').removeClass('required');
- jform_vvvvwbgwal_required = true;
- }
- }
-}
-
-// the vvvvwbg Some function
-function has_defaults_vvvvwbg_SomeFunc(has_defaults_vvvvwbg)
-{
- // set the function logic
- if (has_defaults_vvvvwbg == 1)
- {
- return true;
- }
- return false;
-}
-
-// the vvvvwbg Some function
-function datatype_vvvvwbg_SomeFunc(datatype_vvvvwbg)
-{
- // set the function logic
- if (datatype_vvvvwbg == 'CHAR' || datatype_vvvvwbg == 'VARCHAR' || datatype_vvvvwbg == 'DATETIME' || datatype_vvvvwbg == 'DATE' || datatype_vvvvwbg == 'TIME' || datatype_vvvvwbg == 'INT' || datatype_vvvvwbg == 'TINYINT' || datatype_vvvvwbg == 'BIGINT' || datatype_vvvvwbg == 'FLOAT' || datatype_vvvvwbg == 'DECIMAL' || datatype_vvvvwbg == 'DOUBLE')
- {
- return true;
- }
- return false;
-}
-
// the vvvvwbh function
function vvvvwbh(datatype_vvvvwbh,has_defaults_vvvvwbh)
{
@@ -414,27 +248,31 @@ function vvvvwbh(datatype_vvvvwbh,has_defaults_vvvvwbh)
// set this function logic
if (datatype && has_defaults)
{
- jQuery('#jform_store').closest('.control-group').show();
- // add required attribute to store field
+ jQuery('#jform_datadefault').closest('.control-group').show();
+ jQuery('#jform_datalenght').closest('.control-group').show();
+ jQuery('#jform_indexes').closest('.control-group').show();
+ // add required attribute to indexes field
if (jform_vvvvwbhwam_required)
{
- updateFieldRequired('store',0);
- jQuery('#jform_store').prop('required','required');
- jQuery('#jform_store').attr('aria-required',true);
- jQuery('#jform_store').addClass('required');
+ updateFieldRequired('indexes',0);
+ jQuery('#jform_indexes').prop('required','required');
+ jQuery('#jform_indexes').attr('aria-required',true);
+ jQuery('#jform_indexes').addClass('required');
jform_vvvvwbhwam_required = false;
}
}
else
{
- jQuery('#jform_store').closest('.control-group').hide();
- // remove required attribute from store field
+ jQuery('#jform_datadefault').closest('.control-group').hide();
+ jQuery('#jform_datalenght').closest('.control-group').hide();
+ jQuery('#jform_indexes').closest('.control-group').hide();
+ // remove required attribute from indexes field
if (!jform_vvvvwbhwam_required)
{
- updateFieldRequired('store',1);
- jQuery('#jform_store').removeAttr('required');
- jQuery('#jform_store').removeAttr('aria-required');
- jQuery('#jform_store').removeClass('required');
+ updateFieldRequired('indexes',1);
+ jQuery('#jform_indexes').removeAttr('required');
+ jQuery('#jform_indexes').removeAttr('aria-required');
+ jQuery('#jform_indexes').removeClass('required');
jform_vvvvwbhwam_required = true;
}
}
@@ -444,7 +282,7 @@ function vvvvwbh(datatype_vvvvwbh,has_defaults_vvvvwbh)
function datatype_vvvvwbh_SomeFunc(datatype_vvvvwbh)
{
// set the function logic
- if (datatype_vvvvwbh == 'CHAR' || datatype_vvvvwbh == 'VARCHAR' || datatype_vvvvwbh == 'TEXT' || datatype_vvvvwbh == 'MEDIUMTEXT' || datatype_vvvvwbh == 'LONGTEXT' || datatype_vvvvwbh == 'BLOB' || datatype_vvvvwbh == 'TINYBLOB' || datatype_vvvvwbh == 'MEDIUMBLOB' || datatype_vvvvwbh == 'LONGBLOB')
+ if (datatype_vvvvwbh == 'CHAR' || datatype_vvvvwbh == 'VARCHAR' || datatype_vvvvwbh == 'DATETIME' || datatype_vvvvwbh == 'DATE' || datatype_vvvvwbh == 'TIME' || datatype_vvvvwbh == 'INT' || datatype_vvvvwbh == 'TINYINT' || datatype_vvvvwbh == 'BIGINT' || datatype_vvvvwbh == 'FLOAT' || datatype_vvvvwbh == 'DECIMAL' || datatype_vvvvwbh == 'DOUBLE')
{
return true;
}
@@ -462,21 +300,92 @@ function has_defaults_vvvvwbh_SomeFunc(has_defaults_vvvvwbh)
return false;
}
-// the vvvvwbj function
-function vvvvwbj(store_vvvvwbj,datatype_vvvvwbj,has_defaults_vvvvwbj)
+// the vvvvwbi function
+function vvvvwbi(has_defaults_vvvvwbi,datatype_vvvvwbi)
{
- if (isSet(store_vvvvwbj) && store_vvvvwbj.constructor !== Array)
+ if (isSet(has_defaults_vvvvwbi) && has_defaults_vvvvwbi.constructor !== Array)
{
- var temp_vvvvwbj = store_vvvvwbj;
- var store_vvvvwbj = [];
- store_vvvvwbj.push(temp_vvvvwbj);
+ var temp_vvvvwbi = has_defaults_vvvvwbi;
+ var has_defaults_vvvvwbi = [];
+ has_defaults_vvvvwbi.push(temp_vvvvwbi);
}
- else if (!isSet(store_vvvvwbj))
+ else if (!isSet(has_defaults_vvvvwbi))
{
- var store_vvvvwbj = [];
+ var has_defaults_vvvvwbi = [];
}
- var store = store_vvvvwbj.some(store_vvvvwbj_SomeFunc);
+ var has_defaults = has_defaults_vvvvwbi.some(has_defaults_vvvvwbi_SomeFunc);
+ if (isSet(datatype_vvvvwbi) && datatype_vvvvwbi.constructor !== Array)
+ {
+ var temp_vvvvwbi = datatype_vvvvwbi;
+ var datatype_vvvvwbi = [];
+ datatype_vvvvwbi.push(temp_vvvvwbi);
+ }
+ else if (!isSet(datatype_vvvvwbi))
+ {
+ var datatype_vvvvwbi = [];
+ }
+ var datatype = datatype_vvvvwbi.some(datatype_vvvvwbi_SomeFunc);
+
+
+ // set this function logic
+ if (has_defaults && datatype)
+ {
+ jQuery('#jform_datadefault').closest('.control-group').show();
+ jQuery('#jform_datalenght').closest('.control-group').show();
+ jQuery('#jform_indexes').closest('.control-group').show();
+ // add required attribute to indexes field
+ if (jform_vvvvwbiwan_required)
+ {
+ updateFieldRequired('indexes',0);
+ jQuery('#jform_indexes').prop('required','required');
+ jQuery('#jform_indexes').attr('aria-required',true);
+ jQuery('#jform_indexes').addClass('required');
+ jform_vvvvwbiwan_required = false;
+ }
+ }
+ else
+ {
+ jQuery('#jform_datadefault').closest('.control-group').hide();
+ jQuery('#jform_datalenght').closest('.control-group').hide();
+ jQuery('#jform_indexes').closest('.control-group').hide();
+ // remove required attribute from indexes field
+ if (!jform_vvvvwbiwan_required)
+ {
+ updateFieldRequired('indexes',1);
+ jQuery('#jform_indexes').removeAttr('required');
+ jQuery('#jform_indexes').removeAttr('aria-required');
+ jQuery('#jform_indexes').removeClass('required');
+ jform_vvvvwbiwan_required = true;
+ }
+ }
+}
+
+// the vvvvwbi Some function
+function has_defaults_vvvvwbi_SomeFunc(has_defaults_vvvvwbi)
+{
+ // set the function logic
+ if (has_defaults_vvvvwbi == 1)
+ {
+ return true;
+ }
+ return false;
+}
+
+// the vvvvwbi Some function
+function datatype_vvvvwbi_SomeFunc(datatype_vvvvwbi)
+{
+ // set the function logic
+ if (datatype_vvvvwbi == 'CHAR' || datatype_vvvvwbi == 'VARCHAR' || datatype_vvvvwbi == 'DATETIME' || datatype_vvvvwbi == 'DATE' || datatype_vvvvwbi == 'TIME' || datatype_vvvvwbi == 'INT' || datatype_vvvvwbi == 'TINYINT' || datatype_vvvvwbi == 'BIGINT' || datatype_vvvvwbi == 'FLOAT' || datatype_vvvvwbi == 'DECIMAL' || datatype_vvvvwbi == 'DOUBLE')
+ {
+ return true;
+ }
+ return false;
+}
+
+// the vvvvwbj function
+function vvvvwbj(datatype_vvvvwbj,has_defaults_vvvvwbj)
+{
if (isSet(datatype_vvvvwbj) && datatype_vvvvwbj.constructor !== Array)
{
var temp_vvvvwbj = datatype_vvvvwbj;
@@ -503,27 +412,34 @@ function vvvvwbj(store_vvvvwbj,datatype_vvvvwbj,has_defaults_vvvvwbj)
// set this function logic
- if (store && datatype && has_defaults)
+ if (datatype && has_defaults)
{
- jQuery('.note_whmcs_encryption').closest('.control-group').show();
+ jQuery('#jform_store').closest('.control-group').show();
+ // add required attribute to store field
+ if (jform_vvvvwbjwao_required)
+ {
+ updateFieldRequired('store',0);
+ jQuery('#jform_store').prop('required','required');
+ jQuery('#jform_store').attr('aria-required',true);
+ jQuery('#jform_store').addClass('required');
+ jform_vvvvwbjwao_required = false;
+ }
}
else
{
- jQuery('.note_whmcs_encryption').closest('.control-group').hide();
+ jQuery('#jform_store').closest('.control-group').hide();
+ // remove required attribute from store field
+ if (!jform_vvvvwbjwao_required)
+ {
+ updateFieldRequired('store',1);
+ jQuery('#jform_store').removeAttr('required');
+ jQuery('#jform_store').removeAttr('aria-required');
+ jQuery('#jform_store').removeClass('required');
+ jform_vvvvwbjwao_required = true;
+ }
}
}
-// the vvvvwbj Some function
-function store_vvvvwbj_SomeFunc(store_vvvvwbj)
-{
- // set the function logic
- if (store_vvvvwbj == 4)
- {
- return true;
- }
- return false;
-}
-
// the vvvvwbj Some function
function datatype_vvvvwbj_SomeFunc(datatype_vvvvwbj)
{
@@ -546,105 +462,9 @@ function has_defaults_vvvvwbj_SomeFunc(has_defaults_vvvvwbj)
return false;
}
-// the vvvvwbk function
-function vvvvwbk(datatype_vvvvwbk,store_vvvvwbk,has_defaults_vvvvwbk)
-{
- if (isSet(datatype_vvvvwbk) && datatype_vvvvwbk.constructor !== Array)
- {
- var temp_vvvvwbk = datatype_vvvvwbk;
- var datatype_vvvvwbk = [];
- datatype_vvvvwbk.push(temp_vvvvwbk);
- }
- else if (!isSet(datatype_vvvvwbk))
- {
- var datatype_vvvvwbk = [];
- }
- var datatype = datatype_vvvvwbk.some(datatype_vvvvwbk_SomeFunc);
-
- if (isSet(store_vvvvwbk) && store_vvvvwbk.constructor !== Array)
- {
- var temp_vvvvwbk = store_vvvvwbk;
- var store_vvvvwbk = [];
- store_vvvvwbk.push(temp_vvvvwbk);
- }
- else if (!isSet(store_vvvvwbk))
- {
- var store_vvvvwbk = [];
- }
- var store = store_vvvvwbk.some(store_vvvvwbk_SomeFunc);
-
- if (isSet(has_defaults_vvvvwbk) && has_defaults_vvvvwbk.constructor !== Array)
- {
- var temp_vvvvwbk = has_defaults_vvvvwbk;
- var has_defaults_vvvvwbk = [];
- has_defaults_vvvvwbk.push(temp_vvvvwbk);
- }
- else if (!isSet(has_defaults_vvvvwbk))
- {
- var has_defaults_vvvvwbk = [];
- }
- var has_defaults = has_defaults_vvvvwbk.some(has_defaults_vvvvwbk_SomeFunc);
-
-
- // set this function logic
- if (datatype && store && has_defaults)
- {
- jQuery('.note_whmcs_encryption').closest('.control-group').show();
- }
- else
- {
- jQuery('.note_whmcs_encryption').closest('.control-group').hide();
- }
-}
-
-// the vvvvwbk Some function
-function datatype_vvvvwbk_SomeFunc(datatype_vvvvwbk)
-{
- // set the function logic
- if (datatype_vvvvwbk == 'CHAR' || datatype_vvvvwbk == 'VARCHAR' || datatype_vvvvwbk == 'TEXT' || datatype_vvvvwbk == 'MEDIUMTEXT' || datatype_vvvvwbk == 'LONGTEXT' || datatype_vvvvwbk == 'BLOB' || datatype_vvvvwbk == 'TINYBLOB' || datatype_vvvvwbk == 'MEDIUMBLOB' || datatype_vvvvwbk == 'LONGBLOB')
- {
- return true;
- }
- return false;
-}
-
-// the vvvvwbk Some function
-function store_vvvvwbk_SomeFunc(store_vvvvwbk)
-{
- // set the function logic
- if (store_vvvvwbk == 4)
- {
- return true;
- }
- return false;
-}
-
-// the vvvvwbk Some function
-function has_defaults_vvvvwbk_SomeFunc(has_defaults_vvvvwbk)
-{
- // set the function logic
- if (has_defaults_vvvvwbk == 1)
- {
- return true;
- }
- return false;
-}
-
// the vvvvwbl function
-function vvvvwbl(has_defaults_vvvvwbl,store_vvvvwbl,datatype_vvvvwbl)
+function vvvvwbl(store_vvvvwbl,datatype_vvvvwbl,has_defaults_vvvvwbl)
{
- if (isSet(has_defaults_vvvvwbl) && has_defaults_vvvvwbl.constructor !== Array)
- {
- var temp_vvvvwbl = has_defaults_vvvvwbl;
- var has_defaults_vvvvwbl = [];
- has_defaults_vvvvwbl.push(temp_vvvvwbl);
- }
- else if (!isSet(has_defaults_vvvvwbl))
- {
- var has_defaults_vvvvwbl = [];
- }
- var has_defaults = has_defaults_vvvvwbl.some(has_defaults_vvvvwbl_SomeFunc);
-
if (isSet(store_vvvvwbl) && store_vvvvwbl.constructor !== Array)
{
var temp_vvvvwbl = store_vvvvwbl;
@@ -669,9 +489,21 @@ function vvvvwbl(has_defaults_vvvvwbl,store_vvvvwbl,datatype_vvvvwbl)
}
var datatype = datatype_vvvvwbl.some(datatype_vvvvwbl_SomeFunc);
+ if (isSet(has_defaults_vvvvwbl) && has_defaults_vvvvwbl.constructor !== Array)
+ {
+ var temp_vvvvwbl = has_defaults_vvvvwbl;
+ var has_defaults_vvvvwbl = [];
+ has_defaults_vvvvwbl.push(temp_vvvvwbl);
+ }
+ else if (!isSet(has_defaults_vvvvwbl))
+ {
+ var has_defaults_vvvvwbl = [];
+ }
+ var has_defaults = has_defaults_vvvvwbl.some(has_defaults_vvvvwbl_SomeFunc);
+
// set this function logic
- if (has_defaults && store && datatype)
+ if (store && datatype && has_defaults)
{
jQuery('.note_whmcs_encryption').closest('.control-group').show();
}
@@ -681,17 +513,6 @@ function vvvvwbl(has_defaults_vvvvwbl,store_vvvvwbl,datatype_vvvvwbl)
}
}
-// the vvvvwbl Some function
-function has_defaults_vvvvwbl_SomeFunc(has_defaults_vvvvwbl)
-{
- // set the function logic
- if (has_defaults_vvvvwbl == 1)
- {
- return true;
- }
- return false;
-}
-
// the vvvvwbl Some function
function store_vvvvwbl_SomeFunc(store_vvvvwbl)
{
@@ -714,54 +535,233 @@ function datatype_vvvvwbl_SomeFunc(datatype_vvvvwbl)
return false;
}
+// the vvvvwbl Some function
+function has_defaults_vvvvwbl_SomeFunc(has_defaults_vvvvwbl)
+{
+ // set the function logic
+ if (has_defaults_vvvvwbl == 1)
+ {
+ return true;
+ }
+ return false;
+}
+
// the vvvvwbm function
-function vvvvwbm(has_defaults_vvvvwbm)
+function vvvvwbm(datatype_vvvvwbm,store_vvvvwbm,has_defaults_vvvvwbm)
+{
+ if (isSet(datatype_vvvvwbm) && datatype_vvvvwbm.constructor !== Array)
+ {
+ var temp_vvvvwbm = datatype_vvvvwbm;
+ var datatype_vvvvwbm = [];
+ datatype_vvvvwbm.push(temp_vvvvwbm);
+ }
+ else if (!isSet(datatype_vvvvwbm))
+ {
+ var datatype_vvvvwbm = [];
+ }
+ var datatype = datatype_vvvvwbm.some(datatype_vvvvwbm_SomeFunc);
+
+ if (isSet(store_vvvvwbm) && store_vvvvwbm.constructor !== Array)
+ {
+ var temp_vvvvwbm = store_vvvvwbm;
+ var store_vvvvwbm = [];
+ store_vvvvwbm.push(temp_vvvvwbm);
+ }
+ else if (!isSet(store_vvvvwbm))
+ {
+ var store_vvvvwbm = [];
+ }
+ var store = store_vvvvwbm.some(store_vvvvwbm_SomeFunc);
+
+ if (isSet(has_defaults_vvvvwbm) && has_defaults_vvvvwbm.constructor !== Array)
+ {
+ var temp_vvvvwbm = has_defaults_vvvvwbm;
+ var has_defaults_vvvvwbm = [];
+ has_defaults_vvvvwbm.push(temp_vvvvwbm);
+ }
+ else if (!isSet(has_defaults_vvvvwbm))
+ {
+ var has_defaults_vvvvwbm = [];
+ }
+ var has_defaults = has_defaults_vvvvwbm.some(has_defaults_vvvvwbm_SomeFunc);
+
+
+ // set this function logic
+ if (datatype && store && has_defaults)
+ {
+ jQuery('.note_whmcs_encryption').closest('.control-group').show();
+ }
+ else
+ {
+ jQuery('.note_whmcs_encryption').closest('.control-group').hide();
+ }
+}
+
+// the vvvvwbm Some function
+function datatype_vvvvwbm_SomeFunc(datatype_vvvvwbm)
+{
+ // set the function logic
+ if (datatype_vvvvwbm == 'CHAR' || datatype_vvvvwbm == 'VARCHAR' || datatype_vvvvwbm == 'TEXT' || datatype_vvvvwbm == 'MEDIUMTEXT' || datatype_vvvvwbm == 'LONGTEXT' || datatype_vvvvwbm == 'BLOB' || datatype_vvvvwbm == 'TINYBLOB' || datatype_vvvvwbm == 'MEDIUMBLOB' || datatype_vvvvwbm == 'LONGBLOB')
+ {
+ return true;
+ }
+ return false;
+}
+
+// the vvvvwbm Some function
+function store_vvvvwbm_SomeFunc(store_vvvvwbm)
+{
+ // set the function logic
+ if (store_vvvvwbm == 4)
+ {
+ return true;
+ }
+ return false;
+}
+
+// the vvvvwbm Some function
+function has_defaults_vvvvwbm_SomeFunc(has_defaults_vvvvwbm)
{
// set the function logic
if (has_defaults_vvvvwbm == 1)
+ {
+ return true;
+ }
+ return false;
+}
+
+// the vvvvwbn function
+function vvvvwbn(has_defaults_vvvvwbn,store_vvvvwbn,datatype_vvvvwbn)
+{
+ if (isSet(has_defaults_vvvvwbn) && has_defaults_vvvvwbn.constructor !== Array)
+ {
+ var temp_vvvvwbn = has_defaults_vvvvwbn;
+ var has_defaults_vvvvwbn = [];
+ has_defaults_vvvvwbn.push(temp_vvvvwbn);
+ }
+ else if (!isSet(has_defaults_vvvvwbn))
+ {
+ var has_defaults_vvvvwbn = [];
+ }
+ var has_defaults = has_defaults_vvvvwbn.some(has_defaults_vvvvwbn_SomeFunc);
+
+ if (isSet(store_vvvvwbn) && store_vvvvwbn.constructor !== Array)
+ {
+ var temp_vvvvwbn = store_vvvvwbn;
+ var store_vvvvwbn = [];
+ store_vvvvwbn.push(temp_vvvvwbn);
+ }
+ else if (!isSet(store_vvvvwbn))
+ {
+ var store_vvvvwbn = [];
+ }
+ var store = store_vvvvwbn.some(store_vvvvwbn_SomeFunc);
+
+ if (isSet(datatype_vvvvwbn) && datatype_vvvvwbn.constructor !== Array)
+ {
+ var temp_vvvvwbn = datatype_vvvvwbn;
+ var datatype_vvvvwbn = [];
+ datatype_vvvvwbn.push(temp_vvvvwbn);
+ }
+ else if (!isSet(datatype_vvvvwbn))
+ {
+ var datatype_vvvvwbn = [];
+ }
+ var datatype = datatype_vvvvwbn.some(datatype_vvvvwbn_SomeFunc);
+
+
+ // set this function logic
+ if (has_defaults && store && datatype)
+ {
+ jQuery('.note_whmcs_encryption').closest('.control-group').show();
+ }
+ else
+ {
+ jQuery('.note_whmcs_encryption').closest('.control-group').hide();
+ }
+}
+
+// the vvvvwbn Some function
+function has_defaults_vvvvwbn_SomeFunc(has_defaults_vvvvwbn)
+{
+ // set the function logic
+ if (has_defaults_vvvvwbn == 1)
+ {
+ return true;
+ }
+ return false;
+}
+
+// the vvvvwbn Some function
+function store_vvvvwbn_SomeFunc(store_vvvvwbn)
+{
+ // set the function logic
+ if (store_vvvvwbn == 4)
+ {
+ return true;
+ }
+ return false;
+}
+
+// the vvvvwbn Some function
+function datatype_vvvvwbn_SomeFunc(datatype_vvvvwbn)
+{
+ // set the function logic
+ if (datatype_vvvvwbn == 'CHAR' || datatype_vvvvwbn == 'VARCHAR' || datatype_vvvvwbn == 'TEXT' || datatype_vvvvwbn == 'MEDIUMTEXT' || datatype_vvvvwbn == 'LONGTEXT' || datatype_vvvvwbn == 'BLOB' || datatype_vvvvwbn == 'TINYBLOB' || datatype_vvvvwbn == 'MEDIUMBLOB' || datatype_vvvvwbn == 'LONGBLOB')
+ {
+ return true;
+ }
+ return false;
+}
+
+// the vvvvwbo function
+function vvvvwbo(has_defaults_vvvvwbo)
+{
+ // set the function logic
+ if (has_defaults_vvvvwbo == 1)
{
jQuery('#jform_datatype').closest('.control-group').show();
// add required attribute to datatype field
- if (jform_vvvvwbmwan_required)
+ if (jform_vvvvwbowap_required)
{
updateFieldRequired('datatype',0);
jQuery('#jform_datatype').prop('required','required');
jQuery('#jform_datatype').attr('aria-required',true);
jQuery('#jform_datatype').addClass('required');
- jform_vvvvwbmwan_required = false;
+ jform_vvvvwbowap_required = false;
}
jQuery('#jform_null_switch').closest('.control-group').show();
// add required attribute to null_switch field
- if (jform_vvvvwbmwao_required)
+ if (jform_vvvvwbowaq_required)
{
updateFieldRequired('null_switch',0);
jQuery('#jform_null_switch').prop('required','required');
jQuery('#jform_null_switch').attr('aria-required',true);
jQuery('#jform_null_switch').addClass('required');
- jform_vvvvwbmwao_required = false;
+ jform_vvvvwbowaq_required = false;
}
}
else
{
jQuery('#jform_datatype').closest('.control-group').hide();
// remove required attribute from datatype field
- if (!jform_vvvvwbmwan_required)
+ if (!jform_vvvvwbowap_required)
{
updateFieldRequired('datatype',1);
jQuery('#jform_datatype').removeAttr('required');
jQuery('#jform_datatype').removeAttr('aria-required');
jQuery('#jform_datatype').removeClass('required');
- jform_vvvvwbmwan_required = true;
+ jform_vvvvwbowap_required = true;
}
jQuery('#jform_null_switch').closest('.control-group').hide();
// remove required attribute from null_switch field
- if (!jform_vvvvwbmwao_required)
+ if (!jform_vvvvwbowaq_required)
{
updateFieldRequired('null_switch',1);
jQuery('#jform_null_switch').removeAttr('required');
jQuery('#jform_null_switch').removeAttr('aria-required');
jQuery('#jform_null_switch').removeClass('required');
- jform_vvvvwbmwao_required = true;
+ jform_vvvvwbowaq_required = true;
}
}
}
@@ -829,7 +829,7 @@ function getEditCustomCodeButtons(){
getEditCustomCodeButtons_server(id).done(function(result) {
if(isObject(result)){
jQuery.each(result, function( field, buttons ) {
- jQuery('
').insertBefore(".control-wrapper-"+ field);
+ jQuery('
').insertBefore(".control-wrapper-"+ field);
jQuery.each(buttons, function( name, button ) {
jQuery(".control-customcode-buttons-"+field).append(button);
});
diff --git a/admin/models/forms/fieldtype.xml b/admin/models/forms/fieldtype.xml
index 4dfdde50e..d29eef73b 100644
--- a/admin/models/forms/fieldtype.xml
+++ b/admin/models/forms/fieldtype.xml
@@ -278,7 +278,7 @@
class="text_area"
readonly="false"
disabled="false"
- required="false"
+ required="true"
filter="STRING"
message="COM_COMPONENTBUILDER_FIELDTYPE_NAME_MESSAGE"
hint="COM_COMPONENTBUILDER_FIELDTYPE_NAME_HINT"
@@ -296,7 +296,6 @@
class="text_area span12"
filter="RAW"
hint="COM_COMPONENTBUILDER_FIELDTYPE_EXAMPLE_HINT"
- required="false"
/>
@@ -314,7 +312,6 @@
name="mandatory"
label="COM_COMPONENTBUILDER_FIELDTYPE_MANDATORY_LABEL"
value="1"
- required="false"
description="COM_COMPONENTBUILDER_FIELDTYPE_MANDATORY_DESCRIPTION"
class="inputbox"
/>
@@ -324,7 +321,6 @@
name="translatable"
label="COM_COMPONENTBUILDER_FIELDTYPE_TRANSLATABLE_LABEL"
value="1"
- required="false"
description="COM_COMPONENTBUILDER_FIELDTYPE_TRANSLATABLE_DESCRIPTION"
class="inputbox"
/>
@@ -339,7 +335,6 @@
class="text_area"
filter="HTML"
hint="COM_COMPONENTBUILDER_FIELDTYPE_DESCRIPTION_HINT"
- required="false"
/>
diff --git a/admin/models/forms/help_document.js b/admin/models/forms/help_document.js
index 00eb01004..71a6b21b1 100644
--- a/admin/models/forms/help_document.js
+++ b/admin/models/forms/help_document.js
@@ -9,211 +9,99 @@
*/
// Some Global Values
-jform_vvvvwbxwba_required = false;
-jform_vvvvwbywbb_required = false;
jform_vvvvwbzwbc_required = false;
jform_vvvvwcawbd_required = false;
jform_vvvvwcbwbe_required = false;
jform_vvvvwccwbf_required = false;
+jform_vvvvwcdwbg_required = false;
+jform_vvvvwcewbh_required = false;
// Initial Script
jQuery(document).ready(function()
{
- var location_vvvvwbx = jQuery("#jform_location input[type='radio']:checked").val();
- vvvvwbx(location_vvvvwbx);
+ var location_vvvvwbz = jQuery("#jform_location input[type='radio']:checked").val();
+ vvvvwbz(location_vvvvwbz);
- var location_vvvvwby = jQuery("#jform_location input[type='radio']:checked").val();
- vvvvwby(location_vvvvwby);
-
- var type_vvvvwbz = jQuery("#jform_type").val();
- vvvvwbz(type_vvvvwbz);
-
- var type_vvvvwca = jQuery("#jform_type").val();
- vvvvwca(type_vvvvwca);
+ var location_vvvvwca = jQuery("#jform_location input[type='radio']:checked").val();
+ vvvvwca(location_vvvvwca);
var type_vvvvwcb = jQuery("#jform_type").val();
vvvvwcb(type_vvvvwcb);
- var target_vvvvwcc = jQuery("#jform_target input[type='radio']:checked").val();
- vvvvwcc(target_vvvvwcc);
+ var type_vvvvwcc = jQuery("#jform_type").val();
+ vvvvwcc(type_vvvvwcc);
+
+ var type_vvvvwcd = jQuery("#jform_type").val();
+ vvvvwcd(type_vvvvwcd);
+
+ var target_vvvvwce = jQuery("#jform_target input[type='radio']:checked").val();
+ vvvvwce(target_vvvvwce);
});
-// the vvvvwbx function
-function vvvvwbx(location_vvvvwbx)
+// the vvvvwbz function
+function vvvvwbz(location_vvvvwbz)
{
// set the function logic
- if (location_vvvvwbx == 1)
+ if (location_vvvvwbz == 1)
{
jQuery('#jform_admin_view').closest('.control-group').show();
// add required attribute to admin_view field
- if (jform_vvvvwbxwba_required)
+ if (jform_vvvvwbzwbc_required)
{
updateFieldRequired('admin_view',0);
jQuery('#jform_admin_view').prop('required','required');
jQuery('#jform_admin_view').attr('aria-required',true);
jQuery('#jform_admin_view').addClass('required');
- jform_vvvvwbxwba_required = false;
+ jform_vvvvwbzwbc_required = false;
}
}
else
{
jQuery('#jform_admin_view').closest('.control-group').hide();
// remove required attribute from admin_view field
- if (!jform_vvvvwbxwba_required)
+ if (!jform_vvvvwbzwbc_required)
{
updateFieldRequired('admin_view',1);
jQuery('#jform_admin_view').removeAttr('required');
jQuery('#jform_admin_view').removeAttr('aria-required');
jQuery('#jform_admin_view').removeClass('required');
- jform_vvvvwbxwba_required = true;
+ jform_vvvvwbzwbc_required = true;
}
}
}
-// the vvvvwby function
-function vvvvwby(location_vvvvwby)
+// the vvvvwca function
+function vvvvwca(location_vvvvwca)
{
// set the function logic
- if (location_vvvvwby == 2)
+ if (location_vvvvwca == 2)
{
jQuery('#jform_site_view').closest('.control-group').show();
// add required attribute to site_view field
- if (jform_vvvvwbywbb_required)
+ if (jform_vvvvwcawbd_required)
{
updateFieldRequired('site_view',0);
jQuery('#jform_site_view').prop('required','required');
jQuery('#jform_site_view').attr('aria-required',true);
jQuery('#jform_site_view').addClass('required');
- jform_vvvvwbywbb_required = false;
+ jform_vvvvwcawbd_required = false;
}
}
else
{
jQuery('#jform_site_view').closest('.control-group').hide();
// remove required attribute from site_view field
- if (!jform_vvvvwbywbb_required)
+ if (!jform_vvvvwcawbd_required)
{
updateFieldRequired('site_view',1);
jQuery('#jform_site_view').removeAttr('required');
jQuery('#jform_site_view').removeAttr('aria-required');
jQuery('#jform_site_view').removeClass('required');
- jform_vvvvwbywbb_required = true;
- }
- }
-}
-
-// the vvvvwbz function
-function vvvvwbz(type_vvvvwbz)
-{
- if (isSet(type_vvvvwbz) && type_vvvvwbz.constructor !== Array)
- {
- var temp_vvvvwbz = type_vvvvwbz;
- var type_vvvvwbz = [];
- type_vvvvwbz.push(temp_vvvvwbz);
- }
- else if (!isSet(type_vvvvwbz))
- {
- var type_vvvvwbz = [];
- }
- var type = type_vvvvwbz.some(type_vvvvwbz_SomeFunc);
-
-
- // set this function logic
- if (type)
- {
- jQuery('#jform_url').closest('.control-group').show();
- // add required attribute to url field
- if (jform_vvvvwbzwbc_required)
- {
- updateFieldRequired('url',0);
- jQuery('#jform_url').prop('required','required');
- jQuery('#jform_url').attr('aria-required',true);
- jQuery('#jform_url').addClass('required');
- jform_vvvvwbzwbc_required = false;
- }
- }
- else
- {
- jQuery('#jform_url').closest('.control-group').hide();
- // remove required attribute from url field
- if (!jform_vvvvwbzwbc_required)
- {
- updateFieldRequired('url',1);
- jQuery('#jform_url').removeAttr('required');
- jQuery('#jform_url').removeAttr('aria-required');
- jQuery('#jform_url').removeClass('required');
- jform_vvvvwbzwbc_required = true;
- }
- }
-}
-
-// the vvvvwbz Some function
-function type_vvvvwbz_SomeFunc(type_vvvvwbz)
-{
- // set the function logic
- if (type_vvvvwbz == 3)
- {
- return true;
- }
- return false;
-}
-
-// the vvvvwca function
-function vvvvwca(type_vvvvwca)
-{
- if (isSet(type_vvvvwca) && type_vvvvwca.constructor !== Array)
- {
- var temp_vvvvwca = type_vvvvwca;
- var type_vvvvwca = [];
- type_vvvvwca.push(temp_vvvvwca);
- }
- else if (!isSet(type_vvvvwca))
- {
- var type_vvvvwca = [];
- }
- var type = type_vvvvwca.some(type_vvvvwca_SomeFunc);
-
-
- // set this function logic
- if (type)
- {
- jQuery('#jform_article').closest('.control-group').show();
- // add required attribute to article field
- if (jform_vvvvwcawbd_required)
- {
- updateFieldRequired('article',0);
- jQuery('#jform_article').prop('required','required');
- jQuery('#jform_article').attr('aria-required',true);
- jQuery('#jform_article').addClass('required');
- jform_vvvvwcawbd_required = false;
- }
- }
- else
- {
- jQuery('#jform_article').closest('.control-group').hide();
- // remove required attribute from article field
- if (!jform_vvvvwcawbd_required)
- {
- updateFieldRequired('article',1);
- jQuery('#jform_article').removeAttr('required');
- jQuery('#jform_article').removeAttr('aria-required');
- jQuery('#jform_article').removeClass('required');
jform_vvvvwcawbd_required = true;
}
}
}
-// the vvvvwca Some function
-function type_vvvvwca_SomeFunc(type_vvvvwca)
-{
- // set the function logic
- if (type_vvvvwca == 1)
- {
- return true;
- }
- return false;
-}
-
// the vvvvwcb function
function vvvvwcb(type_vvvvwcb)
{
@@ -233,27 +121,27 @@ function vvvvwcb(type_vvvvwcb)
// set this function logic
if (type)
{
- jQuery('#jform_content-lbl').closest('.control-group').show();
- // add required attribute to content field
+ jQuery('#jform_url').closest('.control-group').show();
+ // add required attribute to url field
if (jform_vvvvwcbwbe_required)
{
- updateFieldRequired('content',0);
- jQuery('#jform_content').prop('required','required');
- jQuery('#jform_content').attr('aria-required',true);
- jQuery('#jform_content').addClass('required');
+ updateFieldRequired('url',0);
+ jQuery('#jform_url').prop('required','required');
+ jQuery('#jform_url').attr('aria-required',true);
+ jQuery('#jform_url').addClass('required');
jform_vvvvwcbwbe_required = false;
}
}
else
{
- jQuery('#jform_content-lbl').closest('.control-group').hide();
- // remove required attribute from content field
+ jQuery('#jform_url').closest('.control-group').hide();
+ // remove required attribute from url field
if (!jform_vvvvwcbwbe_required)
{
- updateFieldRequired('content',1);
- jQuery('#jform_content').removeAttr('required');
- jQuery('#jform_content').removeAttr('aria-required');
- jQuery('#jform_content').removeClass('required');
+ updateFieldRequired('url',1);
+ jQuery('#jform_url').removeAttr('required');
+ jQuery('#jform_url').removeAttr('aria-required');
+ jQuery('#jform_url').removeClass('required');
jform_vvvvwcbwbe_required = true;
}
}
@@ -263,7 +151,7 @@ function vvvvwcb(type_vvvvwcb)
function type_vvvvwcb_SomeFunc(type_vvvvwcb)
{
// set the function logic
- if (type_vvvvwcb == 2)
+ if (type_vvvvwcb == 3)
{
return true;
}
@@ -271,33 +159,145 @@ function type_vvvvwcb_SomeFunc(type_vvvvwcb)
}
// the vvvvwcc function
-function vvvvwcc(target_vvvvwcc)
+function vvvvwcc(type_vvvvwcc)
+{
+ if (isSet(type_vvvvwcc) && type_vvvvwcc.constructor !== Array)
+ {
+ var temp_vvvvwcc = type_vvvvwcc;
+ var type_vvvvwcc = [];
+ type_vvvvwcc.push(temp_vvvvwcc);
+ }
+ else if (!isSet(type_vvvvwcc))
+ {
+ var type_vvvvwcc = [];
+ }
+ var type = type_vvvvwcc.some(type_vvvvwcc_SomeFunc);
+
+
+ // set this function logic
+ if (type)
+ {
+ jQuery('#jform_article').closest('.control-group').show();
+ // add required attribute to article field
+ if (jform_vvvvwccwbf_required)
+ {
+ updateFieldRequired('article',0);
+ jQuery('#jform_article').prop('required','required');
+ jQuery('#jform_article').attr('aria-required',true);
+ jQuery('#jform_article').addClass('required');
+ jform_vvvvwccwbf_required = false;
+ }
+ }
+ else
+ {
+ jQuery('#jform_article').closest('.control-group').hide();
+ // remove required attribute from article field
+ if (!jform_vvvvwccwbf_required)
+ {
+ updateFieldRequired('article',1);
+ jQuery('#jform_article').removeAttr('required');
+ jQuery('#jform_article').removeAttr('aria-required');
+ jQuery('#jform_article').removeClass('required');
+ jform_vvvvwccwbf_required = true;
+ }
+ }
+}
+
+// the vvvvwcc Some function
+function type_vvvvwcc_SomeFunc(type_vvvvwcc)
{
// set the function logic
- if (target_vvvvwcc == 1)
+ if (type_vvvvwcc == 1)
+ {
+ return true;
+ }
+ return false;
+}
+
+// the vvvvwcd function
+function vvvvwcd(type_vvvvwcd)
+{
+ if (isSet(type_vvvvwcd) && type_vvvvwcd.constructor !== Array)
+ {
+ var temp_vvvvwcd = type_vvvvwcd;
+ var type_vvvvwcd = [];
+ type_vvvvwcd.push(temp_vvvvwcd);
+ }
+ else if (!isSet(type_vvvvwcd))
+ {
+ var type_vvvvwcd = [];
+ }
+ var type = type_vvvvwcd.some(type_vvvvwcd_SomeFunc);
+
+
+ // set this function logic
+ if (type)
+ {
+ jQuery('#jform_content-lbl').closest('.control-group').show();
+ // add required attribute to content field
+ if (jform_vvvvwcdwbg_required)
+ {
+ updateFieldRequired('content',0);
+ jQuery('#jform_content').prop('required','required');
+ jQuery('#jform_content').attr('aria-required',true);
+ jQuery('#jform_content').addClass('required');
+ jform_vvvvwcdwbg_required = false;
+ }
+ }
+ else
+ {
+ jQuery('#jform_content-lbl').closest('.control-group').hide();
+ // remove required attribute from content field
+ if (!jform_vvvvwcdwbg_required)
+ {
+ updateFieldRequired('content',1);
+ jQuery('#jform_content').removeAttr('required');
+ jQuery('#jform_content').removeAttr('aria-required');
+ jQuery('#jform_content').removeClass('required');
+ jform_vvvvwcdwbg_required = true;
+ }
+ }
+}
+
+// the vvvvwcd Some function
+function type_vvvvwcd_SomeFunc(type_vvvvwcd)
+{
+ // set the function logic
+ if (type_vvvvwcd == 2)
+ {
+ return true;
+ }
+ return false;
+}
+
+// the vvvvwce function
+function vvvvwce(target_vvvvwce)
+{
+ // set the function logic
+ if (target_vvvvwce == 1)
{
jQuery('#jform_groups').closest('.control-group').show();
// add required attribute to groups field
- if (jform_vvvvwccwbf_required)
+ if (jform_vvvvwcewbh_required)
{
updateFieldRequired('groups',0);
jQuery('#jform_groups').prop('required','required');
jQuery('#jform_groups').attr('aria-required',true);
jQuery('#jform_groups').addClass('required');
- jform_vvvvwccwbf_required = false;
+ jform_vvvvwcewbh_required = false;
}
}
else
{
jQuery('#jform_groups').closest('.control-group').hide();
// remove required attribute from groups field
- if (!jform_vvvvwccwbf_required)
+ if (!jform_vvvvwcewbh_required)
{
updateFieldRequired('groups',1);
jQuery('#jform_groups').removeAttr('required');
jQuery('#jform_groups').removeAttr('aria-required');
jQuery('#jform_groups').removeClass('required');
- jform_vvvvwccwbf_required = true;
+ jform_vvvvwcewbh_required = true;
}
}
}
diff --git a/admin/models/forms/joomla_component.js b/admin/models/forms/joomla_component.js
index e0b813187..b8537ce62 100644
--- a/admin/models/forms/joomla_component.js
+++ b/admin/models/forms/joomla_component.js
@@ -1184,7 +1184,7 @@ function getEditCustomCodeButtons(){
getEditCustomCodeButtons_server(id).done(function(result) {
if(isObject(result)){
jQuery.each(result, function( field, buttons ) {
- jQuery('
').insertBefore(".control-wrapper-"+ field);
+ jQuery('
').insertBefore(".control-wrapper-"+ field);
jQuery.each(buttons, function( name, button ) {
jQuery(".control-customcode-buttons-"+field).append(button);
});
diff --git a/admin/models/forms/joomla_component.xml b/admin/models/forms/joomla_component.xml
index c9694d13e..2eeedcb3a 100644
--- a/admin/models/forms/joomla_component.xml
+++ b/admin/models/forms/joomla_component.xml
@@ -1204,7 +1204,7 @@
class="text_area"
readonly="false"
disabled="false"
- required="false"
+ required="true"
filter="STRING"
message="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NAME_MESSAGE"
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NAME_HINT"
@@ -1220,7 +1220,7 @@
class="text_area"
readonly="false"
disabled="false"
- required="false"
+ required="true"
filter="STRING"
message="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_TITLE_MESSAGE"
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_TITLE_HINT"
@@ -1234,7 +1234,7 @@
maxlength="50"
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_EMAIL_DESCRIPTION"
class="text_area"
- required="false"
+ required="true"
filter="STRING"
validate="email"
message="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_EMAIL_MESSAGE"
@@ -1249,7 +1249,6 @@
maxlength="150"
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_WEBSITE_DESCRIPTION"
class="text_area"
- required="false"
filter="url"
validated="url"
scheme="http,https"
@@ -1264,7 +1263,6 @@
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_USE_DESCRIPTION"
class="fieldMedium"
multiple="false"
- required="false"
default="2">
@@ -1282,7 +1280,6 @@
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_SHOW_DESCRIPTION"
class="fieldMedium"
multiple="false"
- required="false"
default="3">
diff --git a/admin/models/forms/language_translation.xml b/admin/models/forms/language_translation.xml
index ecdc213d7..9a4f34015 100644
--- a/admin/models/forms/language_translation.xml
+++ b/admin/models/forms/language_translation.xml
@@ -133,7 +133,6 @@
class="text_area translation_text_area"
filter="STRING"
hint="COM_COMPONENTBUILDER_LANGUAGE_TRANSLATION_TRANSLATION_HINT"
- required="false"
/>
diff --git a/admin/models/forms/layout.js b/admin/models/forms/layout.js
index 2a0fbe32d..182ca629e 100644
--- a/admin/models/forms/layout.js
+++ b/admin/models/forms/layout.js
@@ -9,43 +9,43 @@
*/
// Some Global Values
-jform_vvvvvzdvyz_required = false;
+jform_vvvvvzfvzb_required = false;
// Initial Script
jQuery(document).ready(function()
{
- var add_php_view_vvvvvzd = jQuery("#jform_add_php_view input[type='radio']:checked").val();
- vvvvvzd(add_php_view_vvvvvzd);
+ var add_php_view_vvvvvzf = jQuery("#jform_add_php_view input[type='radio']:checked").val();
+ vvvvvzf(add_php_view_vvvvvzf);
});
-// the vvvvvzd function
-function vvvvvzd(add_php_view_vvvvvzd)
+// the vvvvvzf function
+function vvvvvzf(add_php_view_vvvvvzf)
{
// set the function logic
- if (add_php_view_vvvvvzd == 1)
+ if (add_php_view_vvvvvzf == 1)
{
jQuery('#jform_php_view-lbl').closest('.control-group').show();
// add required attribute to php_view field
- if (jform_vvvvvzdvyz_required)
+ if (jform_vvvvvzfvzb_required)
{
updateFieldRequired('php_view',0);
jQuery('#jform_php_view').prop('required','required');
jQuery('#jform_php_view').attr('aria-required',true);
jQuery('#jform_php_view').addClass('required');
- jform_vvvvvzdvyz_required = false;
+ jform_vvvvvzfvzb_required = false;
}
}
else
{
jQuery('#jform_php_view-lbl').closest('.control-group').hide();
// remove required attribute from php_view field
- if (!jform_vvvvvzdvyz_required)
+ if (!jform_vvvvvzfvzb_required)
{
updateFieldRequired('php_view',1);
jQuery('#jform_php_view').removeAttr('required');
jQuery('#jform_php_view').removeAttr('aria-required');
jQuery('#jform_php_view').removeClass('required');
- jform_vvvvvzdvyz_required = true;
+ jform_vvvvvzfvzb_required = true;
}
}
}
@@ -113,7 +113,7 @@ function getEditCustomCodeButtons(){
getEditCustomCodeButtons_server(id).done(function(result) {
if(isObject(result)){
jQuery.each(result, function( field, buttons ) {
- jQuery('').insertBefore(".control-wrapper-"+ field);
+ jQuery('').insertBefore(".control-wrapper-"+ field);
jQuery.each(buttons, function( name, button ) {
jQuery(".control-customcode-buttons-"+field).append(button);
});
diff --git a/admin/models/forms/library.js b/admin/models/forms/library.js
index 148612aed..6c3d5b0da 100644
--- a/admin/models/forms/library.js
+++ b/admin/models/forms/library.js
@@ -9,18 +9,12 @@
*/
// Some Global Values
-jform_vvvvwakvzy_required = false;
-jform_vvvvwaqvzz_required = false;
+jform_vvvvwamwaa_required = false;
+jform_vvvvwaswab_required = false;
// Initial Script
jQuery(document).ready(function()
{
- var how_vvvvwaj = jQuery("#jform_how").val();
- vvvvwaj(how_vvvvwaj);
-
- var how_vvvvwak = jQuery("#jform_how").val();
- vvvvwak(how_vvvvwak);
-
var how_vvvvwal = jQuery("#jform_how").val();
vvvvwal(how_vvvvwal);
@@ -36,104 +30,16 @@ jQuery(document).ready(function()
var how_vvvvwap = jQuery("#jform_how").val();
vvvvwap(how_vvvvwap);
- var type_vvvvwaq = jQuery("#jform_type input[type='radio']:checked").val();
- vvvvwaq(type_vvvvwaq);
+ var how_vvvvwaq = jQuery("#jform_how").val();
+ vvvvwaq(how_vvvvwaq);
+
+ var how_vvvvwar = jQuery("#jform_how").val();
+ vvvvwar(how_vvvvwar);
+
+ var type_vvvvwas = jQuery("#jform_type input[type='radio']:checked").val();
+ vvvvwas(type_vvvvwas);
});
-// the vvvvwaj function
-function vvvvwaj(how_vvvvwaj)
-{
- if (isSet(how_vvvvwaj) && how_vvvvwaj.constructor !== Array)
- {
- var temp_vvvvwaj = how_vvvvwaj;
- var how_vvvvwaj = [];
- how_vvvvwaj.push(temp_vvvvwaj);
- }
- else if (!isSet(how_vvvvwaj))
- {
- var how_vvvvwaj = [];
- }
- var how = how_vvvvwaj.some(how_vvvvwaj_SomeFunc);
-
-
- // set this function logic
- if (how)
- {
- jQuery('#jform_addconditions-lbl').closest('.control-group').show();
- }
- else
- {
- jQuery('#jform_addconditions-lbl').closest('.control-group').hide();
- }
-}
-
-// the vvvvwaj Some function
-function how_vvvvwaj_SomeFunc(how_vvvvwaj)
-{
- // set the function logic
- if (how_vvvvwaj == 2)
- {
- return true;
- }
- return false;
-}
-
-// the vvvvwak function
-function vvvvwak(how_vvvvwak)
-{
- if (isSet(how_vvvvwak) && how_vvvvwak.constructor !== Array)
- {
- var temp_vvvvwak = how_vvvvwak;
- var how_vvvvwak = [];
- how_vvvvwak.push(temp_vvvvwak);
- }
- else if (!isSet(how_vvvvwak))
- {
- var how_vvvvwak = [];
- }
- var how = how_vvvvwak.some(how_vvvvwak_SomeFunc);
-
-
- // set this function logic
- if (how)
- {
- jQuery('#jform_php_setdocument').closest('.control-group').show();
- // add required attribute to php_setdocument field
- if (jform_vvvvwakvzy_required)
- {
- updateFieldRequired('php_setdocument',0);
- jQuery('#jform_php_setdocument').prop('required','required');
- jQuery('#jform_php_setdocument').attr('aria-required',true);
- jQuery('#jform_php_setdocument').addClass('required');
- jform_vvvvwakvzy_required = false;
- }
- }
- else
- {
- jQuery('#jform_php_setdocument').closest('.control-group').hide();
- // remove required attribute from php_setdocument field
- if (!jform_vvvvwakvzy_required)
- {
- updateFieldRequired('php_setdocument',1);
- jQuery('#jform_php_setdocument').removeAttr('required');
- jQuery('#jform_php_setdocument').removeAttr('aria-required');
- jQuery('#jform_php_setdocument').removeClass('required');
- jform_vvvvwakvzy_required = true;
- }
- }
-}
-
-// the vvvvwak Some function
-function how_vvvvwak_SomeFunc(how_vvvvwak)
-{
- // set the function logic
- if (how_vvvvwak == 3)
- {
- return true;
- }
- return false;
-}
-
// the vvvvwal function
function vvvvwal(how_vvvvwal)
{
@@ -153,11 +59,11 @@ function vvvvwal(how_vvvvwal)
// set this function logic
if (how)
{
- jQuery('.note_display_library_config').closest('.control-group').show();
+ jQuery('#jform_addconditions-lbl').closest('.control-group').show();
}
else
{
- jQuery('.note_display_library_config').closest('.control-group').hide();
+ jQuery('#jform_addconditions-lbl').closest('.control-group').hide();
}
}
@@ -165,7 +71,7 @@ function vvvvwal(how_vvvvwal)
function how_vvvvwal_SomeFunc(how_vvvvwal)
{
// set the function logic
- if (how_vvvvwal == 2 || how_vvvvwal == 3)
+ if (how_vvvvwal == 2)
{
return true;
}
@@ -191,11 +97,29 @@ function vvvvwam(how_vvvvwam)
// set this function logic
if (how)
{
- jQuery('.note_display_library_files_folders_urls').closest('.control-group').show();
+ jQuery('#jform_php_setdocument').closest('.control-group').show();
+ // add required attribute to php_setdocument field
+ if (jform_vvvvwamwaa_required)
+ {
+ updateFieldRequired('php_setdocument',0);
+ jQuery('#jform_php_setdocument').prop('required','required');
+ jQuery('#jform_php_setdocument').attr('aria-required',true);
+ jQuery('#jform_php_setdocument').addClass('required');
+ jform_vvvvwamwaa_required = false;
+ }
}
else
{
- jQuery('.note_display_library_files_folders_urls').closest('.control-group').hide();
+ jQuery('#jform_php_setdocument').closest('.control-group').hide();
+ // remove required attribute from php_setdocument field
+ if (!jform_vvvvwamwaa_required)
+ {
+ updateFieldRequired('php_setdocument',1);
+ jQuery('#jform_php_setdocument').removeAttr('required');
+ jQuery('#jform_php_setdocument').removeAttr('aria-required');
+ jQuery('#jform_php_setdocument').removeClass('required');
+ jform_vvvvwamwaa_required = true;
+ }
}
}
@@ -203,7 +127,7 @@ function vvvvwam(how_vvvvwam)
function how_vvvvwam_SomeFunc(how_vvvvwam)
{
// set the function logic
- if (how_vvvvwam == 1 || how_vvvvwam == 2 || how_vvvvwam == 3)
+ if (how_vvvvwam == 3)
{
return true;
}
@@ -229,15 +153,11 @@ function vvvvwan(how_vvvvwan)
// set this function logic
if (how)
{
- jQuery('.note_no_behaviour_one').closest('.control-group').show();
- jQuery('.note_no_behaviour_three').closest('.control-group').show();
- jQuery('.note_no_behaviour_two').closest('.control-group').show();
+ jQuery('.note_display_library_config').closest('.control-group').show();
}
else
{
- jQuery('.note_no_behaviour_one').closest('.control-group').hide();
- jQuery('.note_no_behaviour_three').closest('.control-group').hide();
- jQuery('.note_no_behaviour_two').closest('.control-group').hide();
+ jQuery('.note_display_library_config').closest('.control-group').hide();
}
}
@@ -245,7 +165,7 @@ function vvvvwan(how_vvvvwan)
function how_vvvvwan_SomeFunc(how_vvvvwan)
{
// set the function logic
- if (how_vvvvwan == 0)
+ if (how_vvvvwan == 2 || how_vvvvwan == 3)
{
return true;
}
@@ -271,13 +191,11 @@ function vvvvwao(how_vvvvwao)
// set this function logic
if (how)
{
- jQuery('.note_yes_behaviour_one').closest('.control-group').show();
- jQuery('.note_yes_behaviour_two').closest('.control-group').show();
+ jQuery('.note_display_library_files_folders_urls').closest('.control-group').show();
}
else
{
- jQuery('.note_yes_behaviour_one').closest('.control-group').hide();
- jQuery('.note_yes_behaviour_two').closest('.control-group').hide();
+ jQuery('.note_display_library_files_folders_urls').closest('.control-group').hide();
}
}
@@ -285,7 +203,7 @@ function vvvvwao(how_vvvvwao)
function how_vvvvwao_SomeFunc(how_vvvvwao)
{
// set the function logic
- if (how_vvvvwao == 1)
+ if (how_vvvvwao == 1 || how_vvvvwao == 2 || how_vvvvwao == 3)
{
return true;
}
@@ -308,6 +226,88 @@ function vvvvwap(how_vvvvwap)
var how = how_vvvvwap.some(how_vvvvwap_SomeFunc);
+ // set this function logic
+ if (how)
+ {
+ jQuery('.note_no_behaviour_one').closest('.control-group').show();
+ jQuery('.note_no_behaviour_three').closest('.control-group').show();
+ jQuery('.note_no_behaviour_two').closest('.control-group').show();
+ }
+ else
+ {
+ jQuery('.note_no_behaviour_one').closest('.control-group').hide();
+ jQuery('.note_no_behaviour_three').closest('.control-group').hide();
+ jQuery('.note_no_behaviour_two').closest('.control-group').hide();
+ }
+}
+
+// the vvvvwap Some function
+function how_vvvvwap_SomeFunc(how_vvvvwap)
+{
+ // set the function logic
+ if (how_vvvvwap == 0)
+ {
+ return true;
+ }
+ return false;
+}
+
+// the vvvvwaq function
+function vvvvwaq(how_vvvvwaq)
+{
+ if (isSet(how_vvvvwaq) && how_vvvvwaq.constructor !== Array)
+ {
+ var temp_vvvvwaq = how_vvvvwaq;
+ var how_vvvvwaq = [];
+ how_vvvvwaq.push(temp_vvvvwaq);
+ }
+ else if (!isSet(how_vvvvwaq))
+ {
+ var how_vvvvwaq = [];
+ }
+ var how = how_vvvvwaq.some(how_vvvvwaq_SomeFunc);
+
+
+ // set this function logic
+ if (how)
+ {
+ jQuery('.note_yes_behaviour_one').closest('.control-group').show();
+ jQuery('.note_yes_behaviour_two').closest('.control-group').show();
+ }
+ else
+ {
+ jQuery('.note_yes_behaviour_one').closest('.control-group').hide();
+ jQuery('.note_yes_behaviour_two').closest('.control-group').hide();
+ }
+}
+
+// the vvvvwaq Some function
+function how_vvvvwaq_SomeFunc(how_vvvvwaq)
+{
+ // set the function logic
+ if (how_vvvvwaq == 1)
+ {
+ return true;
+ }
+ return false;
+}
+
+// the vvvvwar function
+function vvvvwar(how_vvvvwar)
+{
+ if (isSet(how_vvvvwar) && how_vvvvwar.constructor !== Array)
+ {
+ var temp_vvvvwar = how_vvvvwar;
+ var how_vvvvwar = [];
+ how_vvvvwar.push(temp_vvvvwar);
+ }
+ else if (!isSet(how_vvvvwar))
+ {
+ var how_vvvvwar = [];
+ }
+ var how = how_vvvvwar.some(how_vvvvwar_SomeFunc);
+
+
// set this function logic
if (how)
{
@@ -323,45 +323,45 @@ function vvvvwap(how_vvvvwap)
}
}
-// the vvvvwap Some function
-function how_vvvvwap_SomeFunc(how_vvvvwap)
+// the vvvvwar Some function
+function how_vvvvwar_SomeFunc(how_vvvvwar)
{
// set the function logic
- if (how_vvvvwap == 4)
+ if (how_vvvvwar == 4)
{
return true;
}
return false;
}
-// the vvvvwaq function
-function vvvvwaq(type_vvvvwaq)
+// the vvvvwas function
+function vvvvwas(type_vvvvwas)
{
// set the function logic
- if (type_vvvvwaq == 2)
+ if (type_vvvvwas == 2)
{
jQuery('#jform_libraries').closest('.control-group').show();
// add required attribute to libraries field
- if (jform_vvvvwaqvzz_required)
+ if (jform_vvvvwaswab_required)
{
updateFieldRequired('libraries',0);
jQuery('#jform_libraries').prop('required','required');
jQuery('#jform_libraries').attr('aria-required',true);
jQuery('#jform_libraries').addClass('required');
- jform_vvvvwaqvzz_required = false;
+ jform_vvvvwaswab_required = false;
}
}
else
{
jQuery('#jform_libraries').closest('.control-group').hide();
// remove required attribute from libraries field
- if (!jform_vvvvwaqvzz_required)
+ if (!jform_vvvvwaswab_required)
{
updateFieldRequired('libraries',1);
jQuery('#jform_libraries').removeAttr('required');
jQuery('#jform_libraries').removeAttr('aria-required');
jQuery('#jform_libraries').removeClass('required');
- jform_vvvvwaqvzz_required = true;
+ jform_vvvvwaswab_required = true;
}
}
}
@@ -491,7 +491,7 @@ function getEditCustomCodeButtons(){
getEditCustomCodeButtons_server(id).done(function(result) {
if(isObject(result)){
jQuery.each(result, function( field, buttons ) {
- jQuery('').insertBefore(".control-wrapper-"+ field);
+ jQuery('').insertBefore(".control-wrapper-"+ field);
jQuery.each(buttons, function( name, button ) {
jQuery(".control-customcode-buttons-"+field).append(button);
});
diff --git a/admin/models/forms/library.xml b/admin/models/forms/library.xml
index c3ab905b8..c16da1c47 100644
--- a/admin/models/forms/library.xml
+++ b/admin/models/forms/library.xml
@@ -211,7 +211,7 @@
class="list_class"
multiple="true"
default="0"
- required="false"
+ required="true"
button="false"
/>
@@ -223,7 +223,7 @@
class="list_class"
multiple="false"
filter="INT"
- required="false"
+ required="true"
default="1">
@@ -240,7 +240,7 @@
class="list_class"
multiple="false"
filter="INT"
- required="false"
+ required="true"
default="0">
@@ -255,7 +255,7 @@
label="COM_COMPONENTBUILDER_LIBRARY_OPTION_FIELD_LABEL"
description="COM_COMPONENTBUILDER_LIBRARY_OPTION_FIELD_DESCRIPTION"
multiple="false"
- required="false"
+ required="true"
button="false"
/>
@@ -267,7 +267,7 @@
class="list_class"
multiple="false"
filter="INT"
- required="false"
+ required="true"
default="1">
@@ -305,7 +305,7 @@
class="text_area"
filter="STRING"
hint="COM_COMPONENTBUILDER_LIBRARY_FIELD_OPTIONS_HINT"
- required="false"
+ required="true"
/>
diff --git a/admin/models/forms/library_config.xml b/admin/models/forms/library_config.xml
index c3c93af2d..01815163c 100644
--- a/admin/models/forms/library_config.xml
+++ b/admin/models/forms/library_config.xml
@@ -117,7 +117,7 @@
class="list_class fieldFull"
multiple="false"
default=""
- required="false"
+ required="true"
button="false"
/>
diff --git a/admin/models/forms/library_files_folders_urls.xml b/admin/models/forms/library_files_folders_urls.xml
index 284dd96a0..d7e733258 100644
--- a/admin/models/forms/library_files_folders_urls.xml
+++ b/admin/models/forms/library_files_folders_urls.xml
@@ -136,7 +136,7 @@
class="text_area"
readonly="false"
disabled="false"
- required="false"
+ required="true"
filter="PATH"
message="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_PATH_MESSAGE"
hint="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_PATH_HINT"
@@ -148,7 +148,6 @@
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_RENAME_LABEL"
value="1"
default=""
- required="false"
class="inputbox"
/>
@@ -192,7 +191,7 @@
class="text_area"
readonly="false"
disabled="false"
- required="false"
+ required="true"
filter="PATH"
message="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_PATH_MESSAGE"
hint="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_PATH_HINT"
@@ -204,7 +203,6 @@
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_NOTNEW_LABEL"
value="1"
default=""
- required="false"
description="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_NOTNEW_DESCRIPTION"
class="inputbox"
/>
@@ -232,7 +230,7 @@
class="list_class"
multiple="false"
default="0"
- required="false"
+ required="true"
button="false"
/>
@@ -246,7 +244,7 @@
class="text_area"
readonly="false"
disabled="false"
- required="false"
+ required="true"
filter="PATH"
message="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_PATH_MESSAGE"
hint="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_PATH_HINT"
@@ -258,7 +256,6 @@
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_RENAME_LABEL"
value="1"
default=""
- required="false"
class="inputbox"
/>
@@ -285,7 +282,7 @@
class="list_class"
multiple="false"
default="0"
- required="false"
+ required="true"
button="false"
/>
@@ -299,7 +296,7 @@
class="text_area"
readonly="false"
disabled="false"
- required="false"
+ required="true"
filter="PATH"
message="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_PATH_MESSAGE"
hint="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_PATH_HINT"
@@ -311,7 +308,6 @@
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_NOTNEW_LABEL"
value="1"
default=""
- required="false"
description="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_NOTNEW_DESCRIPTION"
class="inputbox"
/>
@@ -340,7 +336,7 @@
default=""
description="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_URL_DESCRIPTION"
class="text_area"
- required="false"
+ required="true"
filter="url"
validated="url"
message="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_URL_MESSAGE"
@@ -355,7 +351,7 @@
class="list_class"
multiple="false"
filter="INT"
- required="false"
+ required="true"
default="1">
diff --git a/admin/models/forms/placeholder.js b/admin/models/forms/placeholder.js
index b7470de5d..871f1b71d 100644
--- a/admin/models/forms/placeholder.js
+++ b/admin/models/forms/placeholder.js
@@ -79,8 +79,8 @@ function placedin(placeholder, ide) {
jQuery('#note-placedin-not').hide();
jQuery('#note-placedin-found').hide();
jQuery('#loading-placedin').show();
- var targets = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n']; // if you update this, also update (below 13) & [customcode-codeUsedInHtmlNote]!
- var targetNumber = 13;
+ var targets = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p']; // if you update this, also update (below 15) & [customcode-codeUsedInHtmlNote]!
+ var targetNumber = 15;
var run = 0;
var placedinChecker = setInterval(function(){
var target = targets[run];
diff --git a/admin/models/forms/server.js b/admin/models/forms/server.js
index 37b400b83..0a0f955ac 100644
--- a/admin/models/forms/server.js
+++ b/admin/models/forms/server.js
@@ -9,28 +9,24 @@
*/
// Some Global Values
-jform_vvvvwbnwaq_required = false;
-jform_vvvvwbnwar_required = false;
-jform_vvvvwbnwas_required = false;
-jform_vvvvwbnwat_required = false;
-jform_vvvvwbnwau_required = false;
-jform_vvvvwbowav_required = false;
+jform_vvvvwbpwas_required = false;
+jform_vvvvwbpwat_required = false;
+jform_vvvvwbpwau_required = false;
+jform_vvvvwbpwav_required = false;
jform_vvvvwbpwaw_required = false;
-jform_vvvvwbrwax_required = false;
-jform_vvvvwbtway_required = false;
+jform_vvvvwbqwax_required = false;
+jform_vvvvwbrway_required = false;
+jform_vvvvwbtwaz_required = false;
+jform_vvvvwbvwba_required = false;
// Initial Script
jQuery(document).ready(function()
{
- var protocol_vvvvwbn = jQuery("#jform_protocol").val();
- vvvvwbn(protocol_vvvvwbn);
-
- var protocol_vvvvwbo = jQuery("#jform_protocol").val();
- vvvvwbo(protocol_vvvvwbo);
-
var protocol_vvvvwbp = jQuery("#jform_protocol").val();
- var authentication_vvvvwbp = jQuery("#jform_authentication").val();
- vvvvwbp(protocol_vvvvwbp,authentication_vvvvwbp);
+ vvvvwbp(protocol_vvvvwbp);
+
+ var protocol_vvvvwbq = jQuery("#jform_protocol").val();
+ vvvvwbq(protocol_vvvvwbq);
var protocol_vvvvwbr = jQuery("#jform_protocol").val();
var authentication_vvvvwbr = jQuery("#jform_authentication").val();
@@ -43,206 +39,14 @@ jQuery(document).ready(function()
var protocol_vvvvwbv = jQuery("#jform_protocol").val();
var authentication_vvvvwbv = jQuery("#jform_authentication").val();
vvvvwbv(protocol_vvvvwbv,authentication_vvvvwbv);
+
+ var protocol_vvvvwbx = jQuery("#jform_protocol").val();
+ var authentication_vvvvwbx = jQuery("#jform_authentication").val();
+ vvvvwbx(protocol_vvvvwbx,authentication_vvvvwbx);
});
-// the vvvvwbn function
-function vvvvwbn(protocol_vvvvwbn)
-{
- if (isSet(protocol_vvvvwbn) && protocol_vvvvwbn.constructor !== Array)
- {
- var temp_vvvvwbn = protocol_vvvvwbn;
- var protocol_vvvvwbn = [];
- protocol_vvvvwbn.push(temp_vvvvwbn);
- }
- else if (!isSet(protocol_vvvvwbn))
- {
- var protocol_vvvvwbn = [];
- }
- var protocol = protocol_vvvvwbn.some(protocol_vvvvwbn_SomeFunc);
-
-
- // set this function logic
- if (protocol)
- {
- jQuery('#jform_authentication').closest('.control-group').show();
- // add required attribute to authentication field
- if (jform_vvvvwbnwaq_required)
- {
- updateFieldRequired('authentication',0);
- jQuery('#jform_authentication').prop('required','required');
- jQuery('#jform_authentication').attr('aria-required',true);
- jQuery('#jform_authentication').addClass('required');
- jform_vvvvwbnwaq_required = false;
- }
- jQuery('#jform_host').closest('.control-group').show();
- // add required attribute to host field
- if (jform_vvvvwbnwar_required)
- {
- updateFieldRequired('host',0);
- jQuery('#jform_host').prop('required','required');
- jQuery('#jform_host').attr('aria-required',true);
- jQuery('#jform_host').addClass('required');
- jform_vvvvwbnwar_required = false;
- }
- jQuery('#jform_port').closest('.control-group').show();
- // add required attribute to port field
- if (jform_vvvvwbnwas_required)
- {
- updateFieldRequired('port',0);
- jQuery('#jform_port').prop('required','required');
- jQuery('#jform_port').attr('aria-required',true);
- jQuery('#jform_port').addClass('required');
- jform_vvvvwbnwas_required = false;
- }
- jQuery('#jform_path').closest('.control-group').show();
- // add required attribute to path field
- if (jform_vvvvwbnwat_required)
- {
- updateFieldRequired('path',0);
- jQuery('#jform_path').prop('required','required');
- jQuery('#jform_path').attr('aria-required',true);
- jQuery('#jform_path').addClass('required');
- jform_vvvvwbnwat_required = false;
- }
- jQuery('.note_ssh_security').closest('.control-group').show();
- jQuery('#jform_username').closest('.control-group').show();
- // add required attribute to username field
- if (jform_vvvvwbnwau_required)
- {
- updateFieldRequired('username',0);
- jQuery('#jform_username').prop('required','required');
- jQuery('#jform_username').attr('aria-required',true);
- jQuery('#jform_username').addClass('required');
- jform_vvvvwbnwau_required = false;
- }
- }
- else
- {
- jQuery('#jform_authentication').closest('.control-group').hide();
- // remove required attribute from authentication field
- if (!jform_vvvvwbnwaq_required)
- {
- updateFieldRequired('authentication',1);
- jQuery('#jform_authentication').removeAttr('required');
- jQuery('#jform_authentication').removeAttr('aria-required');
- jQuery('#jform_authentication').removeClass('required');
- jform_vvvvwbnwaq_required = true;
- }
- jQuery('#jform_host').closest('.control-group').hide();
- // remove required attribute from host field
- if (!jform_vvvvwbnwar_required)
- {
- updateFieldRequired('host',1);
- jQuery('#jform_host').removeAttr('required');
- jQuery('#jform_host').removeAttr('aria-required');
- jQuery('#jform_host').removeClass('required');
- jform_vvvvwbnwar_required = true;
- }
- jQuery('#jform_port').closest('.control-group').hide();
- // remove required attribute from port field
- if (!jform_vvvvwbnwas_required)
- {
- updateFieldRequired('port',1);
- jQuery('#jform_port').removeAttr('required');
- jQuery('#jform_port').removeAttr('aria-required');
- jQuery('#jform_port').removeClass('required');
- jform_vvvvwbnwas_required = true;
- }
- jQuery('#jform_path').closest('.control-group').hide();
- // remove required attribute from path field
- if (!jform_vvvvwbnwat_required)
- {
- updateFieldRequired('path',1);
- jQuery('#jform_path').removeAttr('required');
- jQuery('#jform_path').removeAttr('aria-required');
- jQuery('#jform_path').removeClass('required');
- jform_vvvvwbnwat_required = true;
- }
- jQuery('.note_ssh_security').closest('.control-group').hide();
- jQuery('#jform_username').closest('.control-group').hide();
- // remove required attribute from username field
- if (!jform_vvvvwbnwau_required)
- {
- updateFieldRequired('username',1);
- jQuery('#jform_username').removeAttr('required');
- jQuery('#jform_username').removeAttr('aria-required');
- jQuery('#jform_username').removeClass('required');
- jform_vvvvwbnwau_required = true;
- }
- }
-}
-
-// the vvvvwbn Some function
-function protocol_vvvvwbn_SomeFunc(protocol_vvvvwbn)
-{
- // set the function logic
- if (protocol_vvvvwbn == 2)
- {
- return true;
- }
- return false;
-}
-
-// the vvvvwbo function
-function vvvvwbo(protocol_vvvvwbo)
-{
- if (isSet(protocol_vvvvwbo) && protocol_vvvvwbo.constructor !== Array)
- {
- var temp_vvvvwbo = protocol_vvvvwbo;
- var protocol_vvvvwbo = [];
- protocol_vvvvwbo.push(temp_vvvvwbo);
- }
- else if (!isSet(protocol_vvvvwbo))
- {
- var protocol_vvvvwbo = [];
- }
- var protocol = protocol_vvvvwbo.some(protocol_vvvvwbo_SomeFunc);
-
-
- // set this function logic
- if (protocol)
- {
- jQuery('.note_ftp_signature').closest('.control-group').show();
- jQuery('#jform_signature').closest('.control-group').show();
- // add required attribute to signature field
- if (jform_vvvvwbowav_required)
- {
- updateFieldRequired('signature',0);
- jQuery('#jform_signature').prop('required','required');
- jQuery('#jform_signature').attr('aria-required',true);
- jQuery('#jform_signature').addClass('required');
- jform_vvvvwbowav_required = false;
- }
- }
- else
- {
- jQuery('.note_ftp_signature').closest('.control-group').hide();
- jQuery('#jform_signature').closest('.control-group').hide();
- // remove required attribute from signature field
- if (!jform_vvvvwbowav_required)
- {
- updateFieldRequired('signature',1);
- jQuery('#jform_signature').removeAttr('required');
- jQuery('#jform_signature').removeAttr('aria-required');
- jQuery('#jform_signature').removeClass('required');
- jform_vvvvwbowav_required = true;
- }
- }
-}
-
-// the vvvvwbo Some function
-function protocol_vvvvwbo_SomeFunc(protocol_vvvvwbo)
-{
- // set the function logic
- if (protocol_vvvvwbo == 1)
- {
- return true;
- }
- return false;
-}
-
// the vvvvwbp function
-function vvvvwbp(protocol_vvvvwbp,authentication_vvvvwbp)
+function vvvvwbp(protocol_vvvvwbp)
{
if (isSet(protocol_vvvvwbp) && protocol_vvvvwbp.constructor !== Array)
{
@@ -256,43 +60,113 @@ function vvvvwbp(protocol_vvvvwbp,authentication_vvvvwbp)
}
var protocol = protocol_vvvvwbp.some(protocol_vvvvwbp_SomeFunc);
- if (isSet(authentication_vvvvwbp) && authentication_vvvvwbp.constructor !== Array)
- {
- var temp_vvvvwbp = authentication_vvvvwbp;
- var authentication_vvvvwbp = [];
- authentication_vvvvwbp.push(temp_vvvvwbp);
- }
- else if (!isSet(authentication_vvvvwbp))
- {
- var authentication_vvvvwbp = [];
- }
- var authentication = authentication_vvvvwbp.some(authentication_vvvvwbp_SomeFunc);
-
// set this function logic
- if (protocol && authentication)
+ if (protocol)
{
- jQuery('#jform_password').closest('.control-group').show();
- // add required attribute to password field
+ jQuery('#jform_authentication').closest('.control-group').show();
+ // add required attribute to authentication field
+ if (jform_vvvvwbpwas_required)
+ {
+ updateFieldRequired('authentication',0);
+ jQuery('#jform_authentication').prop('required','required');
+ jQuery('#jform_authentication').attr('aria-required',true);
+ jQuery('#jform_authentication').addClass('required');
+ jform_vvvvwbpwas_required = false;
+ }
+ jQuery('#jform_host').closest('.control-group').show();
+ // add required attribute to host field
+ if (jform_vvvvwbpwat_required)
+ {
+ updateFieldRequired('host',0);
+ jQuery('#jform_host').prop('required','required');
+ jQuery('#jform_host').attr('aria-required',true);
+ jQuery('#jform_host').addClass('required');
+ jform_vvvvwbpwat_required = false;
+ }
+ jQuery('#jform_port').closest('.control-group').show();
+ // add required attribute to port field
+ if (jform_vvvvwbpwau_required)
+ {
+ updateFieldRequired('port',0);
+ jQuery('#jform_port').prop('required','required');
+ jQuery('#jform_port').attr('aria-required',true);
+ jQuery('#jform_port').addClass('required');
+ jform_vvvvwbpwau_required = false;
+ }
+ jQuery('#jform_path').closest('.control-group').show();
+ // add required attribute to path field
+ if (jform_vvvvwbpwav_required)
+ {
+ updateFieldRequired('path',0);
+ jQuery('#jform_path').prop('required','required');
+ jQuery('#jform_path').attr('aria-required',true);
+ jQuery('#jform_path').addClass('required');
+ jform_vvvvwbpwav_required = false;
+ }
+ jQuery('.note_ssh_security').closest('.control-group').show();
+ jQuery('#jform_username').closest('.control-group').show();
+ // add required attribute to username field
if (jform_vvvvwbpwaw_required)
{
- updateFieldRequired('password',0);
- jQuery('#jform_password').prop('required','required');
- jQuery('#jform_password').attr('aria-required',true);
- jQuery('#jform_password').addClass('required');
+ updateFieldRequired('username',0);
+ jQuery('#jform_username').prop('required','required');
+ jQuery('#jform_username').attr('aria-required',true);
+ jQuery('#jform_username').addClass('required');
jform_vvvvwbpwaw_required = false;
}
}
else
{
- jQuery('#jform_password').closest('.control-group').hide();
- // remove required attribute from password field
+ jQuery('#jform_authentication').closest('.control-group').hide();
+ // remove required attribute from authentication field
+ if (!jform_vvvvwbpwas_required)
+ {
+ updateFieldRequired('authentication',1);
+ jQuery('#jform_authentication').removeAttr('required');
+ jQuery('#jform_authentication').removeAttr('aria-required');
+ jQuery('#jform_authentication').removeClass('required');
+ jform_vvvvwbpwas_required = true;
+ }
+ jQuery('#jform_host').closest('.control-group').hide();
+ // remove required attribute from host field
+ if (!jform_vvvvwbpwat_required)
+ {
+ updateFieldRequired('host',1);
+ jQuery('#jform_host').removeAttr('required');
+ jQuery('#jform_host').removeAttr('aria-required');
+ jQuery('#jform_host').removeClass('required');
+ jform_vvvvwbpwat_required = true;
+ }
+ jQuery('#jform_port').closest('.control-group').hide();
+ // remove required attribute from port field
+ if (!jform_vvvvwbpwau_required)
+ {
+ updateFieldRequired('port',1);
+ jQuery('#jform_port').removeAttr('required');
+ jQuery('#jform_port').removeAttr('aria-required');
+ jQuery('#jform_port').removeClass('required');
+ jform_vvvvwbpwau_required = true;
+ }
+ jQuery('#jform_path').closest('.control-group').hide();
+ // remove required attribute from path field
+ if (!jform_vvvvwbpwav_required)
+ {
+ updateFieldRequired('path',1);
+ jQuery('#jform_path').removeAttr('required');
+ jQuery('#jform_path').removeAttr('aria-required');
+ jQuery('#jform_path').removeClass('required');
+ jform_vvvvwbpwav_required = true;
+ }
+ jQuery('.note_ssh_security').closest('.control-group').hide();
+ jQuery('#jform_username').closest('.control-group').hide();
+ // remove required attribute from username field
if (!jform_vvvvwbpwaw_required)
{
- updateFieldRequired('password',1);
- jQuery('#jform_password').removeAttr('required');
- jQuery('#jform_password').removeAttr('aria-required');
- jQuery('#jform_password').removeClass('required');
+ updateFieldRequired('username',1);
+ jQuery('#jform_username').removeAttr('required');
+ jQuery('#jform_username').removeAttr('aria-required');
+ jQuery('#jform_username').removeClass('required');
jform_vvvvwbpwaw_required = true;
}
}
@@ -309,11 +183,58 @@ function protocol_vvvvwbp_SomeFunc(protocol_vvvvwbp)
return false;
}
-// the vvvvwbp Some function
-function authentication_vvvvwbp_SomeFunc(authentication_vvvvwbp)
+// the vvvvwbq function
+function vvvvwbq(protocol_vvvvwbq)
+{
+ if (isSet(protocol_vvvvwbq) && protocol_vvvvwbq.constructor !== Array)
+ {
+ var temp_vvvvwbq = protocol_vvvvwbq;
+ var protocol_vvvvwbq = [];
+ protocol_vvvvwbq.push(temp_vvvvwbq);
+ }
+ else if (!isSet(protocol_vvvvwbq))
+ {
+ var protocol_vvvvwbq = [];
+ }
+ var protocol = protocol_vvvvwbq.some(protocol_vvvvwbq_SomeFunc);
+
+
+ // set this function logic
+ if (protocol)
+ {
+ jQuery('.note_ftp_signature').closest('.control-group').show();
+ jQuery('#jform_signature').closest('.control-group').show();
+ // add required attribute to signature field
+ if (jform_vvvvwbqwax_required)
+ {
+ updateFieldRequired('signature',0);
+ jQuery('#jform_signature').prop('required','required');
+ jQuery('#jform_signature').attr('aria-required',true);
+ jQuery('#jform_signature').addClass('required');
+ jform_vvvvwbqwax_required = false;
+ }
+ }
+ else
+ {
+ jQuery('.note_ftp_signature').closest('.control-group').hide();
+ jQuery('#jform_signature').closest('.control-group').hide();
+ // remove required attribute from signature field
+ if (!jform_vvvvwbqwax_required)
+ {
+ updateFieldRequired('signature',1);
+ jQuery('#jform_signature').removeAttr('required');
+ jQuery('#jform_signature').removeAttr('aria-required');
+ jQuery('#jform_signature').removeClass('required');
+ jform_vvvvwbqwax_required = true;
+ }
+ }
+}
+
+// the vvvvwbq Some function
+function protocol_vvvvwbq_SomeFunc(protocol_vvvvwbq)
{
// set the function logic
- if (authentication_vvvvwbp == 1 || authentication_vvvvwbp == 3 || authentication_vvvvwbp == 5)
+ if (protocol_vvvvwbq == 1)
{
return true;
}
@@ -351,28 +272,28 @@ function vvvvwbr(protocol_vvvvwbr,authentication_vvvvwbr)
// set this function logic
if (protocol && authentication)
{
- jQuery('#jform_private').closest('.control-group').show();
- // add required attribute to private field
- if (jform_vvvvwbrwax_required)
+ jQuery('#jform_password').closest('.control-group').show();
+ // add required attribute to password field
+ if (jform_vvvvwbrway_required)
{
- updateFieldRequired('private',0);
- jQuery('#jform_private').prop('required','required');
- jQuery('#jform_private').attr('aria-required',true);
- jQuery('#jform_private').addClass('required');
- jform_vvvvwbrwax_required = false;
+ updateFieldRequired('password',0);
+ jQuery('#jform_password').prop('required','required');
+ jQuery('#jform_password').attr('aria-required',true);
+ jQuery('#jform_password').addClass('required');
+ jform_vvvvwbrway_required = false;
}
}
else
{
- jQuery('#jform_private').closest('.control-group').hide();
- // remove required attribute from private field
- if (!jform_vvvvwbrwax_required)
+ jQuery('#jform_password').closest('.control-group').hide();
+ // remove required attribute from password field
+ if (!jform_vvvvwbrway_required)
{
- updateFieldRequired('private',1);
- jQuery('#jform_private').removeAttr('required');
- jQuery('#jform_private').removeAttr('aria-required');
- jQuery('#jform_private').removeClass('required');
- jform_vvvvwbrwax_required = true;
+ updateFieldRequired('password',1);
+ jQuery('#jform_password').removeAttr('required');
+ jQuery('#jform_password').removeAttr('aria-required');
+ jQuery('#jform_password').removeClass('required');
+ jform_vvvvwbrway_required = true;
}
}
}
@@ -392,7 +313,7 @@ function protocol_vvvvwbr_SomeFunc(protocol_vvvvwbr)
function authentication_vvvvwbr_SomeFunc(authentication_vvvvwbr)
{
// set the function logic
- if (authentication_vvvvwbr == 2 || authentication_vvvvwbr == 3)
+ if (authentication_vvvvwbr == 1 || authentication_vvvvwbr == 3 || authentication_vvvvwbr == 5)
{
return true;
}
@@ -430,28 +351,28 @@ function vvvvwbt(protocol_vvvvwbt,authentication_vvvvwbt)
// set this function logic
if (protocol && authentication)
{
- jQuery('#jform_private_key').closest('.control-group').show();
- // add required attribute to private_key field
- if (jform_vvvvwbtway_required)
+ jQuery('#jform_private').closest('.control-group').show();
+ // add required attribute to private field
+ if (jform_vvvvwbtwaz_required)
{
- updateFieldRequired('private_key',0);
- jQuery('#jform_private_key').prop('required','required');
- jQuery('#jform_private_key').attr('aria-required',true);
- jQuery('#jform_private_key').addClass('required');
- jform_vvvvwbtway_required = false;
+ updateFieldRequired('private',0);
+ jQuery('#jform_private').prop('required','required');
+ jQuery('#jform_private').attr('aria-required',true);
+ jQuery('#jform_private').addClass('required');
+ jform_vvvvwbtwaz_required = false;
}
}
else
{
- jQuery('#jform_private_key').closest('.control-group').hide();
- // remove required attribute from private_key field
- if (!jform_vvvvwbtway_required)
+ jQuery('#jform_private').closest('.control-group').hide();
+ // remove required attribute from private field
+ if (!jform_vvvvwbtwaz_required)
{
- updateFieldRequired('private_key',1);
- jQuery('#jform_private_key').removeAttr('required');
- jQuery('#jform_private_key').removeAttr('aria-required');
- jQuery('#jform_private_key').removeClass('required');
- jform_vvvvwbtway_required = true;
+ updateFieldRequired('private',1);
+ jQuery('#jform_private').removeAttr('required');
+ jQuery('#jform_private').removeAttr('aria-required');
+ jQuery('#jform_private').removeClass('required');
+ jform_vvvvwbtwaz_required = true;
}
}
}
@@ -471,7 +392,7 @@ function protocol_vvvvwbt_SomeFunc(protocol_vvvvwbt)
function authentication_vvvvwbt_SomeFunc(authentication_vvvvwbt)
{
// set the function logic
- if (authentication_vvvvwbt == 4 || authentication_vvvvwbt == 5)
+ if (authentication_vvvvwbt == 2 || authentication_vvvvwbt == 3)
{
return true;
}
@@ -509,11 +430,29 @@ function vvvvwbv(protocol_vvvvwbv,authentication_vvvvwbv)
// set this function logic
if (protocol && authentication)
{
- jQuery('#jform_secret').closest('.control-group').show();
+ jQuery('#jform_private_key').closest('.control-group').show();
+ // add required attribute to private_key field
+ if (jform_vvvvwbvwba_required)
+ {
+ updateFieldRequired('private_key',0);
+ jQuery('#jform_private_key').prop('required','required');
+ jQuery('#jform_private_key').attr('aria-required',true);
+ jQuery('#jform_private_key').addClass('required');
+ jform_vvvvwbvwba_required = false;
+ }
}
else
{
- jQuery('#jform_secret').closest('.control-group').hide();
+ jQuery('#jform_private_key').closest('.control-group').hide();
+ // remove required attribute from private_key field
+ if (!jform_vvvvwbvwba_required)
+ {
+ updateFieldRequired('private_key',1);
+ jQuery('#jform_private_key').removeAttr('required');
+ jQuery('#jform_private_key').removeAttr('aria-required');
+ jQuery('#jform_private_key').removeClass('required');
+ jform_vvvvwbvwba_required = true;
+ }
}
}
@@ -532,7 +471,68 @@ function protocol_vvvvwbv_SomeFunc(protocol_vvvvwbv)
function authentication_vvvvwbv_SomeFunc(authentication_vvvvwbv)
{
// set the function logic
- if (authentication_vvvvwbv == 2 || authentication_vvvvwbv == 3 || authentication_vvvvwbv == 4 || authentication_vvvvwbv == 5)
+ if (authentication_vvvvwbv == 4 || authentication_vvvvwbv == 5)
+ {
+ return true;
+ }
+ return false;
+}
+
+// the vvvvwbx function
+function vvvvwbx(protocol_vvvvwbx,authentication_vvvvwbx)
+{
+ if (isSet(protocol_vvvvwbx) && protocol_vvvvwbx.constructor !== Array)
+ {
+ var temp_vvvvwbx = protocol_vvvvwbx;
+ var protocol_vvvvwbx = [];
+ protocol_vvvvwbx.push(temp_vvvvwbx);
+ }
+ else if (!isSet(protocol_vvvvwbx))
+ {
+ var protocol_vvvvwbx = [];
+ }
+ var protocol = protocol_vvvvwbx.some(protocol_vvvvwbx_SomeFunc);
+
+ if (isSet(authentication_vvvvwbx) && authentication_vvvvwbx.constructor !== Array)
+ {
+ var temp_vvvvwbx = authentication_vvvvwbx;
+ var authentication_vvvvwbx = [];
+ authentication_vvvvwbx.push(temp_vvvvwbx);
+ }
+ else if (!isSet(authentication_vvvvwbx))
+ {
+ var authentication_vvvvwbx = [];
+ }
+ var authentication = authentication_vvvvwbx.some(authentication_vvvvwbx_SomeFunc);
+
+
+ // set this function logic
+ if (protocol && authentication)
+ {
+ jQuery('#jform_secret').closest('.control-group').show();
+ }
+ else
+ {
+ jQuery('#jform_secret').closest('.control-group').hide();
+ }
+}
+
+// the vvvvwbx Some function
+function protocol_vvvvwbx_SomeFunc(protocol_vvvvwbx)
+{
+ // set the function logic
+ if (protocol_vvvvwbx == 2)
+ {
+ return true;
+ }
+ return false;
+}
+
+// the vvvvwbx Some function
+function authentication_vvvvwbx_SomeFunc(authentication_vvvvwbx)
+{
+ // set the function logic
+ if (authentication_vvvvwbx == 2 || authentication_vvvvwbx == 3 || authentication_vvvvwbx == 4 || authentication_vvvvwbx == 5)
{
return true;
}
diff --git a/admin/models/forms/site_view.js b/admin/models/forms/site_view.js
index 9d7b8b3f7..815d76d84 100644
--- a/admin/models/forms/site_view.js
+++ b/admin/models/forms/site_view.js
@@ -9,8 +9,6 @@
*/
// Some Global Values
-jform_vvvvvyrvyn_required = false;
-jform_vvvvvysvyo_required = false;
jform_vvvvvytvyp_required = false;
jform_vvvvvyuvyq_required = false;
jform_vvvvvyvvyr_required = false;
@@ -19,317 +17,319 @@ jform_vvvvvyxvyt_required = false;
jform_vvvvvyyvyu_required = false;
jform_vvvvvyzvyv_required = false;
jform_vvvvvzavyw_required = false;
-jform_vvvvvzavyx_required = false;
+jform_vvvvvzbvyx_required = false;
+jform_vvvvvzcvyy_required = false;
+jform_vvvvvzcvyz_required = false;
// Initial Script
jQuery(document).ready(function()
{
- var add_php_view_vvvvvyr = jQuery("#jform_add_php_view input[type='radio']:checked").val();
- vvvvvyr(add_php_view_vvvvvyr);
+ var add_php_view_vvvvvyt = jQuery("#jform_add_php_view input[type='radio']:checked").val();
+ vvvvvyt(add_php_view_vvvvvyt);
- var add_php_jview_display_vvvvvys = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val();
- vvvvvys(add_php_jview_display_vvvvvys);
+ var add_php_jview_display_vvvvvyu = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val();
+ vvvvvyu(add_php_jview_display_vvvvvyu);
- var add_php_jview_vvvvvyt = jQuery("#jform_add_php_jview input[type='radio']:checked").val();
- vvvvvyt(add_php_jview_vvvvvyt);
+ var add_php_jview_vvvvvyv = jQuery("#jform_add_php_jview input[type='radio']:checked").val();
+ vvvvvyv(add_php_jview_vvvvvyv);
- var add_php_document_vvvvvyu = jQuery("#jform_add_php_document input[type='radio']:checked").val();
- vvvvvyu(add_php_document_vvvvvyu);
+ var add_php_document_vvvvvyw = jQuery("#jform_add_php_document input[type='radio']:checked").val();
+ vvvvvyw(add_php_document_vvvvvyw);
- var add_css_document_vvvvvyv = jQuery("#jform_add_css_document input[type='radio']:checked").val();
- vvvvvyv(add_css_document_vvvvvyv);
+ var add_css_document_vvvvvyx = jQuery("#jform_add_css_document input[type='radio']:checked").val();
+ vvvvvyx(add_css_document_vvvvvyx);
- var add_javascript_file_vvvvvyw = jQuery("#jform_add_javascript_file input[type='radio']:checked").val();
- vvvvvyw(add_javascript_file_vvvvvyw);
+ var add_javascript_file_vvvvvyy = jQuery("#jform_add_javascript_file input[type='radio']:checked").val();
+ vvvvvyy(add_javascript_file_vvvvvyy);
- var add_js_document_vvvvvyx = jQuery("#jform_add_js_document input[type='radio']:checked").val();
- vvvvvyx(add_js_document_vvvvvyx);
+ var add_js_document_vvvvvyz = jQuery("#jform_add_js_document input[type='radio']:checked").val();
+ vvvvvyz(add_js_document_vvvvvyz);
- var add_css_vvvvvyy = jQuery("#jform_add_css input[type='radio']:checked").val();
- vvvvvyy(add_css_vvvvvyy);
+ var add_css_vvvvvza = jQuery("#jform_add_css input[type='radio']:checked").val();
+ vvvvvza(add_css_vvvvvza);
- var add_php_ajax_vvvvvyz = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
- vvvvvyz(add_php_ajax_vvvvvyz);
+ var add_php_ajax_vvvvvzb = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
+ vvvvvzb(add_php_ajax_vvvvvzb);
- var add_custom_button_vvvvvza = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
- vvvvvza(add_custom_button_vvvvvza);
+ var add_custom_button_vvvvvzc = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
+ vvvvvzc(add_custom_button_vvvvvzc);
- var button_position_vvvvvzb = jQuery("#jform_button_position").val();
- vvvvvzb(button_position_vvvvvzb);
+ var button_position_vvvvvzd = jQuery("#jform_button_position").val();
+ vvvvvzd(button_position_vvvvvzd);
});
-// the vvvvvyr function
-function vvvvvyr(add_php_view_vvvvvyr)
+// the vvvvvyt function
+function vvvvvyt(add_php_view_vvvvvyt)
{
// set the function logic
- if (add_php_view_vvvvvyr == 1)
+ if (add_php_view_vvvvvyt == 1)
{
jQuery('#jform_php_view-lbl').closest('.control-group').show();
// add required attribute to php_view field
- if (jform_vvvvvyrvyn_required)
+ if (jform_vvvvvytvyp_required)
{
updateFieldRequired('php_view',0);
jQuery('#jform_php_view').prop('required','required');
jQuery('#jform_php_view').attr('aria-required',true);
jQuery('#jform_php_view').addClass('required');
- jform_vvvvvyrvyn_required = false;
+ jform_vvvvvytvyp_required = false;
}
}
else
{
jQuery('#jform_php_view-lbl').closest('.control-group').hide();
// remove required attribute from php_view field
- if (!jform_vvvvvyrvyn_required)
+ if (!jform_vvvvvytvyp_required)
{
updateFieldRequired('php_view',1);
jQuery('#jform_php_view').removeAttr('required');
jQuery('#jform_php_view').removeAttr('aria-required');
jQuery('#jform_php_view').removeClass('required');
- jform_vvvvvyrvyn_required = true;
- }
- }
-}
-
-// the vvvvvys function
-function vvvvvys(add_php_jview_display_vvvvvys)
-{
- // set the function logic
- if (add_php_jview_display_vvvvvys == 1)
- {
- jQuery('#jform_php_jview_display-lbl').closest('.control-group').show();
- // add required attribute to php_jview_display field
- if (jform_vvvvvysvyo_required)
- {
- updateFieldRequired('php_jview_display',0);
- jQuery('#jform_php_jview_display').prop('required','required');
- jQuery('#jform_php_jview_display').attr('aria-required',true);
- jQuery('#jform_php_jview_display').addClass('required');
- jform_vvvvvysvyo_required = false;
- }
- }
- else
- {
- jQuery('#jform_php_jview_display-lbl').closest('.control-group').hide();
- // remove required attribute from php_jview_display field
- if (!jform_vvvvvysvyo_required)
- {
- updateFieldRequired('php_jview_display',1);
- jQuery('#jform_php_jview_display').removeAttr('required');
- jQuery('#jform_php_jview_display').removeAttr('aria-required');
- jQuery('#jform_php_jview_display').removeClass('required');
- jform_vvvvvysvyo_required = true;
- }
- }
-}
-
-// the vvvvvyt function
-function vvvvvyt(add_php_jview_vvvvvyt)
-{
- // set the function logic
- if (add_php_jview_vvvvvyt == 1)
- {
- jQuery('#jform_php_jview-lbl').closest('.control-group').show();
- // add required attribute to php_jview field
- if (jform_vvvvvytvyp_required)
- {
- updateFieldRequired('php_jview',0);
- jQuery('#jform_php_jview').prop('required','required');
- jQuery('#jform_php_jview').attr('aria-required',true);
- jQuery('#jform_php_jview').addClass('required');
- jform_vvvvvytvyp_required = false;
- }
- }
- else
- {
- jQuery('#jform_php_jview-lbl').closest('.control-group').hide();
- // remove required attribute from php_jview field
- if (!jform_vvvvvytvyp_required)
- {
- updateFieldRequired('php_jview',1);
- jQuery('#jform_php_jview').removeAttr('required');
- jQuery('#jform_php_jview').removeAttr('aria-required');
- jQuery('#jform_php_jview').removeClass('required');
jform_vvvvvytvyp_required = true;
}
}
}
// the vvvvvyu function
-function vvvvvyu(add_php_document_vvvvvyu)
+function vvvvvyu(add_php_jview_display_vvvvvyu)
{
// set the function logic
- if (add_php_document_vvvvvyu == 1)
+ if (add_php_jview_display_vvvvvyu == 1)
{
- jQuery('#jform_php_document-lbl').closest('.control-group').show();
- // add required attribute to php_document field
+ jQuery('#jform_php_jview_display-lbl').closest('.control-group').show();
+ // add required attribute to php_jview_display field
if (jform_vvvvvyuvyq_required)
{
- updateFieldRequired('php_document',0);
- jQuery('#jform_php_document').prop('required','required');
- jQuery('#jform_php_document').attr('aria-required',true);
- jQuery('#jform_php_document').addClass('required');
+ updateFieldRequired('php_jview_display',0);
+ jQuery('#jform_php_jview_display').prop('required','required');
+ jQuery('#jform_php_jview_display').attr('aria-required',true);
+ jQuery('#jform_php_jview_display').addClass('required');
jform_vvvvvyuvyq_required = false;
}
}
else
{
- jQuery('#jform_php_document-lbl').closest('.control-group').hide();
- // remove required attribute from php_document field
+ jQuery('#jform_php_jview_display-lbl').closest('.control-group').hide();
+ // remove required attribute from php_jview_display field
if (!jform_vvvvvyuvyq_required)
{
- updateFieldRequired('php_document',1);
- jQuery('#jform_php_document').removeAttr('required');
- jQuery('#jform_php_document').removeAttr('aria-required');
- jQuery('#jform_php_document').removeClass('required');
+ updateFieldRequired('php_jview_display',1);
+ jQuery('#jform_php_jview_display').removeAttr('required');
+ jQuery('#jform_php_jview_display').removeAttr('aria-required');
+ jQuery('#jform_php_jview_display').removeClass('required');
jform_vvvvvyuvyq_required = true;
}
}
}
// the vvvvvyv function
-function vvvvvyv(add_css_document_vvvvvyv)
+function vvvvvyv(add_php_jview_vvvvvyv)
{
// set the function logic
- if (add_css_document_vvvvvyv == 1)
+ if (add_php_jview_vvvvvyv == 1)
{
- jQuery('#jform_css_document-lbl').closest('.control-group').show();
- // add required attribute to css_document field
+ jQuery('#jform_php_jview-lbl').closest('.control-group').show();
+ // add required attribute to php_jview field
if (jform_vvvvvyvvyr_required)
{
- updateFieldRequired('css_document',0);
- jQuery('#jform_css_document').prop('required','required');
- jQuery('#jform_css_document').attr('aria-required',true);
- jQuery('#jform_css_document').addClass('required');
+ updateFieldRequired('php_jview',0);
+ jQuery('#jform_php_jview').prop('required','required');
+ jQuery('#jform_php_jview').attr('aria-required',true);
+ jQuery('#jform_php_jview').addClass('required');
jform_vvvvvyvvyr_required = false;
}
}
else
{
- jQuery('#jform_css_document-lbl').closest('.control-group').hide();
- // remove required attribute from css_document field
+ jQuery('#jform_php_jview-lbl').closest('.control-group').hide();
+ // remove required attribute from php_jview field
if (!jform_vvvvvyvvyr_required)
{
- updateFieldRequired('css_document',1);
- jQuery('#jform_css_document').removeAttr('required');
- jQuery('#jform_css_document').removeAttr('aria-required');
- jQuery('#jform_css_document').removeClass('required');
+ updateFieldRequired('php_jview',1);
+ jQuery('#jform_php_jview').removeAttr('required');
+ jQuery('#jform_php_jview').removeAttr('aria-required');
+ jQuery('#jform_php_jview').removeClass('required');
jform_vvvvvyvvyr_required = true;
}
}
}
// the vvvvvyw function
-function vvvvvyw(add_javascript_file_vvvvvyw)
+function vvvvvyw(add_php_document_vvvvvyw)
{
// set the function logic
- if (add_javascript_file_vvvvvyw == 1)
+ if (add_php_document_vvvvvyw == 1)
{
- jQuery('#jform_javascript_file-lbl').closest('.control-group').show();
- // add required attribute to javascript_file field
+ jQuery('#jform_php_document-lbl').closest('.control-group').show();
+ // add required attribute to php_document field
if (jform_vvvvvywvys_required)
{
- updateFieldRequired('javascript_file',0);
- jQuery('#jform_javascript_file').prop('required','required');
- jQuery('#jform_javascript_file').attr('aria-required',true);
- jQuery('#jform_javascript_file').addClass('required');
+ updateFieldRequired('php_document',0);
+ jQuery('#jform_php_document').prop('required','required');
+ jQuery('#jform_php_document').attr('aria-required',true);
+ jQuery('#jform_php_document').addClass('required');
jform_vvvvvywvys_required = false;
}
}
else
{
- jQuery('#jform_javascript_file-lbl').closest('.control-group').hide();
- // remove required attribute from javascript_file field
+ jQuery('#jform_php_document-lbl').closest('.control-group').hide();
+ // remove required attribute from php_document field
if (!jform_vvvvvywvys_required)
{
- updateFieldRequired('javascript_file',1);
- jQuery('#jform_javascript_file').removeAttr('required');
- jQuery('#jform_javascript_file').removeAttr('aria-required');
- jQuery('#jform_javascript_file').removeClass('required');
+ updateFieldRequired('php_document',1);
+ jQuery('#jform_php_document').removeAttr('required');
+ jQuery('#jform_php_document').removeAttr('aria-required');
+ jQuery('#jform_php_document').removeClass('required');
jform_vvvvvywvys_required = true;
}
}
}
// the vvvvvyx function
-function vvvvvyx(add_js_document_vvvvvyx)
+function vvvvvyx(add_css_document_vvvvvyx)
{
// set the function logic
- if (add_js_document_vvvvvyx == 1)
+ if (add_css_document_vvvvvyx == 1)
{
- jQuery('#jform_js_document-lbl').closest('.control-group').show();
- // add required attribute to js_document field
+ jQuery('#jform_css_document-lbl').closest('.control-group').show();
+ // add required attribute to css_document field
if (jform_vvvvvyxvyt_required)
{
- updateFieldRequired('js_document',0);
- jQuery('#jform_js_document').prop('required','required');
- jQuery('#jform_js_document').attr('aria-required',true);
- jQuery('#jform_js_document').addClass('required');
+ updateFieldRequired('css_document',0);
+ jQuery('#jform_css_document').prop('required','required');
+ jQuery('#jform_css_document').attr('aria-required',true);
+ jQuery('#jform_css_document').addClass('required');
jform_vvvvvyxvyt_required = false;
}
}
else
{
- jQuery('#jform_js_document-lbl').closest('.control-group').hide();
- // remove required attribute from js_document field
+ jQuery('#jform_css_document-lbl').closest('.control-group').hide();
+ // remove required attribute from css_document field
if (!jform_vvvvvyxvyt_required)
{
- updateFieldRequired('js_document',1);
- jQuery('#jform_js_document').removeAttr('required');
- jQuery('#jform_js_document').removeAttr('aria-required');
- jQuery('#jform_js_document').removeClass('required');
+ updateFieldRequired('css_document',1);
+ jQuery('#jform_css_document').removeAttr('required');
+ jQuery('#jform_css_document').removeAttr('aria-required');
+ jQuery('#jform_css_document').removeClass('required');
jform_vvvvvyxvyt_required = true;
}
}
}
// the vvvvvyy function
-function vvvvvyy(add_css_vvvvvyy)
+function vvvvvyy(add_javascript_file_vvvvvyy)
{
// set the function logic
- if (add_css_vvvvvyy == 1)
+ if (add_javascript_file_vvvvvyy == 1)
{
- jQuery('#jform_css-lbl').closest('.control-group').show();
- // add required attribute to css field
+ jQuery('#jform_javascript_file-lbl').closest('.control-group').show();
+ // add required attribute to javascript_file field
if (jform_vvvvvyyvyu_required)
{
- updateFieldRequired('css',0);
- jQuery('#jform_css').prop('required','required');
- jQuery('#jform_css').attr('aria-required',true);
- jQuery('#jform_css').addClass('required');
+ updateFieldRequired('javascript_file',0);
+ jQuery('#jform_javascript_file').prop('required','required');
+ jQuery('#jform_javascript_file').attr('aria-required',true);
+ jQuery('#jform_javascript_file').addClass('required');
jform_vvvvvyyvyu_required = false;
}
}
else
{
- jQuery('#jform_css-lbl').closest('.control-group').hide();
- // remove required attribute from css field
+ jQuery('#jform_javascript_file-lbl').closest('.control-group').hide();
+ // remove required attribute from javascript_file field
if (!jform_vvvvvyyvyu_required)
{
- updateFieldRequired('css',1);
- jQuery('#jform_css').removeAttr('required');
- jQuery('#jform_css').removeAttr('aria-required');
- jQuery('#jform_css').removeClass('required');
+ updateFieldRequired('javascript_file',1);
+ jQuery('#jform_javascript_file').removeAttr('required');
+ jQuery('#jform_javascript_file').removeAttr('aria-required');
+ jQuery('#jform_javascript_file').removeClass('required');
jform_vvvvvyyvyu_required = true;
}
}
}
// the vvvvvyz function
-function vvvvvyz(add_php_ajax_vvvvvyz)
+function vvvvvyz(add_js_document_vvvvvyz)
{
// set the function logic
- if (add_php_ajax_vvvvvyz == 1)
+ if (add_js_document_vvvvvyz == 1)
+ {
+ jQuery('#jform_js_document-lbl').closest('.control-group').show();
+ // add required attribute to js_document field
+ if (jform_vvvvvyzvyv_required)
+ {
+ updateFieldRequired('js_document',0);
+ jQuery('#jform_js_document').prop('required','required');
+ jQuery('#jform_js_document').attr('aria-required',true);
+ jQuery('#jform_js_document').addClass('required');
+ jform_vvvvvyzvyv_required = false;
+ }
+ }
+ else
+ {
+ jQuery('#jform_js_document-lbl').closest('.control-group').hide();
+ // remove required attribute from js_document field
+ if (!jform_vvvvvyzvyv_required)
+ {
+ updateFieldRequired('js_document',1);
+ jQuery('#jform_js_document').removeAttr('required');
+ jQuery('#jform_js_document').removeAttr('aria-required');
+ jQuery('#jform_js_document').removeClass('required');
+ jform_vvvvvyzvyv_required = true;
+ }
+ }
+}
+
+// the vvvvvza function
+function vvvvvza(add_css_vvvvvza)
+{
+ // set the function logic
+ if (add_css_vvvvvza == 1)
+ {
+ jQuery('#jform_css-lbl').closest('.control-group').show();
+ // add required attribute to css field
+ if (jform_vvvvvzavyw_required)
+ {
+ updateFieldRequired('css',0);
+ jQuery('#jform_css').prop('required','required');
+ jQuery('#jform_css').attr('aria-required',true);
+ jQuery('#jform_css').addClass('required');
+ jform_vvvvvzavyw_required = false;
+ }
+ }
+ else
+ {
+ jQuery('#jform_css-lbl').closest('.control-group').hide();
+ // remove required attribute from css field
+ if (!jform_vvvvvzavyw_required)
+ {
+ updateFieldRequired('css',1);
+ jQuery('#jform_css').removeAttr('required');
+ jQuery('#jform_css').removeAttr('aria-required');
+ jQuery('#jform_css').removeClass('required');
+ jform_vvvvvzavyw_required = true;
+ }
+ }
+}
+
+// the vvvvvzb function
+function vvvvvzb(add_php_ajax_vvvvvzb)
+{
+ // set the function logic
+ if (add_php_ajax_vvvvvzb == 1)
{
jQuery('#jform_ajax_input-lbl').closest('.control-group').show();
jQuery('#jform_php_ajaxmethod-lbl').closest('.control-group').show();
// add required attribute to php_ajaxmethod field
- if (jform_vvvvvyzvyv_required)
+ if (jform_vvvvvzbvyx_required)
{
updateFieldRequired('php_ajaxmethod',0);
jQuery('#jform_php_ajaxmethod').prop('required','required');
jQuery('#jform_php_ajaxmethod').attr('aria-required',true);
jQuery('#jform_php_ajaxmethod').addClass('required');
- jform_vvvvvyzvyv_required = false;
+ jform_vvvvvzbvyx_required = false;
}
}
else
@@ -337,43 +337,43 @@ function vvvvvyz(add_php_ajax_vvvvvyz)
jQuery('#jform_ajax_input-lbl').closest('.control-group').hide();
jQuery('#jform_php_ajaxmethod-lbl').closest('.control-group').hide();
// remove required attribute from php_ajaxmethod field
- if (!jform_vvvvvyzvyv_required)
+ if (!jform_vvvvvzbvyx_required)
{
updateFieldRequired('php_ajaxmethod',1);
jQuery('#jform_php_ajaxmethod').removeAttr('required');
jQuery('#jform_php_ajaxmethod').removeAttr('aria-required');
jQuery('#jform_php_ajaxmethod').removeClass('required');
- jform_vvvvvyzvyv_required = true;
+ jform_vvvvvzbvyx_required = true;
}
}
}
-// the vvvvvza function
-function vvvvvza(add_custom_button_vvvvvza)
+// the vvvvvzc function
+function vvvvvzc(add_custom_button_vvvvvzc)
{
// set the function logic
- if (add_custom_button_vvvvvza == 1)
+ if (add_custom_button_vvvvvzc == 1)
{
jQuery('#jform_custom_button-lbl').closest('.control-group').show();
jQuery('#jform_php_controller-lbl').closest('.control-group').show();
// add required attribute to php_controller field
- if (jform_vvvvvzavyw_required)
+ if (jform_vvvvvzcvyy_required)
{
updateFieldRequired('php_controller',0);
jQuery('#jform_php_controller').prop('required','required');
jQuery('#jform_php_controller').attr('aria-required',true);
jQuery('#jform_php_controller').addClass('required');
- jform_vvvvvzavyw_required = false;
+ jform_vvvvvzcvyy_required = false;
}
jQuery('#jform_php_model-lbl').closest('.control-group').show();
// add required attribute to php_model field
- if (jform_vvvvvzavyx_required)
+ if (jform_vvvvvzcvyz_required)
{
updateFieldRequired('php_model',0);
jQuery('#jform_php_model').prop('required','required');
jQuery('#jform_php_model').attr('aria-required',true);
jQuery('#jform_php_model').addClass('required');
- jform_vvvvvzavyx_required = false;
+ jform_vvvvvzcvyz_required = false;
}
}
else
@@ -381,41 +381,41 @@ function vvvvvza(add_custom_button_vvvvvza)
jQuery('#jform_custom_button-lbl').closest('.control-group').hide();
jQuery('#jform_php_controller-lbl').closest('.control-group').hide();
// remove required attribute from php_controller field
- if (!jform_vvvvvzavyw_required)
+ if (!jform_vvvvvzcvyy_required)
{
updateFieldRequired('php_controller',1);
jQuery('#jform_php_controller').removeAttr('required');
jQuery('#jform_php_controller').removeAttr('aria-required');
jQuery('#jform_php_controller').removeClass('required');
- jform_vvvvvzavyw_required = true;
+ jform_vvvvvzcvyy_required = true;
}
jQuery('#jform_php_model-lbl').closest('.control-group').hide();
// remove required attribute from php_model field
- if (!jform_vvvvvzavyx_required)
+ if (!jform_vvvvvzcvyz_required)
{
updateFieldRequired('php_model',1);
jQuery('#jform_php_model').removeAttr('required');
jQuery('#jform_php_model').removeAttr('aria-required');
jQuery('#jform_php_model').removeClass('required');
- jform_vvvvvzavyx_required = true;
+ jform_vvvvvzcvyz_required = true;
}
}
}
-// the vvvvvzb function
-function vvvvvzb(button_position_vvvvvzb)
+// the vvvvvzd function
+function vvvvvzd(button_position_vvvvvzd)
{
- if (isSet(button_position_vvvvvzb) && button_position_vvvvvzb.constructor !== Array)
+ if (isSet(button_position_vvvvvzd) && button_position_vvvvvzd.constructor !== Array)
{
- var temp_vvvvvzb = button_position_vvvvvzb;
- var button_position_vvvvvzb = [];
- button_position_vvvvvzb.push(temp_vvvvvzb);
+ var temp_vvvvvzd = button_position_vvvvvzd;
+ var button_position_vvvvvzd = [];
+ button_position_vvvvvzd.push(temp_vvvvvzd);
}
- else if (!isSet(button_position_vvvvvzb))
+ else if (!isSet(button_position_vvvvvzd))
{
- var button_position_vvvvvzb = [];
+ var button_position_vvvvvzd = [];
}
- var button_position = button_position_vvvvvzb.some(button_position_vvvvvzb_SomeFunc);
+ var button_position = button_position_vvvvvzd.some(button_position_vvvvvzd_SomeFunc);
// set this function logic
@@ -429,11 +429,11 @@ function vvvvvzb(button_position_vvvvvzb)
}
}
-// the vvvvvzb Some function
-function button_position_vvvvvzb_SomeFunc(button_position_vvvvvzb)
+// the vvvvvzd Some function
+function button_position_vvvvvzd_SomeFunc(button_position_vvvvvzd)
{
// set the function logic
- if (button_position_vvvvvzb == 5)
+ if (button_position_vvvvvzd == 5)
{
return true;
}
@@ -727,7 +727,7 @@ function getEditCustomCodeButtons(){
getEditCustomCodeButtons_server(id).done(function(result) {
if(isObject(result)){
jQuery.each(result, function( field, buttons ) {
- jQuery('').insertBefore(".control-wrapper-"+ field);
+ jQuery('').insertBefore(".control-wrapper-"+ field);
jQuery.each(buttons, function( name, button ) {
jQuery(".control-customcode-buttons-"+field).append(button);
});
diff --git a/admin/models/forms/site_view.xml b/admin/models/forms/site_view.xml
index cf93815d0..b9c3f5a57 100644
--- a/admin/models/forms/site_view.xml
+++ b/admin/models/forms/site_view.xml
@@ -431,7 +431,7 @@
class="text_area"
readonly="false"
disabled="false"
- required="false"
+ required="true"
filter="STRING"
message="COM_COMPONENTBUILDER_SITE_VIEW_VALUE_NAME_MESSAGE"
hint="COM_COMPONENTBUILDER_SITE_VIEW_VALUE_NAME_HINT"
@@ -447,7 +447,7 @@
class="text_area"
readonly="false"
disabled="false"
- required="false"
+ required="true"
filter="WORD"
message="COM_COMPONENTBUILDER_SITE_VIEW_TASK_NAME_MESSAGE"
hint="COM_COMPONENTBUILDER_SITE_VIEW_TASK_NAME_HINT"
@@ -464,7 +464,7 @@
class="text_area"
readonly="false"
disabled="false"
- required="false"
+ required="true"
filter="STRING"
message="COM_COMPONENTBUILDER_SITE_VIEW_INPUT_DEFAULT_MESSAGE"
hint="COM_COMPONENTBUILDER_SITE_VIEW_INPUT_DEFAULT_HINT"
@@ -478,7 +478,7 @@
class="list_class"
multiple="false"
filter="WORD"
- required="false"
+ required="true"
default="INT">
@@ -524,7 +524,7 @@
class="text_area"
readonly="false"
disabled="false"
- required="false"
+ required="true"
filter="WORD"
message="COM_COMPONENTBUILDER_SITE_VIEW_METHOD_NAME_MESSAGE"
hint="COM_COMPONENTBUILDER_SITE_VIEW_METHOD_NAME_HINT"
@@ -535,7 +535,6 @@
name="allow_zero"
label="COM_COMPONENTBUILDER_SITE_VIEW_ALLOW_ZERO_LABEL"
value="1"
- required="false"
description="COM_COMPONENTBUILDER_SITE_VIEW_ALLOW_ZERO_DESCRIPTION"
class="inputbox"
/>
@@ -546,7 +545,6 @@
label="COM_COMPONENTBUILDER_SITE_VIEW_USER_CHECK_LABEL"
value="1"
default="1"
- required="false"
description="COM_COMPONENTBUILDER_SITE_VIEW_USER_CHECK_DESCRIPTION"
class="inputbox"
/>
@@ -742,7 +740,6 @@
description="COM_COMPONENTBUILDER_SITE_VIEW_ICOMOON_DESCRIPTION"
class="list_class fieldMedium icomoon342"
multiple="false"
- required="false"
onchange="getIconImage(this);">
@@ -1177,7 +1174,7 @@
class="text_area"
readonly="false"
disabled="false"
- required="false"
+ required="true"
filter="STRING"
message="COM_COMPONENTBUILDER_SITE_VIEW_NAME_MESSAGE"
hint="COM_COMPONENTBUILDER_SITE_VIEW_NAME_HINT"
@@ -1205,7 +1202,6 @@
description="COM_COMPONENTBUILDER_SITE_VIEW_TARGET_DESCRIPTION"
class="list_class fieldMedium"
filter="INT"
- required="false"
default="1">
@@ -1223,7 +1219,6 @@
description="COM_COMPONENTBUILDER_SITE_VIEW_TYPE_DESCRIPTION"
class="list_class"
multiple="false"
- required="false"
default="0">
diff --git a/admin/models/forms/template.js b/admin/models/forms/template.js
index dad4fdef6..efbc1d633 100644
--- a/admin/models/forms/template.js
+++ b/admin/models/forms/template.js
@@ -9,43 +9,43 @@
*/
// Some Global Values
-jform_vvvvvzcvyy_required = false;
+jform_vvvvvzevza_required = false;
// Initial Script
jQuery(document).ready(function()
{
- var add_php_view_vvvvvzc = jQuery("#jform_add_php_view input[type='radio']:checked").val();
- vvvvvzc(add_php_view_vvvvvzc);
+ var add_php_view_vvvvvze = jQuery("#jform_add_php_view input[type='radio']:checked").val();
+ vvvvvze(add_php_view_vvvvvze);
});
-// the vvvvvzc function
-function vvvvvzc(add_php_view_vvvvvzc)
+// the vvvvvze function
+function vvvvvze(add_php_view_vvvvvze)
{
// set the function logic
- if (add_php_view_vvvvvzc == 1)
+ if (add_php_view_vvvvvze == 1)
{
jQuery('#jform_php_view-lbl').closest('.control-group').show();
// add required attribute to php_view field
- if (jform_vvvvvzcvyy_required)
+ if (jform_vvvvvzevza_required)
{
updateFieldRequired('php_view',0);
jQuery('#jform_php_view').prop('required','required');
jQuery('#jform_php_view').attr('aria-required',true);
jQuery('#jform_php_view').addClass('required');
- jform_vvvvvzcvyy_required = false;
+ jform_vvvvvzevza_required = false;
}
}
else
{
jQuery('#jform_php_view-lbl').closest('.control-group').hide();
// remove required attribute from php_view field
- if (!jform_vvvvvzcvyy_required)
+ if (!jform_vvvvvzevza_required)
{
updateFieldRequired('php_view',1);
jQuery('#jform_php_view').removeAttr('required');
jQuery('#jform_php_view').removeAttr('aria-required');
jQuery('#jform_php_view').removeClass('required');
- jform_vvvvvzcvyy_required = true;
+ jform_vvvvvzevza_required = true;
}
}
}
@@ -113,7 +113,7 @@ function getEditCustomCodeButtons(){
getEditCustomCodeButtons_server(id).done(function(result) {
if(isObject(result)){
jQuery.each(result, function( field, buttons ) {
- jQuery('').insertBefore(".control-wrapper-"+ field);
+ jQuery('').insertBefore(".control-wrapper-"+ field);
jQuery.each(buttons, function( name, button ) {
jQuery(".control-customcode-buttons-"+field).append(button);
});
diff --git a/admin/models/forms/validation_rule.js b/admin/models/forms/validation_rule.js
index 8e28efbc4..992c3fdc9 100644
--- a/admin/models/forms/validation_rule.js
+++ b/admin/models/forms/validation_rule.js
@@ -117,7 +117,7 @@ function getEditCustomCodeButtons(){
getEditCustomCodeButtons_server(id).done(function(result) {
if(isObject(result)){
jQuery.each(result, function( field, buttons ) {
- jQuery('').insertBefore(".control-wrapper-"+ field);
+ jQuery('').insertBefore(".control-wrapper-"+ field);
jQuery.each(buttons, function( name, button ) {
jQuery(".control-customcode-buttons-"+field).append(button);
});
diff --git a/admin/models/help_document.php b/admin/models/help_document.php
index c5b7003fc..76de5c965 100644
--- a/admin/models/help_document.php
+++ b/admin/models/help_document.php
@@ -18,13 +18,45 @@ use Joomla\Registry\Registry;
* Componentbuilder Help_document Model
*/
class ComponentbuilderModelHelp_document extends JModelAdmin
-{
+{
+ /**
+ * The tab layout fields array.
+ *
+ * @var array
+ */
+ protected $tabLayoutFields = array(
+ 'details' => array(
+ 'left' => array(
+ 'target',
+ 'groups',
+ 'location',
+ 'admin_view',
+ 'site_view'
+ ),
+ 'right' => array(
+ 'type',
+ 'url',
+ 'article'
+ ),
+ 'fullwidth' => array(
+ 'content'
+ ),
+ 'above' => array(
+ 'title',
+ 'alias'
+ ),
+ 'under' => array(
+ 'not_required'
+ )
+ )
+ );
+
/**
* @var string The prefix to use with controller messages.
* @since 1.6
*/
protected $text_prefix = 'COM_COMPONENTBUILDER';
-
+
/**
* The type alias for this content type.
*
diff --git a/admin/models/joomla_component.php b/admin/models/joomla_component.php
index 5900dd346..cc9b9fe04 100644
--- a/admin/models/joomla_component.php
+++ b/admin/models/joomla_component.php
@@ -18,13 +18,199 @@ use Joomla\Registry\Registry;
* Componentbuilder Joomla_component Model
*/
class ComponentbuilderModelJoomla_component extends JModelAdmin
-{
+{
+ /**
+ * The tab layout fields array.
+ *
+ * @var array
+ */
+ protected $tabLayoutFields = array(
+ 'details' => array(
+ 'left' => array(
+ 'name',
+ 'name_code',
+ 'component_version',
+ 'debug_linenr',
+ 'add_placeholders',
+ 'mvc_versiondate',
+ 'note_version_options_one',
+ 'note_version_options_two',
+ 'note_version_options_three',
+ 'short_description',
+ 'description',
+ 'copyright'
+ ),
+ 'right' => array(
+ 'companyname',
+ 'author',
+ 'email',
+ 'website',
+ 'add_license',
+ 'license_type',
+ 'note_whmcs_lisencing_note',
+ 'whmcs_key',
+ 'whmcs_url',
+ 'whmcs_buy_link',
+ 'license',
+ 'bom',
+ 'image'
+ ),
+ 'above' => array(
+ 'system_name'
+ ),
+ 'under' => array(
+ 'not_required'
+ )
+ ),
+ 'libs_helpers' => array(
+ 'fullwidth' => array(
+ 'creatuserhelper',
+ 'adduikit',
+ 'addfootable',
+ 'add_email_helper',
+ 'add_php_helper_both',
+ 'php_helper_both',
+ 'add_php_helper_admin',
+ 'php_helper_admin',
+ 'add_admin_event',
+ 'php_admin_event',
+ 'add_php_helper_site',
+ 'php_helper_site',
+ 'add_site_event',
+ 'php_site_event',
+ 'add_javascript',
+ 'javascript',
+ 'add_css_admin',
+ 'css_admin',
+ 'add_css_site',
+ 'css_site'
+ )
+ ),
+ 'dynamic_integration' => array(
+ 'left' => array(
+ 'add_update_server',
+ 'update_server_url',
+ 'update_server_target',
+ 'note_update_server_note_ftp',
+ 'note_update_server_note_zip',
+ 'note_update_server_note_other',
+ 'update_server',
+ 'add_sales_server',
+ 'sales_server'
+ ),
+ 'right' => array(
+ 'translation_tool',
+ 'note_crowdin',
+ 'crowdin_project_identifier',
+ 'crowdin_project_api_key',
+ 'crowdin_username',
+ 'crowdin_account_api_key'
+ )
+ ),
+ 'readme' => array(
+ 'left' => array(
+ 'addreadme',
+ 'readme'
+ ),
+ 'right' => array(
+ 'note_readme'
+ )
+ ),
+ 'dash_install' => array(
+ 'left' => array(
+ 'dashboard_type'
+ ),
+ 'right' => array(
+ 'note_dynamic_dashboard',
+ 'dashboard',
+ 'note_botton_component_dashboard'
+ ),
+ 'fullwidth' => array(
+ 'add_php_preflight_install',
+ 'php_preflight_install',
+ 'add_php_preflight_update',
+ 'php_preflight_update',
+ 'add_php_postflight_install',
+ 'php_postflight_install',
+ 'add_php_postflight_update',
+ 'php_postflight_update',
+ 'add_php_method_uninstall',
+ 'php_method_uninstall'
+ )
+ ),
+ 'mysql' => array(
+ 'fullwidth' => array(
+ 'add_sql',
+ 'sql',
+ 'add_sql_uninstall',
+ 'sql_uninstall'
+ )
+ ),
+ 'settings' => array(
+ 'left' => array(
+ 'note_moved_views',
+ 'spacer_hr_one',
+ 'note_mysql_tweak_options',
+ 'spacer_hr_two',
+ 'note_add_custom_menus',
+ 'spacer_hr_three',
+ 'note_add_config'
+ ),
+ 'right' => array(
+ 'note_component_files_folders',
+ 'spacer_hr_four',
+ 'add_menu_prefix',
+ 'menu_prefix',
+ 'spacer_hr_five',
+ 'to_ignore_note',
+ 'toignore',
+ 'spacer_hr_six',
+ 'jcb_export_package_note',
+ 'export_key',
+ 'joomla_source_link',
+ 'export_buy_link'
+ ),
+ 'fullwidth' => array(
+ 'spacer_hr_seven',
+ 'note_on_contributors',
+ 'addcontributors',
+ 'emptycontributors',
+ 'number'
+ )
+ ),
+ 'dynamic_build_beta' => array(
+ 'fullwidth' => array(
+ 'note_buildcomp_dynamic_mysql',
+ 'buildcomp',
+ 'buildcompsql'
+ )
+ ),
+ 'admin_views' => array(
+ 'fullwidth' => array(
+ 'note_on_admin_views',
+ 'note_display_component_admin_views'
+ )
+ ),
+ 'site_views' => array(
+ 'fullwidth' => array(
+ 'note_on_site_views',
+ 'note_display_component_site_views'
+ )
+ ),
+ 'custom_admin_views' => array(
+ 'fullwidth' => array(
+ 'note_on_custom_admin_views',
+ 'note_display_component_custom_admin_views'
+ )
+ )
+ );
+
/**
* @var string The prefix to use with controller messages.
* @since 1.6
*/
protected $text_prefix = 'COM_COMPONENTBUILDER';
-
+
/**
* The type alias for this content type.
*
@@ -52,10 +238,17 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
return JTable::getInstance($type, $prefix, $config);
}
+ /**
+ * get VDM session key
+ *
+ * @return string the session key
+ *
+ */
public function getVDM()
{
return $this->vastDevMod;
}
+
/**
* Method to get a single record.
@@ -407,7 +600,18 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
$form->setFieldAttribute($name, 'editor', $global_editor . '|none');
}
}
-
+
+ // Only load these values if no id is found
+ if (0 == $id)
+ {
+ // set company defaults
+ $form->setValue('companyname', null, JComponentHelper::getParams('com_componentbuilder')->get('export_company', ''));
+ $form->setValue('author', null, JComponentHelper::getParams('com_componentbuilder')->get('export_owner', ''));
+ $form->setValue('email', null, JComponentHelper::getParams('com_componentbuilder')->get('export_email', ''));
+ $form->setValue('website', null, JComponentHelper::getParams('com_componentbuilder')->get('export_website', ''));
+ $form->setValue('copyright', null, JComponentHelper::getParams('com_componentbuilder')->get('export_copyright', 'Copyright (C) 2015. All Rights Reserved'));
+ $form->setValue('license', null, JComponentHelper::getParams('com_componentbuilder')->get('export_license', 'GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html'));
+ }
return $form;
}
diff --git a/admin/models/joomla_components.php b/admin/models/joomla_components.php
index 707298c21..1121e55b0 100644
--- a/admin/models/joomla_components.php
+++ b/admin/models/joomla_components.php
@@ -1714,7 +1714,14 @@ class ComponentbuilderModelJoomla_components extends JModelList
'not_base64' => array('dashboard_tab' => 'json'),
'name' => 'joomla_component->id:joomla_component.system_name'
),
- // #__componentbuilder_admin_view (c)
+ // #__componentbuilder_component_placeholders (c)
+ 'component_placeholders' => array(
+ 'search' => array('id', 'joomla_component', 'addplaceholders'),
+ 'views' => 'components_placeholders',
+ 'not_base64' => array('addplaceholders' => 'json'),
+ 'name' => 'joomla_component->id:joomla_component.system_name'
+ ),
+ // #__componentbuilder_admin_view (d)
'admin_view' => array(
'search' => array('id', 'system_name', 'javascript_view_file', 'javascript_view_footer',
'javascript_views_file', 'javascript_views_footer', 'html_import_view',
@@ -1727,14 +1734,21 @@ class ComponentbuilderModelJoomla_components extends JModelList
'not_base64' => array(),
'name' => 'system_name'
),
- // #__componentbuilder_admin_fields_relations (d)
+ // #__componentbuilder_admin_fields_relations (e)
'admin_fields_relations' => array(
'search' => array('id', 'admin_view', 'addrelations'),
'views' => 'admins_fields_relations',
'not_base64' => array('addrelations' => 'json'),
'name' => 'admin_view->id:admin_view.system_name'
),
- // #__componentbuilder_custom_admin_view (e)
+ // #__componentbuilder_admin_custom_tabs (f)
+ 'admin_custom_tabs' => array(
+ 'search' => array('id', 'admin_view', 'tabs'),
+ 'views' => 'admins_custom_tabs',
+ 'not_base64' => array('tabs' => 'json'),
+ 'name' => 'admin_view->id:admin_view.system_name'
+ ),
+ // #__componentbuilder_custom_admin_view (g)
'custom_admin_view' => array(
'search' => array('id', 'system_name', 'default', 'php_view', 'php_jview', 'php_jview_display', 'php_document',
'js_document', 'css_document', 'css', 'php_ajaxmethod', 'php_model', 'php_controller'),
@@ -1742,7 +1756,7 @@ class ComponentbuilderModelJoomla_components extends JModelList
'not_base64' => array(),
'name' => 'system_name'
),
- // #__componentbuilder_site_view (f)
+ // #__componentbuilder_site_view (h)
'site_view' => array(
'search' => array('id', 'system_name', 'default', 'php_view', 'php_jview', 'php_jview_display', 'php_document',
'js_document', 'css_document', 'css', 'php_ajaxmethod', 'php_model', 'php_controller'),
@@ -1750,7 +1764,7 @@ class ComponentbuilderModelJoomla_components extends JModelList
'not_base64' => array(),
'name' => 'system_name'
),
- // #__componentbuilder_field (g)
+ // #__componentbuilder_field (i)
'field' => array(
'search' => array('id', 'name', 'xml', 'javascript_view_footer', 'javascript_views_footer'),
'views' => 'fields',
@@ -1758,14 +1772,14 @@ class ComponentbuilderModelJoomla_components extends JModelList
'base64_search' => array('xml' => array('start' => 'type_php', '_start' => '="', 'end' => '"')),
'name' => 'name'
),
- // #__componentbuilder_fieldtype (h)
+ // #__componentbuilder_fieldtype (j)
'fieldtype' => array(
'search' => array('id', 'name', 'properties'),
'views' => 'fieldtypes',
'not_base64' => array('properties' => 'json'),
'name' => 'name'
),
- // #__componentbuilder_dynamic_get (i)
+ // #__componentbuilder_dynamic_get (k)
'dynamic_get' => array(
'search' => array('id', 'name', 'php_before_getitem', 'php_after_getitem', 'php_before_getitems', 'php_after_getitems',
'php_getlistquery'),
@@ -1773,35 +1787,35 @@ class ComponentbuilderModelJoomla_components extends JModelList
'not_base64' => array(),
'name' => 'name'
),
- // #__componentbuilder_template (j)
+ // #__componentbuilder_template (l)
'template' => array(
'search' => array('id', 'name', 'php_view', 'template'),
'views' => 'templates',
'not_base64' => array(),
'name' => 'name'
),
- // #__componentbuilder_layout (k)
+ // #__componentbuilder_layout (m)
'layout' => array(
'search' => array('id', 'name', 'php_view', 'layout'),
'views' => 'layouts',
'not_base64' => array(),
'name' => 'name'
),
- // #__componentbuilder_library (l)
+ // #__componentbuilder_library (n)
'library' => array(
'search' => array('id', 'name', 'php_setdocument'),
'views' => 'libraries',
'not_base64' => array(),
'name' => 'name'
),
- // #__componentbuilder_custom_code (m)
+ // #__componentbuilder_custom_code (o)
'custom_code' => array(
'search' => array('id', 'system_name', 'code'),
'views' => 'custom_codes',
'not_base64' => array(),
'name' => 'system_name'
),
- // #__componentbuilder_validation_rule (n)
+ // #__componentbuilder_validation_rule (p)
'validation_rule' => array(
'search' => array('id', 'name', 'php'),
'views' => 'validation_rules',
diff --git a/admin/models/language.php b/admin/models/language.php
index 962f68a39..afc984dfe 100644
--- a/admin/models/language.php
+++ b/admin/models/language.php
@@ -18,13 +18,29 @@ use Joomla\Registry\Registry;
* Componentbuilder Language Model
*/
class ComponentbuilderModelLanguage extends JModelAdmin
-{
+{
+ /**
+ * The tab layout fields array.
+ *
+ * @var array
+ */
+ protected $tabLayoutFields = array(
+ 'details' => array(
+ 'left' => array(
+ 'name'
+ ),
+ 'right' => array(
+ 'langtag'
+ )
+ )
+ );
+
/**
* @var string The prefix to use with controller messages.
* @since 1.6
*/
protected $text_prefix = 'COM_COMPONENTBUILDER';
-
+
/**
* The type alias for this content type.
*
diff --git a/admin/models/language_translation.php b/admin/models/language_translation.php
index c5758ca07..5d042d195 100644
--- a/admin/models/language_translation.php
+++ b/admin/models/language_translation.php
@@ -18,13 +18,28 @@ use Joomla\Registry\Registry;
* Componentbuilder Language_translation Model
*/
class ComponentbuilderModelLanguage_translation extends JModelAdmin
-{
+{
+ /**
+ * The tab layout fields array.
+ *
+ * @var array
+ */
+ protected $tabLayoutFields = array(
+ 'details' => array(
+ 'fullwidth' => array(
+ 'source',
+ 'translation',
+ 'components'
+ )
+ )
+ );
+
/**
* @var string The prefix to use with controller messages.
* @since 1.6
*/
protected $text_prefix = 'COM_COMPONENTBUILDER';
-
+
/**
* The type alias for this content type.
*
diff --git a/admin/models/layout.php b/admin/models/layout.php
index d6a4cd8f6..76abad48b 100644
--- a/admin/models/layout.php
+++ b/admin/models/layout.php
@@ -18,13 +18,52 @@ use Joomla\Registry\Registry;
* Componentbuilder Layout Model
*/
class ComponentbuilderModelLayout extends JModelAdmin
-{
+{
+ /**
+ * The tab layout fields array.
+ *
+ * @var array
+ */
+ protected $tabLayoutFields = array(
+ 'details' => array(
+ 'left' => array(
+ 'name',
+ 'alias',
+ 'description',
+ 'note_libraries_selection',
+ 'libraries',
+ 'note_add_language_string'
+ ),
+ 'right' => array(
+ 'snippet',
+ 'note_uikit_snippet',
+ 'note_snippet_usage'
+ ),
+ 'fullwidth' => array(
+ 'layout'
+ ),
+ 'under' => array(
+ 'not_required'
+ ),
+ 'rightside' => array(
+ 'dynamic_get',
+ 'dynamic_values'
+ )
+ ),
+ 'custom_script' => array(
+ 'fullwidth' => array(
+ 'add_php_view',
+ 'php_view'
+ )
+ )
+ );
+
/**
* @var string The prefix to use with controller messages.
* @since 1.6
*/
protected $text_prefix = 'COM_COMPONENTBUILDER';
-
+
/**
* The type alias for this content type.
*
@@ -52,10 +91,17 @@ class ComponentbuilderModelLayout extends JModelAdmin
return JTable::getInstance($type, $prefix, $config);
}
+ /**
+ * get VDM session key
+ *
+ * @return string the session key
+ *
+ */
public function getVDM()
{
return $this->vastDevMod;
}
+
/**
* Method to get a single record.
diff --git a/admin/models/library.php b/admin/models/library.php
index cc26b5365..113d048e8 100644
--- a/admin/models/library.php
+++ b/admin/models/library.php
@@ -18,13 +18,65 @@ use Joomla\Registry\Registry;
* Componentbuilder Library Model
*/
class ComponentbuilderModelLibrary extends JModelAdmin
-{
+{
+ /**
+ * The tab layout fields array.
+ *
+ * @var array
+ */
+ protected $tabLayoutFields = array(
+ 'behaviour' => array(
+ 'left' => array(
+ 'note_library_instruction',
+ 'libraries'
+ ),
+ 'right' => array(
+ 'description'
+ ),
+ 'fullwidth' => array(
+ 'note_no_behaviour_one',
+ 'note_yes_behaviour_one',
+ 'note_build_in_behaviour_one',
+ 'addconditions',
+ 'php_setdocument'
+ ),
+ 'above' => array(
+ 'name',
+ 'how',
+ 'type'
+ ),
+ 'under' => array(
+ 'not_required'
+ )
+ ),
+ 'config' => array(
+ 'fullwidth' => array(
+ 'note_no_behaviour_two',
+ 'note_yes_behaviour_two',
+ 'note_build_in_behaviour_two',
+ 'note_display_library_config'
+ )
+ ),
+ 'files_folders_urls' => array(
+ 'fullwidth' => array(
+ 'note_no_behaviour_three',
+ 'note_build_in_behaviour_three',
+ 'note_display_library_files_folders_urls'
+ )
+ ),
+ 'linked' => array(
+ 'fullwidth' => array(
+ 'note_linked_to_notice'
+ )
+ )
+ );
+
/**
* @var string The prefix to use with controller messages.
* @since 1.6
*/
protected $text_prefix = 'COM_COMPONENTBUILDER';
-
+
/**
* The type alias for this content type.
*
@@ -52,10 +104,17 @@ class ComponentbuilderModelLibrary extends JModelAdmin
return JTable::getInstance($type, $prefix, $config);
}
+ /**
+ * get VDM session key
+ *
+ * @return string the session key
+ *
+ */
public function getVDM()
{
return $this->vastDevMod;
}
+
/**
* Method to get a single record.
diff --git a/admin/models/library_config.php b/admin/models/library_config.php
index 8c78ade47..928f52550 100644
--- a/admin/models/library_config.php
+++ b/admin/models/library_config.php
@@ -18,13 +18,29 @@ use Joomla\Registry\Registry;
* Componentbuilder Library_config Model
*/
class ComponentbuilderModelLibrary_config extends JModelAdmin
-{
+{
+ /**
+ * The tab layout fields array.
+ *
+ * @var array
+ */
+ protected $tabLayoutFields = array(
+ 'tweaks' => array(
+ 'fullwidth' => array(
+ 'addconfig'
+ ),
+ 'above' => array(
+ 'library'
+ )
+ )
+ );
+
/**
* @var string The prefix to use with controller messages.
* @since 1.6
*/
protected $text_prefix = 'COM_COMPONENTBUILDER';
-
+
/**
* The type alias for this content type.
*
diff --git a/admin/models/library_files_folders_urls.php b/admin/models/library_files_folders_urls.php
index 103945f17..4ea18f984 100644
--- a/admin/models/library_files_folders_urls.php
+++ b/admin/models/library_files_folders_urls.php
@@ -18,13 +18,43 @@ use Joomla\Registry\Registry;
* Componentbuilder Library_files_folders_urls Model
*/
class ComponentbuilderModelLibrary_files_folders_urls extends JModelAdmin
-{
+{
+ /**
+ * The tab layout fields array.
+ *
+ * @var array
+ */
+ protected $tabLayoutFields = array(
+ 'basic' => array(
+ 'fullwidth' => array(
+ 'note_add_urls',
+ 'addurls',
+ 'note_add_files',
+ 'addfiles',
+ 'note_add_folders',
+ 'addfolders'
+ ),
+ 'above' => array(
+ 'library'
+ )
+ ),
+ 'advance' => array(
+ 'fullwidth' => array(
+ 'note_add_files_fullpath',
+ 'addfilesfullpath',
+ 'note_add_folders_fullpath',
+ 'addfoldersfullpath',
+ 'note_constant_paths'
+ )
+ )
+ );
+
/**
* @var string The prefix to use with controller messages.
* @since 1.6
*/
protected $text_prefix = 'COM_COMPONENTBUILDER';
-
+
/**
* The type alias for this content type.
*
diff --git a/admin/models/placeholder.php b/admin/models/placeholder.php
index e11f07c94..6b78fa74d 100644
--- a/admin/models/placeholder.php
+++ b/admin/models/placeholder.php
@@ -18,13 +18,32 @@ use Joomla\Registry\Registry;
* Componentbuilder Placeholder Model
*/
class ComponentbuilderModelPlaceholder extends JModelAdmin
-{
+{
+ /**
+ * The tab layout fields array.
+ *
+ * @var array
+ */
+ protected $tabLayoutFields = array(
+ 'details' => array(
+ 'left' => array(
+ 'target'
+ ),
+ 'right' => array(
+ 'value'
+ ),
+ 'fullwidth' => array(
+ 'note_placeholders_placedin'
+ )
+ )
+ );
+
/**
* @var string The prefix to use with controller messages.
* @since 1.6
*/
protected $text_prefix = 'COM_COMPONENTBUILDER';
-
+
/**
* The type alias for this content type.
*
@@ -52,10 +71,17 @@ class ComponentbuilderModelPlaceholder extends JModelAdmin
return JTable::getInstance($type, $prefix, $config);
}
+ /**
+ * get VDM session key
+ *
+ * @return string the session key
+ *
+ */
public function getVDM()
{
return $this->vastDevMod;
}
+
/**
* Method to get a single record.
diff --git a/admin/models/server.php b/admin/models/server.php
index 996a3b3d2..ce83d23e8 100644
--- a/admin/models/server.php
+++ b/admin/models/server.php
@@ -18,13 +18,46 @@ use Joomla\Registry\Registry;
* Componentbuilder Server Model
*/
class ComponentbuilderModelServer extends JModelAdmin
-{
+{
+ /**
+ * The tab layout fields array.
+ *
+ * @var array
+ */
+ protected $tabLayoutFields = array(
+ 'details' => array(
+ 'left' => array(
+ 'username',
+ 'host',
+ 'port',
+ 'path'
+ ),
+ 'right' => array(
+ 'authentication',
+ 'password',
+ 'private',
+ 'private_key',
+ 'secret'
+ ),
+ 'fullwidth' => array(
+ 'note_ftp_signature',
+ 'signature',
+ 'note_ssh_security',
+ 'not_required'
+ ),
+ 'above' => array(
+ 'name',
+ 'protocol'
+ )
+ )
+ );
+
/**
* @var string The prefix to use with controller messages.
* @since 1.6
*/
protected $text_prefix = 'COM_COMPONENTBUILDER';
-
+
/**
* The type alias for this content type.
*
@@ -156,7 +189,7 @@ class ComponentbuilderModelServer extends JModelAdmin
*
* @return mixed An array of data items on success, false on failure.
*/
- public function getWazlinked_components()
+ public function getWbblinked_components()
{
// Get the user object.
$user = JFactory::getUser();
diff --git a/admin/models/site_view.php b/admin/models/site_view.php
index e9656b354..8192eefa8 100644
--- a/admin/models/site_view.php
+++ b/admin/models/site_view.php
@@ -18,13 +18,98 @@ use Joomla\Registry\Registry;
* Componentbuilder Site_view Model
*/
class ComponentbuilderModelSite_view extends JModelAdmin
-{
+{
+ /**
+ * The tab layout fields array.
+ *
+ * @var array
+ */
+ protected $tabLayoutFields = array(
+ 'details' => array(
+ 'left' => array(
+ 'name',
+ 'codename',
+ 'description',
+ 'note_libraries_selection',
+ 'libraries',
+ 'note_add_language_string'
+ ),
+ 'right' => array(
+ 'snippet',
+ 'note_uikit_snippet',
+ 'note_snippet_usage'
+ ),
+ 'fullwidth' => array(
+ 'default'
+ ),
+ 'above' => array(
+ 'system_name',
+ 'context'
+ ),
+ 'under' => array(
+ 'not_required'
+ ),
+ 'rightside' => array(
+ 'custom_get',
+ 'main_get',
+ 'dynamic_get',
+ 'dynamic_values'
+ )
+ ),
+ 'php' => array(
+ 'fullwidth' => array(
+ 'add_php_ajax',
+ 'php_ajaxmethod',
+ 'ajax_input',
+ 'add_php_document',
+ 'php_document',
+ 'add_php_view',
+ 'php_view',
+ 'add_php_jview_display',
+ 'php_jview_display',
+ 'add_php_jview',
+ 'php_jview'
+ )
+ ),
+ 'javascript_css' => array(
+ 'fullwidth' => array(
+ 'add_javascript_file',
+ 'javascript_file',
+ 'add_js_document',
+ 'js_document',
+ 'add_css_document',
+ 'css_document',
+ 'add_css',
+ 'css'
+ )
+ ),
+ 'custom_buttons' => array(
+ 'left' => array(
+ 'add_custom_button'
+ ),
+ 'right' => array(
+ 'button_position'
+ ),
+ 'fullwidth' => array(
+ 'note_custom_toolbar_placeholder',
+ 'custom_button',
+ 'php_controller',
+ 'php_model'
+ )
+ ),
+ 'linked_components' => array(
+ 'fullwidth' => array(
+ 'note_linked_to_notice'
+ )
+ )
+ );
+
/**
* @var string The prefix to use with controller messages.
* @since 1.6
*/
protected $text_prefix = 'COM_COMPONENTBUILDER';
-
+
/**
* The type alias for this content type.
*
@@ -52,10 +137,17 @@ class ComponentbuilderModelSite_view extends JModelAdmin
return JTable::getInstance($type, $prefix, $config);
}
+ /**
+ * get VDM session key
+ *
+ * @return string the session key
+ *
+ */
public function getVDM()
{
return $this->vastDevMod;
}
+
/**
* Method to get a single record.
diff --git a/admin/models/snippet.php b/admin/models/snippet.php
index b5b657a0d..1eaeb22ee 100644
--- a/admin/models/snippet.php
+++ b/admin/models/snippet.php
@@ -18,13 +18,50 @@ use Joomla\Registry\Registry;
* Componentbuilder Snippet Model
*/
class ComponentbuilderModelSnippet extends JModelAdmin
-{
+{
+ /**
+ * The tab layout fields array.
+ *
+ * @var array
+ */
+ protected $tabLayoutFields = array(
+ 'details' => array(
+ 'left' => array(
+ 'type',
+ 'heading',
+ 'description',
+ 'usage'
+ ),
+ 'right' => array(
+ 'snippet'
+ ),
+ 'above' => array(
+ 'name',
+ 'url',
+ 'library'
+ )
+ ),
+ 'contributor' => array(
+ 'left' => array(
+ 'contributor_company',
+ 'contributor_website'
+ ),
+ 'right' => array(
+ 'contributor_name',
+ 'contributor_email'
+ ),
+ 'fullwidth' => array(
+ 'note_contributor_details'
+ )
+ )
+ );
+
/**
* @var string The prefix to use with controller messages.
* @since 1.6
*/
protected $text_prefix = 'COM_COMPONENTBUILDER';
-
+
/**
* The type alias for this content type.
*
diff --git a/admin/models/snippet_type.php b/admin/models/snippet_type.php
index b918872e8..0fd4d5192 100644
--- a/admin/models/snippet_type.php
+++ b/admin/models/snippet_type.php
@@ -18,13 +18,29 @@ use Joomla\Registry\Registry;
* Componentbuilder Snippet_type Model
*/
class ComponentbuilderModelSnippet_type extends JModelAdmin
-{
+{
+ /**
+ * The tab layout fields array.
+ *
+ * @var array
+ */
+ protected $tabLayoutFields = array(
+ 'details' => array(
+ 'left' => array(
+ 'name'
+ ),
+ 'right' => array(
+ 'description'
+ )
+ )
+ );
+
/**
* @var string The prefix to use with controller messages.
* @since 1.6
*/
protected $text_prefix = 'COM_COMPONENTBUILDER';
-
+
/**
* The type alias for this content type.
*
diff --git a/admin/models/template.php b/admin/models/template.php
index be901b9f1..91d6ceabb 100644
--- a/admin/models/template.php
+++ b/admin/models/template.php
@@ -18,13 +18,52 @@ use Joomla\Registry\Registry;
* Componentbuilder Template Model
*/
class ComponentbuilderModelTemplate extends JModelAdmin
-{
+{
+ /**
+ * The tab layout fields array.
+ *
+ * @var array
+ */
+ protected $tabLayoutFields = array(
+ 'details' => array(
+ 'left' => array(
+ 'name',
+ 'alias',
+ 'description',
+ 'note_libraries_selection',
+ 'libraries',
+ 'note_add_language_string'
+ ),
+ 'right' => array(
+ 'snippet',
+ 'note_snippet_usage',
+ 'note_uikit_snippet'
+ ),
+ 'fullwidth' => array(
+ 'template'
+ ),
+ 'under' => array(
+ 'not_required'
+ ),
+ 'rightside' => array(
+ 'dynamic_get',
+ 'dynamic_values'
+ )
+ ),
+ 'custom_script' => array(
+ 'fullwidth' => array(
+ 'add_php_view',
+ 'php_view'
+ )
+ )
+ );
+
/**
* @var string The prefix to use with controller messages.
* @since 1.6
*/
protected $text_prefix = 'COM_COMPONENTBUILDER';
-
+
/**
* The type alias for this content type.
*
@@ -52,10 +91,17 @@ class ComponentbuilderModelTemplate extends JModelAdmin
return JTable::getInstance($type, $prefix, $config);
}
+ /**
+ * get VDM session key
+ *
+ * @return string the session key
+ *
+ */
public function getVDM()
{
return $this->vastDevMod;
}
+
/**
* Method to get a single record.
diff --git a/admin/models/validation_rule.php b/admin/models/validation_rule.php
index 678ad8f12..5ac0ca8b3 100644
--- a/admin/models/validation_rule.php
+++ b/admin/models/validation_rule.php
@@ -18,13 +18,35 @@ use Joomla\Registry\Registry;
* Componentbuilder Validation_rule Model
*/
class ComponentbuilderModelValidation_rule extends JModelAdmin
-{
+{
+ /**
+ * The tab layout fields array.
+ *
+ * @var array
+ */
+ protected $tabLayoutFields = array(
+ 'extends_formrule' => array(
+ 'left' => array(
+ 'name'
+ ),
+ 'right' => array(
+ 'short_description'
+ ),
+ 'fullwidth' => array(
+ 'php'
+ ),
+ 'above' => array(
+ 'inherit'
+ )
+ )
+ );
+
/**
* @var string The prefix to use with controller messages.
* @since 1.6
*/
protected $text_prefix = 'COM_COMPONENTBUILDER';
-
+
/**
* The type alias for this content type.
*
diff --git a/admin/sql/install.mysql.utf8.sql b/admin/sql/install.mysql.utf8.sql
index 01370c330..6ad006031 100644
--- a/admin/sql/install.mysql.utf8.sql
+++ b/admin/sql/install.mysql.utf8.sql
@@ -153,6 +153,7 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_admin_view` (
`add_javascript_view_footer` TINYINT(1) NOT NULL DEFAULT 0,
`add_javascript_views_file` TINYINT(1) NOT NULL DEFAULT 0,
`add_javascript_views_footer` TINYINT(1) NOT NULL DEFAULT 0,
+ `add_php_after_cancel` TINYINT(1) NOT NULL DEFAULT 0,
`add_php_after_delete` TINYINT(1) NOT NULL DEFAULT 0,
`add_php_after_publish` TINYINT(1) NOT NULL DEFAULT 0,
`add_php_ajax` TINYINT(1) NOT NULL DEFAULT 0,
@@ -160,6 +161,7 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_admin_view` (
`add_php_allowedit` TINYINT(1) NOT NULL DEFAULT 0,
`add_php_batchcopy` TINYINT(1) NOT NULL DEFAULT 0,
`add_php_batchmove` TINYINT(1) NOT NULL DEFAULT 0,
+ `add_php_before_cancel` TINYINT(1) NOT NULL DEFAULT 0,
`add_php_before_delete` TINYINT(1) NOT NULL DEFAULT 0,
`add_php_before_publish` TINYINT(1) NOT NULL DEFAULT 0,
`add_php_before_save` TINYINT(1) NOT NULL DEFAULT 0,
@@ -197,6 +199,7 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_admin_view` (
`mysql_table_row_format` VARCHAR(64) NOT NULL DEFAULT 0,
`name_list` CHAR(64) NOT NULL DEFAULT '',
`name_single` CHAR(64) NOT NULL DEFAULT '',
+ `php_after_cancel` MEDIUMTEXT NOT NULL,
`php_after_delete` MEDIUMTEXT NOT NULL,
`php_after_publish` MEDIUMTEXT NOT NULL,
`php_ajaxmethod` MEDIUMTEXT NOT NULL,
@@ -204,6 +207,7 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_admin_view` (
`php_allowedit` MEDIUMTEXT NOT NULL,
`php_batchcopy` MEDIUMTEXT NOT NULL,
`php_batchmove` MEDIUMTEXT NOT NULL,
+ `php_before_cancel` MEDIUMTEXT NOT NULL,
`php_before_delete` MEDIUMTEXT NOT NULL,
`php_before_publish` MEDIUMTEXT NOT NULL,
`php_before_save` MEDIUMTEXT NOT NULL,
@@ -249,23 +253,24 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_admin_view` (
KEY `idx_modifiedby` (`modified_by`),
KEY `idx_state` (`published`),
KEY `idx_name_single` (`name_single`),
- KEY `idx_add_php_batchcopy` (`add_php_batchcopy`),
+ KEY `idx_add_php_before_cancel` (`add_php_before_cancel`),
KEY `idx_add_php_allowadd` (`add_php_allowadd`),
KEY `idx_add_php_save` (`add_php_save`),
KEY `idx_add_php_getform` (`add_php_getform`),
- KEY `idx_add_php_getitems_after_all` (`add_php_getitems_after_all`),
- KEY `idx_add_php_document` (`add_php_document`),
- KEY `idx_add_fadein` (`add_fadein`),
- KEY `idx_add_php_before_publish` (`add_php_before_publish`),
- KEY `idx_add_php_before_delete` (`add_php_before_delete`),
- KEY `idx_mysql_table_collate` (`mysql_table_collate`),
- KEY `idx_type` (`type`),
- KEY `idx_add_custom_import` (`add_custom_import`),
KEY `idx_name_list` (`name_list`),
+ KEY `idx_add_php_before_delete` (`add_php_before_delete`),
+ KEY `idx_add_fadein` (`add_fadein`),
+ KEY `idx_add_php_batchcopy` (`add_php_batchcopy`),
+ KEY `idx_mysql_table_collate` (`mysql_table_collate`),
+ KEY `idx_add_php_before_publish` (`add_php_before_publish`),
+ KEY `idx_add_custom_import` (`add_custom_import`),
+ KEY `idx_add_php_document` (`add_php_document`),
+ KEY `idx_type` (`type`),
KEY `idx_add_php_getlistquery` (`add_php_getlistquery`),
KEY `idx_add_php_before_save` (`add_php_before_save`),
KEY `idx_add_php_postsavehook` (`add_php_postsavehook`),
KEY `idx_add_php_allowedit` (`add_php_allowedit`),
+ KEY `idx_add_php_after_cancel` (`add_php_after_cancel`),
KEY `idx_add_php_batchmove` (`add_php_batchmove`),
KEY `idx_add_php_after_publish` (`add_php_after_publish`),
KEY `idx_add_php_after_delete` (`add_php_after_delete`),
@@ -280,10 +285,11 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_admin_view` (
KEY `idx_add_custom_button` (`add_custom_button`),
KEY `idx_mysql_table_charset` (`mysql_table_charset`),
KEY `idx_mysql_table_row_format` (`mysql_table_row_format`),
- KEY `idx_source` (`source`),
KEY `idx_add_php_ajax` (`add_php_ajax`),
+ KEY `idx_source` (`source`),
KEY `idx_add_php_getitem` (`add_php_getitem`),
- KEY `idx_add_php_getitems` (`add_php_getitems`)
+ KEY `idx_add_php_getitems` (`add_php_getitems`),
+ KEY `idx_add_php_getitems_after_all` (`add_php_getitems_after_all`)
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;
CREATE TABLE IF NOT EXISTS `#__componentbuilder_custom_admin_view` (
@@ -1657,11 +1663,11 @@ INSERT INTO `#__componentbuilder_field` (`id`, `add_css_view`, `add_css_views`,
INSERT INTO `#__componentbuilder_fieldtype` (`id`, `catid`, `description`, `name`, `properties`, `short_description`, `params`, `published`, `version`, `hits`, `ordering`) VALUES
(1, '', 'The calendar form field type provides a text box for entry of a date. An icon next to the text box provides a link to a pop-up calendar, which can also be used to enter the date value. If the field has a saved value this is shown in the text box. Otherwis', 'Calendar', '{\"properties0\":{\"name\":\"type\",\"example\":\"calendar\",\"mandatory\":\"1\",\"description\":\"(mandatory) must be calendar.\"},\"properties1\":{\"name\":\"name\",\"example\":\"date\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"description\":\"(mandatory) is the unique name of the field.\"},\"properties2\":{\"name\":\"label\",\"example\":\"Select a date\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"translatable\":\"1\",\"description\":\"(mandatory) (translatable) is the descriptive title of the field.\"},\"properties3\":{\"name\":\"default\",\"example\":\"NOW\",\"adjustable\":\"1\",\"description\":\"(optional) is the default date. This must be given in the same format as specified by the format argument. You can put \\\"NOW\\\" to have current time.\"},\"properties4\":{\"name\":\"description\",\"example\":\"\",\"adjustable\":\"1\",\"translatable\":\"1\",\"description\":\"(optional) (translatable) is text that will be shown as a tooltip when the user moves the mouse over the text box.\"},\"properties5\":{\"name\":\"readonly\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) is whether the text box is read-only (true or false). If the text box is read-only, the date cannot be changed, but can be selected and copied. No calendar icon will be shown.\"},\"properties6\":{\"name\":\"disabled\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) is whether the text box is disabled (true or false). If the text box is disabled, the date cannot be changed, selected or copied.\"},\"properties7\":{\"name\":\"class\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) is a CSS class name for the HTML form field.\"},\"properties8\":{\"name\":\"format\",\"example\":\"%d-%m-%Y\",\"adjustable\":\"1\",\"description\":\"(optional) is 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\').\"},\"properties9\":{\"name\":\"filter\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) is time zone to be used. There are two values; server_utc and user_utc. The first one is server time zone and the later is user time zone as configured in global configuration and user information respectively.\"},\"properties10\":{\"name\":\"size\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional)\"},\"properties11\":{\"name\":\"required\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) The field must be filled before submitting the form.\"},\"properties12\":{\"name\":\"showon\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) show this field on the bases of the value in another field.\"},\"properties22\":{\"name\":\"translateformat\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional): If set to true, the calendar will use a language string to determine the format. The `format` attribute is ignored. If false, the `format` attribute is used (same behaviour as today). (starting with 3.7.0)\"},\"properties13\":{\"name\":\"showtime\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional): If set to true and translateformat is true, the language key DATE_FORMAT_CALENDAR_DATETIME is used, otherwise DATE_FORMAT_CALENDAR_DATE. (starting with 3.7.0)\"},\"properties14\":{\"name\":\"timeformat\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional): can be set to 12 (and specify AM or PM) or 24 (starting with 3.7.0)\"},\"properties15\":{\"name\":\"singleheader\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional): if set to false, the year and the month selection will be set on two separates lines, with independant selection (starting with 3.7.0)\"},\"properties16\":{\"name\":\"todaybutton\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional): if set to true, a button is added at the bottom of the datePicker to select the date of the current day (starting with 3.7.0)\"},\"properties17\":{\"name\":\"weeknumbers\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional): if set to true, a column is added at the left of the datePicker to display the number of the week in the current year (starting with 3.7.0)\"},\"properties18\":{\"name\":\"filltable\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional): if set to true, dates of the previous and next month is added at the top and the bottom of the current month to fill the grid (starting with 3.7.0)\"},\"properties19\":{\"name\":\"minyear\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional): set a signed integer for a number of years (-10, -2, 0, 7, 12, ...) to define the relative lower limit for the year selection. The user could not select a year before your limit (starting with 3.7.0)\"},\"properties20\":{\"name\":\"maxyear\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional): set a signed integer for a number of years (-10, -2, 0, 7, 12, ...) to define the relative upper limit for the year selection. The user could not select a year after your limit (starting with 3.7.0)\"}}', 'provides a text box for entry of a date. An icon next to the text box provides a link to a pop-up calendar, which can also be used to enter the date value.', '', 1, 5, '', ''),
-(2, '', 'The category form field type provides a drop down list of all published categories for a certain extension. If the parameter has a saved value this is selected when the page is first loaded. If not, the default value (if any) is selected. If the show_root', 'Category', '{\"properties0\":{\"name\":\"type\",\"example\":\"category\",\"mandatory\":\"1\",\"description\":\"(mandatory) must be category.\"},\"properties1\":{\"name\":\"name\",\"example\":\"mycategory\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"description\":\"(mandatory) is the unique name of the parameter.\"},\"properties2\":{\"name\":\"label\",\"example\":\"Select a category\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"translatable\":\"1\",\"description\":\"(mandatory) (translatable) is the descriptive title of the field.\"},\"properties3\":{\"name\":\"extension\",\"example\":\"com_content\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"description\":\"(mandatory) is the name of the extension for which the categories will be retrieved. For example, to list content categories, use the value \'com_content\'. You can add also target one view, use the value \'com_component.view\'.\"},\"properties4\":{\"name\":\"scope\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) is an alias for extension.\"},\"properties5\":{\"name\":\"required\",\"example\":\"true\",\"adjustable\":\"1\",\"description\":\"(optional) The field must be filled before submitting the form.\"},\"properties6\":{\"name\":\"show_root\",\"example\":\"false\",\"adjustable\":\"1\",\"description\":\"(optional) is whether a choice representing the root category will be shown.\"},\"properties7\":{\"name\":\"default\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) is the default category ID number.\"},\"properties8\":{\"name\":\"description\",\"example\":\"select one of the following categories\",\"adjustable\":\"1\",\"translatable\":\"1\",\"description\":\"(optional) (translatable) is text that will be shown as a tooltip when the user moves the mouse over the drop-down box.\"},\"properties9\":{\"name\":\"class\",\"example\":\"inputbox\",\"adjustable\":\"1\",\"description\":\"(optional) is a CSS class name for the HTML form field. If omitted this will default to \'inputbox\'.\"},\"properties10\":{\"name\":\"published\",\"example\":\"1\",\"adjustable\":\"1\",\"description\":\"(optional) (1\\/0\\/2\\/-2) is whether the drop down will show only published (1), unpublished (0), archived (2) or trashed (-2) categories. It is possible to combine different publishing status by entering the list of the corresponding numbers separated by comma (e.g. \\\"0,2,-2\\\" will display only unpublished, archived and trashed categories in the drop-down).\"},\"properties11\":{\"name\":\"multiple\",\"example\":\"false\",\"adjustable\":\"1\",\"description\":\"(optional) is whether multiple items can be selected at the same time (true or false).\"},\"properties12\":{\"name\":\"showon\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) show this field on the bases of the value in another field.\"}}', 'provides a drop down list of categories for an extension.', '', 1, 6, '', ''),
+(2, '', 'The category form field type provides a drop down list of all published categories for a certain extension. If the parameter has a saved value this is selected when the page is first loaded. If not, the default value (if any) is selected. If the show_root', 'Category', '{\"properties0\":{\"name\":\"type\",\"example\":\"category\",\"mandatory\":\"1\",\"description\":\"(mandatory) must be category.\"},\"properties1\":{\"name\":\"name\",\"example\":\"mycategory\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"description\":\"(mandatory) is the unique name of the parameter.\"},\"properties2\":{\"name\":\"label\",\"example\":\"Select a category\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"translatable\":\"1\",\"description\":\"(mandatory) (translatable) is the descriptive title of the field.\"},\"properties3\":{\"name\":\"extension\",\"example\":\"com_content\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"description\":\"(mandatory) is the name of the extension for which the categories will be retrieved. For example, to list content categories, use the value \'com_content\'. You can add also target one view, use the value \'com_component.view\'.\"},\"properties4\":{\"name\":\"scope\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) is an alias for extension.\"},\"properties5\":{\"name\":\"required\",\"example\":\"true\",\"adjustable\":\"1\",\"description\":\"(optional) The field must be filled before submitting the form.\"},\"properties6\":{\"name\":\"show_root\",\"example\":\"true\",\"adjustable\":\"1\",\"description\":\"(optional) is whether a choice representing the root category will be shown. Remove completely if it is not to be shown.\"},\"properties7\":{\"name\":\"default\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) is the default category ID number.\"},\"properties8\":{\"name\":\"description\",\"example\":\"select one of the following categories\",\"adjustable\":\"1\",\"translatable\":\"1\",\"description\":\"(optional) (translatable) is text that will be shown as a tooltip when the user moves the mouse over the drop-down box.\"},\"properties9\":{\"name\":\"class\",\"example\":\"inputbox\",\"adjustable\":\"1\",\"description\":\"(optional) is a CSS class name for the HTML form field. If omitted this will default to \'inputbox\'.\"},\"properties10\":{\"name\":\"published\",\"example\":\"1\",\"adjustable\":\"1\",\"description\":\"(optional) (1\\/0\\/2\\/-2) is whether the drop down will show only published (1), unpublished (0), archived (2) or trashed (-2) categories. It is possible to combine different publishing status by entering the list of the corresponding numbers separated by comma (e.g. \\\"0,2,-2\\\" will display only unpublished, archived and trashed categories in the drop-down).\"},\"properties11\":{\"name\":\"multiple\",\"example\":\"false\",\"adjustable\":\"1\",\"description\":\"(optional) is whether multiple items can be selected at the same time (true or false).\"},\"properties12\":{\"name\":\"showon\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) show this field on the bases of the value in another field.\"}}', 'provides a drop down list of categories for an extension.', '', 1, 10, '', ''),
(3, '', 'The checkbox form field type provides a single checkbox. If the parameter has a saved value this is selected when the page is first loaded. If not, the default value (if any) is selected.', 'Checkbox', '{\"properties0\":{\"name\":\"type\",\"example\":\"checkbox\",\"mandatory\":\"1\",\"description\":\"(mandatory) must be checkbox\"},\"properties1\":{\"name\":\"name\",\"example\":\"show_title\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"description\":\"(mandatory) is the unique name of the parameter.\"},\"properties2\":{\"name\":\"label\",\"example\":\"Show title\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"translatable\":\"1\",\"description\":\"(mandatory) (translatable) is the descriptive title of the field.\"},\"properties3\":{\"name\":\"value\",\"example\":\"1\",\"adjustable\":\"1\",\"description\":\"(optional) is the value of the parameter if this checkbox is set (usually 1).\"},\"properties4\":{\"name\":\"default\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) is the default value (usually 0 or 1).\"},\"properties5\":{\"name\":\"required\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) The field must be filled before submitting the form.\"},\"properties6\":{\"name\":\"description\",\"example\":\"Show the title of the item\",\"adjustable\":\"1\",\"translatable\":\"1\",\"description\":\"(optional) (translatable) is text that will be shown as a tooltip when the user moves the mouse over the label.\"},\"properties7\":{\"name\":\"class\",\"example\":\"inputbox\",\"adjustable\":\"1\",\"description\":\"(optional) is a CSS class name for the HTML form field. If omitted this will default to \'inputbox\'.\"},\"properties8\":{\"name\":\"showon\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) show this field on the bases of the value in another field.\"},\"properties9\":{\"name\":\"onchange\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) HTML equivalent attribute (JavaScript use)\"}}', 'provides a single checkbox to be checked or unchecked', '', 1, 6, '', ''),
(4, '', 'The checkboxes form field type provides a set of checkboxes. Note: unlike most standard form field types, such as textfield or checkbox, this field is not an \"out of the box\" solution. It will create checkboxes for you, and submit their values in form of ', 'Checkboxes', '{\"properties0\":{\"name\":\"type\",\"example\":\"checkboxes\",\"mandatory\":\"1\",\"description\":\"(mandatory) must be checkboxs\"},\"properties1\":{\"name\":\"name\",\"example\":\"toppings\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"description\":\"(mandatory) is the unique name of the parameter.\"},\"properties2\":{\"name\":\"label\",\"example\":\"Select Toppings\",\"adjustable\":\"1\",\"translatable\":\"1\",\"description\":\"(optional) (translatable) is the descriptive title of the field.\"},\"properties3\":{\"name\":\"option\",\"example\":\"anch|Anchovies,chor|Chorizo,on|Onions,mush|Mushrooms\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"description\":\"(mandatory) set the options of this radio. Separate options with commas and use the pipe symbol to separate value from text.\"},\"properties4\":{\"name\":\"default\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) is the default value.\"},\"properties5\":{\"name\":\"description\",\"example\":\"Select the topping of your choice\",\"adjustable\":\"1\",\"translatable\":\"1\",\"description\":\"(optional) (translatable) is text that will be shown as a tooltip when the user moves the mouse over the label.\"},\"properties6\":{\"name\":\"required\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) The field must be filled before submitting the form.\"},\"properties7\":{\"name\":\"class\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) is a CSS class name for the HTML form field. If omitted this will default to \'inputbox\'.\"},\"properties8\":{\"name\":\"showon\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) show this field on the bases of the value in another field.\"}}', 'provides unlimited checkboxes that can be used for multi-select.', '', 1, 3, '', ''),
(5, '', 'Provides a color picker. Enter the color as #ff00ff or pick it from the palet.', 'Color', '{\"properties0\":{\"name\":\"type\",\"example\":\"color\",\"mandatory\":\"1\",\"description\":\"(mandatory) must be color.\"},\"properties1\":{\"name\":\"name\",\"example\":\"backgroundcolor\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"description\":\"(mandatory) is the unique name of the parameter.\"},\"properties2\":{\"name\":\"default\",\"example\":\"#FFFFFF\",\"adjustable\":\"1\",\"description\":\"(optional) provides a color when not set.\"},\"properties3\":{\"name\":\"label\",\"example\":\"Background\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"translatable\":\"1\",\"description\":\"(mandatory) (translatable) is the descriptive title of the field.\"},\"properties4\":{\"name\":\"description\",\"example\":\"Select the background color here.\",\"adjustable\":\"1\",\"translatable\":\"1\",\"description\":\"(optional) (translatable) tooltip for the form field.\"},\"properties5\":{\"name\":\"required\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) The field must be filled before submitting the form.\"},\"properties6\":{\"name\":\"showon\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) show this field on the bases of the value in another field.\"}}', 'provides a color picker when clicking the input box.', '', 1, 4, '', ''),
-(6, '', 'The list form field type provides a drop down list or a list box of other current component table entries. If the field has a saved value this is selected when the page is first loaded. If not, the default value (if any) is selected.', 'Custom', '{\"properties0\":{\"name\":\"type\",\"example\":\"subjects\",\"mandatory\":\"1\",\"description\":\"(mandatory) can be anything, just not the same as any other default Joomla field type.\"},\"properties1\":{\"name\":\"name\",\"example\":\"subject\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"description\":\"(mandatory) is the unique name of the field.\"},\"properties2\":{\"name\":\"label\",\"example\":\"Select a Subject\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"translatable\":\"1\",\"description\":\"(mandatory) (translatable) is the descriptive title of the field.\"},\"properties3\":{\"name\":\"description\",\"example\":\"\",\"adjustable\":\"1\",\"translatable\":\"1\",\"description\":\"(optional) (translatable) is text that will be shown as a tooltip when the user moves the mouse over the drop-down box.\"},\"properties4\":{\"name\":\"message\",\"example\":\"\",\"adjustable\":\"1\",\"translatable\":\"1\",\"description\":\"(optional) (translatable) is text that will be shown as error on validation.\"},\"properties5\":{\"name\":\"class\",\"example\":\"list_class\",\"adjustable\":\"1\",\"description\":\"(optional) is a CSS class name for the HTML form field. If omitted this will default to \'inputbox\'.\"},\"properties6\":{\"name\":\"multiple\",\"example\":\"false\",\"adjustable\":\"1\",\"description\":\"(optional) is whether multiple items can be selected at the same time (true or false).\"},\"properties7\":{\"name\":\"default\",\"example\":\"0\",\"adjustable\":\"1\",\"description\":\"(optional) (not translatable) is the default value.\"},\"properties8\":{\"name\":\"required\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) The field must be filled before submitting the form.\"},\"properties9\":{\"name\":\"validate\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) The validation method for the form field. This value will determine which method is used to validate the value for a field.\"},\"properties10\":{\"name\":\"readonly\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) The field cannot be changed and will automatically inherit the default value\"},\"properties11\":{\"name\":\"disabled\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) The field cannot be changed and will automatically inherit the default value - it will also not submit\"},\"properties12\":{\"name\":\"showon\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) show this field on the bases of the value in another field.\"},\"properties13\":{\"name\":\"onchange\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) HTML equivalent attribute (javascript use)\"},\"properties14\":{\"name\":\"extends\",\"example\":\"list\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"description\":\"The JFormField sub class that should be extended. The options are (\'list\',\'radio\',\'checkboxes\')\"},\"properties15\":{\"name\":\"button\",\"example\":\"true\",\"adjustable\":\"1\",\"description\":\"(optional) to add new button next to field in edit view\"},\"properties16\":{\"name\":\"table\",\"example\":\"#__###component###_subject\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"description\":\"(mandatory) The table being linked to. The ###TABLE### placeholder holds the table in the php.\"},\"properties17\":{\"name\":\"component\",\"example\":\"com_###component###\",\"mandatory\":\"1\",\"description\":\"(mandatory) The name of the component where this table is found. Must be com_users\"},\"properties18\":{\"name\":\"view\",\"example\":\"subject\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"description\":\"(mandatory) The single view name if the place this field is added.\"},\"properties19\":{\"name\":\"views\",\"example\":\"subjects\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"description\":\"(mandatory) The list view name if the place this field is added.\"},\"properties20\":{\"name\":\"value_field\",\"example\":\"name\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"description\":\"(mandatory) The name of the text field in table linked to. The ###TEXT### placeholder holds the value_field in the php.\"},\"properties21\":{\"name\":\"key_field\",\"example\":\"id\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"description\":\"(mandatory) The field from the linked table to save in this table as the unique key. The ###ID### placeholder holds the key_field in the php.\"},\"properties22\":{\"name\":\"prime_php\",\"example\":\"1\",\"adjustable\":\"1\",\"description\":\"This field makes sure that the PHP used here is used to build the field type, and other are custom fields with the same field type are ignored. So to avoid that they over write the PHP added here. You should only have one prime per\\/type. To disable remove the field or set to 0\"},\"properties23\":{\"name\":\"type_php_1\",\"example\":\"\\/\\/ Get the user object.\\r\\n\\t\\t$user = JFactory::getUser();\\r\\n\\t\\t\\/\\/ Get the databse object.\\r\\n\\t\\t$db = JFactory::getDBO();\\r\\n\\t\\t$query = $db->getQuery(true);\\r\\n\\t\\t$query->select($db->quoteName(array(\'a.###ID###\',\'a.###TEXT###\'),array(\'###ID###\',\'###CODE_TEXT###\')));\\r\\n\\t\\t$query->from($db->quoteName(\'###TABLE###\', \'a\'));\\r\\n\\t\\t$query->where($db->quoteName(\'a.published\') . \' = 1\');\\r\\n\\t\\t$query->order(\'a.###TEXT### ASC\');\\r\\n\\t\\t\\/\\/ Implement View Level Access (if set in table)\\r\\n\\t\\tif (!$user->authorise(\'core.options\', \'[[[com_component]]]\'))\\r\\n\\t\\t{\\r\\n\\t\\t\\t$columns = $db->getTableColumns(\'###TABLE###\');\\r\\n\\t\\t\\tif(isset($columns[\'access\']))\\r\\n\\t\\t\\t{\\r\\n\\t\\t\\t\\t$groups = implode(\',\', $user->getAuthorisedViewLevels());\\r\\n\\t\\t\\t\\t$query->where(\'a.access IN (\' . $groups . \')\');\\r\\n\\t\\t\\t}\\r\\n\\t\\t}\\r\\n\\t\\t$db->setQuery((string)$query);\\r\\n\\t\\t$items = $db->loadObjectList();\\r\\n\\t\\t$options = array();\\r\\n\\t\\tif ($items)\\r\\n\\t\\t{\\r\\n\\t\\t\\t$options[] = JHtml::_(\'select.option\', \'\', \'Select an option\');\\r\\n\\t\\t\\tforeach($items as $item)\\r\\n\\t\\t\\t{\\r\\n\\t\\t\\t\\t$options[] = JHtml::_(\'select.option\', $item->###ID###, $item->###CODE_TEXT###);\\r\\n\\t\\t\\t}\\r\\n\\t\\t}\\r\\n\\t\\treturn $options;\",\"adjustable\":\"1\",\"description\":\"The php for the getOptions method.\"}}', 'provides a drop down list of items entries.', '', 1, 22, '', ''),
+(6, '', 'The list form field type provides a drop down list or a list box of other current component table entries. If the field has a saved value this is selected when the page is first loaded. If not, the default value (if any) is selected.', 'Custom', '{\"properties0\":{\"name\":\"type\",\"example\":\"subjects\",\"mandatory\":\"1\",\"description\":\"(mandatory) can be anything, just not the same as any other default Joomla field type. You can also not use the \\\"_\\\" (underscore) or \\\"-\\\" (hyphen) in the type name, and no spaces.\"},\"properties1\":{\"name\":\"name\",\"example\":\"subject\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"description\":\"(mandatory) is the unique name of the field.\"},\"properties2\":{\"name\":\"label\",\"example\":\"Select a Subject\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"translatable\":\"1\",\"description\":\"(mandatory) (translatable) is the descriptive title of the field.\"},\"properties3\":{\"name\":\"description\",\"example\":\"\",\"adjustable\":\"1\",\"translatable\":\"1\",\"description\":\"(optional) (translatable) is text that will be shown as a tooltip when the user moves the mouse over the drop-down box.\"},\"properties4\":{\"name\":\"message\",\"example\":\"\",\"adjustable\":\"1\",\"translatable\":\"1\",\"description\":\"(optional) (translatable) is text that will be shown as error on validation.\"},\"properties5\":{\"name\":\"class\",\"example\":\"list_class\",\"adjustable\":\"1\",\"description\":\"(optional) is a CSS class name for the HTML form field. If omitted this will default to \'inputbox\'.\"},\"properties6\":{\"name\":\"multiple\",\"example\":\"false\",\"adjustable\":\"1\",\"description\":\"(optional) is whether multiple items can be selected at the same time (true or false).\"},\"properties7\":{\"name\":\"default\",\"example\":\"0\",\"adjustable\":\"1\",\"description\":\"(optional) (not translatable) is the default value.\"},\"properties8\":{\"name\":\"required\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) The field must be filled before submitting the form.\"},\"properties9\":{\"name\":\"validate\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) The validation method for the form field. This value will determine which method is used to validate the value for a field.\"},\"properties10\":{\"name\":\"readonly\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) The field cannot be changed and will automatically inherit the default value\"},\"properties11\":{\"name\":\"disabled\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) The field cannot be changed and will automatically inherit the default value - it will also not submit\"},\"properties12\":{\"name\":\"showon\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) show this field on the bases of the value in another field.\"},\"properties13\":{\"name\":\"onchange\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) HTML equivalent attribute (javascript use)\"},\"properties14\":{\"name\":\"extends\",\"example\":\"list\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"description\":\"The JFormField sub class that should be extended. The options are (\'list\',\'radio\',\'checkboxes\')\"},\"properties15\":{\"name\":\"button\",\"example\":\"true\",\"adjustable\":\"1\",\"description\":\"(optional) to add new button next to field in edit view\"},\"properties16\":{\"name\":\"table\",\"example\":\"#__###component###_subject\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"description\":\"(mandatory) The table being linked to. The ###TABLE### placeholder holds the table in the php.\"},\"properties17\":{\"name\":\"component\",\"example\":\"com_###component###\",\"mandatory\":\"1\",\"description\":\"(mandatory) The name of the component where this table is found. Must be com_users\"},\"properties18\":{\"name\":\"view\",\"example\":\"subject\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"description\":\"(mandatory) The single view name if the place this field is added.\"},\"properties19\":{\"name\":\"views\",\"example\":\"subjects\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"description\":\"(mandatory) The list view name if the place this field is added.\"},\"properties20\":{\"name\":\"value_field\",\"example\":\"name\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"description\":\"(mandatory) The name of the text field in table linked to. The ###TEXT### placeholder holds the value_field in the php.\"},\"properties21\":{\"name\":\"key_field\",\"example\":\"id\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"description\":\"(mandatory) The field from the linked table to save in this table as the unique key. The ###ID### placeholder holds the key_field in the php.\"},\"properties22\":{\"name\":\"prime_php\",\"example\":\"1\",\"adjustable\":\"1\",\"description\":\"This field makes sure that the PHP used here is used to build the field type, and other are custom fields with the same field type are ignored. So to avoid that they over write the PHP added here. You should only have one prime per\\/type. To disable remove the field or set to 0\"},\"properties23\":{\"name\":\"type_php_1\",\"example\":\"\\/\\/ Get the user object.\\r\\n\\t\\t$user = JFactory::getUser();\\r\\n\\t\\t\\/\\/ Get the databse object.\\r\\n\\t\\t$db = JFactory::getDBO();\\r\\n\\t\\t$query = $db->getQuery(true);\\r\\n\\t\\t$query->select($db->quoteName(array(\'a.###ID###\',\'a.###TEXT###\'),array(\'###ID###\',\'###CODE_TEXT###\')));\\r\\n\\t\\t$query->from($db->quoteName(\'###TABLE###\', \'a\'));\\r\\n\\t\\t$query->where($db->quoteName(\'a.published\') . \' = 1\');\\r\\n\\t\\t$query->order(\'a.###TEXT### ASC\');\\r\\n\\t\\t\\/\\/ Implement View Level Access (if set in table)\\r\\n\\t\\tif (!$user->authorise(\'core.options\', \'[[[com_component]]]\'))\\r\\n\\t\\t{\\r\\n\\t\\t\\t$columns = $db->getTableColumns(\'###TABLE###\');\\r\\n\\t\\t\\tif(isset($columns[\'access\']))\\r\\n\\t\\t\\t{\\r\\n\\t\\t\\t\\t$groups = implode(\',\', $user->getAuthorisedViewLevels());\\r\\n\\t\\t\\t\\t$query->where(\'a.access IN (\' . $groups . \')\');\\r\\n\\t\\t\\t}\\r\\n\\t\\t}\\r\\n\\t\\t$db->setQuery((string)$query);\\r\\n\\t\\t$items = $db->loadObjectList();\\r\\n\\t\\t$options = array();\\r\\n\\t\\tif ($items)\\r\\n\\t\\t{\\r\\n\\t\\t\\t$options[] = JHtml::_(\'select.option\', \'\', \'Select an option\');\\r\\n\\t\\t\\tforeach($items as $item)\\r\\n\\t\\t\\t{\\r\\n\\t\\t\\t\\t$options[] = JHtml::_(\'select.option\', $item->###ID###, $item->###CODE_TEXT###);\\r\\n\\t\\t\\t}\\r\\n\\t\\t}\\r\\n\\t\\treturn $options;\",\"adjustable\":\"1\",\"description\":\"The php for the getOptions method.\"}}', 'provides a drop down list of items entries.', '', 1, 24, '', ''),
(7, '', 'The a list of users that can be targeting one or more groups and excluded users that already belongs to an item in a view.', 'CustomUser', '{\"properties0\":{\"name\":\"type\",\"example\":\"staffusers\",\"mandatory\":\"1\",\"description\":\"(mandatory) can be anything, just not the same as any other default Joomla field type.\"},\"properties1\":{\"name\":\"name\",\"example\":\"staff\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"description\":\"(mandatory) is the unique name of the field.\"},\"properties2\":{\"name\":\"label\",\"example\":\"Staff\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"translatable\":\"1\",\"description\":\"(mandatory) (translatable) is the descriptive title of the field.\"},\"properties3\":{\"name\":\"description\",\"example\":\"\",\"adjustable\":\"1\",\"translatable\":\"1\",\"description\":\"(optional) (translatable) is text that will be shown as a tooltip when the user moves the mouse over the drop-down box.\"},\"properties4\":{\"name\":\"class\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) is a CSS class name for the HTML form field. If omitted this will default to \'inputbox\'.\"},\"properties5\":{\"name\":\"multiple\",\"example\":\"false\",\"adjustable\":\"1\",\"description\":\"(optional) is whether multiple items can be selected at the same time (true or false).\"},\"properties6\":{\"name\":\"required\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) The field must be filled before submitting the form.\"},\"properties7\":{\"name\":\"readonly\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) The field cannot be changed and will automatically inherit the default value\"},\"properties8\":{\"name\":\"disabled\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) The field cannot be changed and will automatically inherit the default value - it will also not submit\"},\"properties9\":{\"name\":\"default\",\"example\":\"\",\"adjustable\":\"1\",\"translatable\":\"1\",\"description\":\"\"},\"properties10\":{\"name\":\"hint\",\"example\":\"select a user\",\"adjustable\":\"1\",\"translatable\":\"1\",\"description\":\"\"},\"properties11\":{\"name\":\"showon\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) show this field on the bases of the value in another field.\"},\"properties12\":{\"name\":\"extends\",\"example\":\"user\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"description\":\"The JFormField sub class that should be extended. The options are (\'list\',\'radio\',\'checkboxes\')\"},\"properties13\":{\"name\":\"table\",\"example\":\"#__users\",\"mandatory\":\"1\",\"description\":\"(mandatory) The table being linked to. Must be #__users\"},\"properties14\":{\"name\":\"component\",\"example\":\"com_users\",\"mandatory\":\"1\",\"description\":\"(mandatory) The name of the component where this table is found. Must be com_users\"},\"properties15\":{\"name\":\"view\",\"example\":\"###view###\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"description\":\"(mandatory) The single view name if the place this field is added.\"},\"properties16\":{\"name\":\"views\",\"example\":\"###views###\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"description\":\"(mandatory) The list view name if the place this field is added.\"},\"properties17\":{\"name\":\"value_field\",\"example\":\"name\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"description\":\"(mandatory) The name of the text field in table linked to.\"},\"properties18\":{\"name\":\"key_field\",\"example\":\"id\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"description\":\"(mandatory) The field from the linked table to save in this table as the unique key.\"},\"properties19\":{\"name\":\"type_php_1\",\"example\":\"\\/\\/ set the groups array\",\"adjustable\":\"1\",\"description\":\"The php for the getGroups method.\"},\"properties20\":{\"name\":\"type_php_2\",\"example\":\"$groups = JComponentHelper::getParams(\'com_###component###\')->get(\'###type###\');\",\"adjustable\":\"1\",\"description\":\"The php for the getGroups method.\"},\"properties21\":{\"name\":\"type_php_3\",\"example\":\"return $groups;\",\"adjustable\":\"1\",\"description\":\"The php for the getGroups method.\"},\"properties22\":{\"name\":\"type_phpx_1\",\"example\":\"\\/\\/ To ensure that there is only one record per user\",\"adjustable\":\"1\",\"description\":\"The php for the getExcluded method.\"},\"properties23\":{\"name\":\"type_phpx_2\",\"example\":\"\\/\\/ Get a db connection.\",\"adjustable\":\"1\",\"description\":\"The php for the getExcluded method.\"},\"properties24\":{\"name\":\"type_phpx_3\",\"example\":\"$db = JFactory::getDbo();\",\"adjustable\":\"1\",\"description\":\"The php for the getExcluded method.\"},\"properties25\":{\"name\":\"type_phpx_4\",\"example\":\"\\/\\/ Create a new query object.\",\"adjustable\":\"1\",\"description\":\"The php for the getExcluded method.\"},\"properties26\":{\"name\":\"type_phpx_5\",\"example\":\"$query = $db->getQuery(true);\",\"adjustable\":\"1\",\"description\":\"The php for the getExcluded method.\"},\"properties27\":{\"name\":\"type_phpx_6\",\"example\":\"\\/\\/ Select all records from the #__###component###_###view### table from ###CODE### column\\\".\",\"adjustable\":\"1\",\"description\":\"The php for the getExcluded method.\"},\"properties28\":{\"name\":\"type_phpx_7\",\"example\":\"$query->select($db->quoteName(\'###CODE###\'));\",\"adjustable\":\"1\",\"description\":\"The php for the getExcluded method.\"},\"properties29\":{\"name\":\"type_phpx_8\",\"example\":\"$query->from($db->quoteName(\'#__###component###_###view###\'));\",\"adjustable\":\"1\",\"description\":\"The php for the getExcluded method.\"},\"properties30\":{\"name\":\"type_phpx_9\",\"example\":\"$db->setQuery($query);\",\"adjustable\":\"1\",\"description\":\"The php for the getExcluded method.\"},\"properties31\":{\"name\":\"type_phpx_10\",\"example\":\"$db->execute();\",\"adjustable\":\"1\",\"description\":\"The php for the getExcluded method.\"},\"properties32\":{\"name\":\"type_phpx_11\",\"example\":\"$found = $db->getNumRows();\",\"adjustable\":\"1\",\"description\":\"The php for the getExcluded method.\"},\"properties33\":{\"name\":\"type_phpx_12\",\"example\":\"if ($found)\",\"adjustable\":\"1\",\"description\":\"The php for the getExcluded method.\"},\"properties34\":{\"name\":\"type_phpx_13\",\"example\":\"{\",\"adjustable\":\"1\",\"description\":\"The php for the getExcluded method.\"},\"properties35\":{\"name\":\"type_phpx_14\",\"example\":\"\\\\t\\/\\/ return all users already used\",\"adjustable\":\"1\",\"description\":\"The php for the getExcluded method.\"},\"properties36\":{\"name\":\"type_phpx_15\",\"example\":\"\\\\treturn array_unique($db->loadColumn());\",\"adjustable\":\"1\",\"description\":\"The php for the getExcluded method.\"},\"properties37\":{\"name\":\"type_phpx_16\",\"example\":\"}\",\"adjustable\":\"1\",\"description\":\"The php for the getExcluded method.\"},\"properties38\":{\"name\":\"type_phpx_17\",\"example\":\"return null;\",\"adjustable\":\"1\",\"description\":\"The php for the getExcluded method.\"}}', 'Provides list of users.', '', 1, 4, '', ''),
(8, '', 'The Editor field type provides a WYSIWYG editor.', 'Editor', '{\"properties0\":{\"name\":\"type\",\"example\":\"editor\",\"mandatory\":\"1\",\"description\":\"(mandatory) must be editor.\"},\"properties1\":{\"name\":\"name\",\"example\":\"mytextblock\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"description\":\"(mandatory) is the unique name of the parameter.\"},\"properties2\":{\"name\":\"label\",\"example\":\"Test Field\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"translatable\":\"1\",\"description\":\"(mandatory) (translatable) is the descriptive title of the field.\"},\"properties3\":{\"name\":\"default\",\"example\":\"Some text\",\"adjustable\":\"1\",\"description\":\"(optional) (not translatable) is the default value.\"},\"properties4\":{\"name\":\"description\",\"example\":\"\",\"adjustable\":\"1\",\"translatable\":\"1\",\"description\":\"(optional) (translatable) is text that will be shown as a tooltip when the user moves the mouse over the label.\"},\"properties5\":{\"name\":\"message\",\"example\":\"\",\"adjustable\":\"1\",\"translatable\":\"1\",\"description\":\"(optional) (translatable) is text that will be shown as error on validation.\"},\"properties6\":{\"name\":\"width\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) defines the width (in pixels) of the wysiwyg editor and defaults to 100%.\"},\"properties7\":{\"name\":\"height\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) defines the height (in pixels) of the wysiwyg editor and defaults to 250px.\"},\"properties8\":{\"name\":\"cols\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) defines the width of the editor (in columns).\"},\"properties9\":{\"name\":\"rows\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) defines the height of the editor (in rows).\"},\"properties10\":{\"name\":\"buttons\",\"example\":\"no\",\"adjustable\":\"1\",\"description\":\"(optional) can be an array of plugin buttons to be excluded or set to false. The default editors-xtd are: article, image, pagebreak and readmore.\"},\"properties11\":{\"name\":\"syntax\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) can be used to set the code syntax matching for this field.\"},\"properties12\":{\"name\":\"hide\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) array of plugin buttons to be hidden. eg... set buttons=\\\"true\\\" hide=\\\"readmore,pagebreak\\\"\"},\"properties13\":{\"name\":\"editor\",\"example\":\"codemirror|none\",\"adjustable\":\"1\",\"description\":\"specifies the editor to be used and can include two options (editor=\\\"desired|alternative\\\")\"},\"properties14\":{\"name\":\"filter\",\"example\":\"safehtml\",\"adjustable\":\"1\",\"description\":\"(optional) allow the system to save certain html tags or raw data.\"},\"properties15\":{\"name\":\"required\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) The field must be filled before submitting the form.\"},\"properties16\":{\"name\":\"validate\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) The validation method for the form field. This value will determine which method is used to validate the value for a field.\"},\"properties17\":{\"name\":\"showon\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) show this field on the bases of the value in another field.\"}}', 'provides an editor area field.', '', 1, 10, '', ''),
(9, '', 'The hidden form field type provides a hidden field for saving a field whose value cannot be altered directly by a user in the Administrator (it can be altered in code or by editing the params.ini file). If the parameter has a saved value this is entered i', 'Hidden', '{\"properties0\":{\"name\":\"type\",\"example\":\"hidden\",\"mandatory\":\"1\",\"description\":\"(mandatory) must be hidden.\"},\"properties1\":{\"name\":\"name\",\"example\":\"mysecretvariable\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"description\":\"(mandatory) is the unique name of the field.\"},\"properties2\":{\"name\":\"default\",\"example\":\"1\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"description\":\"(mandatory) is the data which needs to be collected.\"},\"properties5\":{\"name\":\"filter\",\"example\":\"STRING\",\"adjustable\":\"1\",\"description\":\"(optional) allow the system to save certain html tags or raw data.\"},\"properties4\":{\"name\":\"validate\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) The validation method for the form field. This value will determine which method is used to validate the value for a field.\"}}', 'provides a hidden field for saving a form field whose value cannot be altered directly by a user.', '', 1, 2, '', ''),
@@ -1692,7 +1698,7 @@ INSERT INTO `#__componentbuilder_fieldtype` (`id`, `catid`, `description`, `name
(34, '', 'Remember all views already have [accesslevel] added by default, only add this if you need more custom access selection! Provides a dropdown list of accesslevel options with the current option selected.', 'Accesslevel', '{\"properties0\":{\"name\":\"type\",\"example\":\"accesslevel\",\"mandatory\":\"1\",\"description\":\"(mandatory) must be accesslevel\"},\"properties1\":{\"name\":\"name\",\"example\":\"accesstwo\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"description\":\"(mandatory) is the unique name of the field. This must match the name of the query results column that contains the values that will be shown to the user in the drop-down list, unless a different name is specified in the value_field attribute. \"},\"properties2\":{\"name\":\"label\",\"example\":\"Access Two\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"translatable\":\"1\",\"description\":\"(mandatory) (translatable) is the descriptive title of the field.\"},\"properties3\":{\"name\":\"description\",\"example\":\"Select an access level to this concept.\",\"adjustable\":\"1\",\"translatable\":\"1\",\"description\":\"(optional) (translatable) is text that will be shown as a tooltip when the user moves the mouse over the drop-down box.\"},\"properties4\":{\"name\":\"class\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) is a CSS class name for the HTML form field.\"},\"properties5\":{\"name\":\"required\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) is the field required true if yes.\"},\"properties6\":{\"name\":\"multiple\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) If set to multiple then allows more than one usergroup to be selected.\"},\"properties7\":{\"name\":\"showon\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) show this field on the bases of the value in another field.\"}}', 'List of accesslevels', '', 1, 3, '', 5),
(35, '', 'Provides a form with rows of fields that you specify. As many options can be added as desired. Note this form field has a jQuery based javascript file as a dependency.', 'Subform', '{\"properties0\":{\"name\":\"type\",\"example\":\"subform\",\"description\":\"(mandatory) must be subform.\"},\"properties1\":{\"name\":\"name\",\"example\":\"options\",\"adjustable\":\"1\",\"description\":\"(mandatory) is the unique name of the parameter\"},\"properties2\":{\"name\":\"label\",\"example\":\"The Option List\",\"adjustable\":\"1\",\"translatable\":\"1\",\"description\":\"(mandatory) (translatable) is the descriptive title of the field.\"},\"properties3\":{\"name\":\"layout\",\"example\":\"joomla.form.field.subform.repeatable-table\",\"adjustable\":\"1\",\"description\":\"(mandatory) The layout for the repeatable table.\"},\"properties4\":{\"name\":\"component\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) To change the component where it should search for layout\"},\"properties5\":{\"name\":\"client\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) Function to initialise the application client Frontend: site<\\/code> or 0<\\/code> Backend: admin<\\/code> or 1<\\/code>\"},\"properties6\":{\"name\":\"multiple\",\"example\":\"true\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"description\":\"(mandatory) The rows to be multiple.\"},\"properties7\":{\"name\":\"buttons\",\"example\":\"add,remove,move\",\"adjustable\":\"1\",\"description\":\"(optional) Which buttons to show if multiple mode is true. Options: add,remove,move<\\/code>\"},\"properties8\":{\"name\":\"fields\",\"example\":\"1,2,3\",\"adjustable\":\"1\",\"description\":\"(mandatory) The fields to add to the modal. All fields must first be created in component builder as a field before you can add them here, since you must use the id of the field. Separate the field ids with commas. Do not add custom fields that are not also used in this component.\"},\"properties9\":{\"name\":\"formsource\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) you can add a path to a xml file containing the fields.\"},\"properties10\":{\"name\":\"description\",\"example\":\"\",\"adjustable\":\"1\",\"translatable\":\"1\",\"description\":\"(optional) (translatable) description text for the form field. Displays at the top of the modal with the name as well as in the usual position in the form\"},\"properties11\":{\"name\":\"default\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) The default value for the form field if the field is left empty. Note this has to be a json string compatible with the contents of the form field.\"},\"properties12\":{\"name\":\"icon\",\"example\":\"list\",\"adjustable\":\"1\",\"description\":\"(optional) The icon to show on the select button (is prefixed with \\\"icon-\\\").\"},\"properties13\":{\"name\":\"max\",\"example\":\"50\",\"adjustable\":\"1\",\"description\":\"(optional) The maximum number of rows of fields allowed (by default 999 to be effectively infinite)\"},\"properties14\":{\"name\":\"min\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) The minimum number of rows of fields required\"},\"properties15\":{\"name\":\"filter\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) Use only if you would like to save raw data, since the default is best.\"},\"properties16\":{\"name\":\"showon\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) show this field on the bases of the value in another field.\"}}', 'Allows form fields which can have as many options as the user desires.', '', 1, 13, '', 6),
(36, '', 'Provides an input field for an email address.', 'Email', '{\"properties0\":{\"name\":\"type\",\"example\":\"email\",\"mandatory\":\"1\",\"description\":\"(mandatory) must be email.\"},\"properties1\":{\"name\":\"name\",\"example\":\"email\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"description\":\"(mandatory) is the unique name of the field.\"},\"properties2\":{\"name\":\"label\",\"example\":\"Email Address\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"translatable\":\"1\",\"description\":\"(mandatory) (translatable) is the descriptive title of the field.\"},\"properties3\":{\"name\":\"size\",\"example\":\"10\",\"adjustable\":\"1\",\"description\":\"(optional) is the width of the text box in characters. If omitted the width is determined by the browser. The value of size does not limit the number of characters that may be entered.\"},\"properties4\":{\"name\":\"maxlength\",\"example\":\"50\",\"adjustable\":\"1\",\"description\":\"(optional) limits the number of characters that may be entered.\"},\"properties5\":{\"name\":\"default\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) (not translatable) is the default value.\"},\"properties6\":{\"name\":\"description\",\"example\":\"Enter some description\",\"adjustable\":\"1\",\"translatable\":\"1\",\"description\":\"(optional) (translatable) is text that will be shown as a tooltip when the user moves the mouse over the drop-down box.\"},\"properties7\":{\"name\":\"class\",\"example\":\"inputbox\",\"adjustable\":\"1\",\"description\":\"(optional) is a CSS class name for the HTML form field. If omitted this will default to \'text_area\'.\"},\"properties8\":{\"name\":\"readonly\",\"example\":\"false\",\"adjustable\":\"1\",\"description\":\"(optional) The field cannot be changed and will automatically inherit the default value\"},\"properties9\":{\"name\":\"disabled\",\"example\":\"false\",\"adjustable\":\"1\",\"description\":\"(optional) The field cannot be changed and will automatically inherit the default value - it will also not submit\"},\"properties10\":{\"name\":\"required\",\"example\":\"false\",\"adjustable\":\"1\",\"description\":\"(optional) The field must be filled before submitting the form.\"},\"properties11\":{\"name\":\"filter\",\"example\":\"STRING\",\"adjustable\":\"1\",\"description\":\"(optional) allow the system to save certain html tags or raw data.\"},\"properties12\":{\"name\":\"validate\",\"example\":\"email\",\"adjustable\":\"1\",\"description\":\"(optional) The validation method for the form field. This value will determine which method is used to validate the value for a field.\"},\"properties13\":{\"name\":\"unique\",\"example\":\"false\",\"adjustable\":\"1\",\"description\":\"(optional) Used in validation, to check if we should test for uniqueness, to insure that this email does not already belong to another user. Check line 99 in \\/libraries\\/src\\/Form\\/Rule\\/EmailRule.php\"},\"properties14\":{\"name\":\"field\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) used in validation of \\\"equals\\\" to link the field to match.\"},\"properties15\":{\"name\":\"message\",\"example\":\"Error! Please add some text here.\",\"adjustable\":\"1\",\"translatable\":\"1\",\"description\":\"(optional) The error message that will be displayed instead of the default message.\"},\"properties16\":{\"name\":\"hint\",\"example\":\"your@email.com\",\"adjustable\":\"1\",\"translatable\":\"1\",\"description\":\"(optional) The placeholder to display inside the text box.\"},\"properties17\":{\"name\":\"autocomplete\",\"example\":\"on\",\"adjustable\":\"1\",\"description\":\"(optional) The autocomplete state for the form field. If \'off\' element will not be automatically completed by browser.\"},\"properties18\":{\"name\":\"showon\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) Allows you to hide the field based on the value(s) of another field; for Joomla 3.2.4+\"},\"properties19\":{\"name\":\"onchange\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) HTML equivalent attribute (javascript use)\"}}', 'Email form field type', '', 1, 6, '', 7),
-(37, '', 'Provides a dropdown list of plugin options from the folder.', 'Plugins', '{\"properties0\":{\"name\":\"type\",\"example\":\"plugins\",\"mandatory\":\"1\",\"description\":\"(mandatory) must be editors.\"},\"properties1\":{\"name\":\"name\",\"example\":\"editor\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"description\":\"(mandatory) is the unique name of the parameter.\"},\"properties2\":{\"name\":\"label\",\"example\":\"Select an editor\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"translatable\":\"1\",\"description\":\"(mandatory) (translatable) is the descriptive title of the field.\"},\"properties3\":{\"name\":\"default\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) (not translatable) is the default value.\"},\"properties4\":{\"name\":\"description\",\"example\":\"\",\"adjustable\":\"1\",\"translatable\":\"1\",\"description\":\"(optional) (translatable) is text that will be shown as a tooltip when the user moves the mouse over the label.\"},\"properties5\":{\"name\":\"folder\",\"example\":\"editors\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"description\":\"(mandatory) editors or captcha.\"},\"properties6\":{\"name\":\"filter\",\"example\":\"cmd\",\"adjustable\":\"1\",\"description\":\"(optional) allow the system to save certain html tags or raw data.\"},\"properties7\":{\"name\":\"showon\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) show this field on the bases of the value in another field.\"}}', 'Provides a dropdown list of plugin options from the folder.', '', 1, 6, '', 8),
+(37, '', 'Provides a dropdown list of plugin options from the folder.', 'Plugins', '{\"properties0\":{\"name\":\"type\",\"example\":\"plugins\",\"mandatory\":\"1\",\"description\":\"(mandatory) must be editors.\"},\"properties1\":{\"name\":\"name\",\"example\":\"editor\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"description\":\"(mandatory) is the unique name of the parameter.\"},\"properties2\":{\"name\":\"label\",\"example\":\"Select an editor\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"translatable\":\"1\",\"description\":\"(mandatory) (translatable) is the descriptive title of the field.\"},\"properties3\":{\"name\":\"default\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) (not translatable) is the default value.\"},\"properties4\":{\"name\":\"description\",\"example\":\"\",\"adjustable\":\"1\",\"translatable\":\"1\",\"description\":\"(optional) (translatable) is text that will be shown as a tooltip when the user moves the mouse over the label.\"},\"properties8\":{\"name\":\"multiple\",\"example\":\"false\",\"adjustable\":\"1\",\"description\":\"(optional) is whether multiple items can be selected at the same time (true or false).\"},\"properties5\":{\"name\":\"folder\",\"example\":\"editors\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"description\":\"(mandatory) editors or captcha.\"},\"properties6\":{\"name\":\"filter\",\"example\":\"cmd\",\"adjustable\":\"1\",\"description\":\"(optional) allow the system to save certain html tags or raw data.\"},\"properties7\":{\"name\":\"showon\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) show this field on the bases of the value in another field.\"}}', 'Provides a dropdown list of plugin options from the folder.', '', 1, 7, '', 8),
(38, '', 'Provides the use of a captcha plugin.', 'Captcha', '{\"properties0\":{\"name\":\"type\",\"example\":\"captcha\",\"mandatory\":\"1\",\"description\":\"(mandatory) must be captcha.\"},\"properties3\":{\"name\":\"name\",\"example\":\"captcha\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"description\":\"(mandatory) is the unique name of the field.\"},\"properties2\":{\"name\":\"validate\",\"example\":\"captcha\",\"mandatory\":\"1\",\"description\":\"(mandatory) must be captcha.\"},\"properties1\":{\"name\":\"label\",\"example\":\"Captcha\",\"mandatory\":\"1\",\"translatable\":\"1\",\"description\":\"(mandatory) (translatable) is the descriptive title of the field.\"},\"properties4\":{\"name\":\"description\",\"example\":\"We do not like spam, please show us you are human\",\"translatable\":\"1\",\"description\":\"(optional) (translatable) is text that will be shown as a tooltip when the user moves the mouse over the drop-down box.\"},\"properties5\":{\"name\":\"namespace\",\"example\":\"componentbuilder\",\"description\":\"(optional) the component name seems to work\"}}', 'Captcha robot check.', '', 1, 2, '', 9);
--
diff --git a/admin/sql/updates/mysql/2.9.18.sql b/admin/sql/updates/mysql/2.9.18.sql
new file mode 100644
index 000000000..d3fdeaec3
--- /dev/null
+++ b/admin/sql/updates/mysql/2.9.18.sql
@@ -0,0 +1,3 @@
+ALTER TABLE `#__componentbuilder_admin_view` ADD `add_php_before_cancel` TINYINT(1) NOT NULL DEFAULT 0 AFTER `add_php_batchmove`;
+
+ALTER TABLE `#__componentbuilder_admin_view` ADD `php_before_cancel` MEDIUMTEXT NOT NULL AFTER `php_batchmove`;
diff --git a/admin/sql/updates/mysql/2.9.19.sql b/admin/sql/updates/mysql/2.9.19.sql
new file mode 100644
index 000000000..3fd839cc2
--- /dev/null
+++ b/admin/sql/updates/mysql/2.9.19.sql
@@ -0,0 +1,3 @@
+ALTER TABLE `#__componentbuilder_admin_view` ADD `add_php_after_cancel` TINYINT(1) NOT NULL DEFAULT 0 AFTER `add_javascript_views_footer`;
+
+ALTER TABLE `#__componentbuilder_admin_view` ADD `php_after_cancel` MEDIUMTEXT NOT NULL AFTER `name_single`;
diff --git a/admin/views/admin_custom_tabs/tmpl/edit.php b/admin/views/admin_custom_tabs/tmpl/edit.php
index f60c56f96..1c79ba18f 100644
--- a/admin/views/admin_custom_tabs/tmpl/edit.php
+++ b/admin/views/admin_custom_tabs/tmpl/edit.php
@@ -101,7 +101,6 @@ $componentParams = $this->params; // will be removed just use $this->params inst
-