Fix option to add field paths or rule paths to both module or plugin external forms.

This commit is contained in:
Llewellyn van der Merwe 2022-02-04 19:21:10 +02:00
parent 2ce36117d4
commit 8219d5ed45
Signed by untrusted user: Llewellyn
GPG Key ID: EFC0C720A240551C
8 changed files with 292 additions and 237 deletions

View File

@ -147,7 +147,7 @@ TODO
+ *Version*: 2.12.15 + *Version*: 2.12.15
+ *Copyright*: Copyright (C) 2015 Vast Development Method. All rights reserved. + *Copyright*: Copyright (C) 2015 Vast Development Method. All rights reserved.
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt + *License*: GNU General Public License version 2 or later; see LICENSE.txt
+ *Line count*: **286249** + *Line count*: **286257**
+ *Field count*: **1580** + *Field count*: **1580**
+ *File count*: **1829** + *File count*: **1829**
+ *Folder count*: **256** + *Folder count*: **256**

View File

@ -147,7 +147,7 @@ TODO
+ *Version*: 2.12.15 + *Version*: 2.12.15
+ *Copyright*: Copyright (C) 2015 Vast Development Method. All rights reserved. + *Copyright*: Copyright (C) 2015 Vast Development Method. All rights reserved.
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt + *License*: GNU General Public License version 2 or later; see LICENSE.txt
+ *Line count*: **286249** + *Line count*: **286257**
+ *Field count*: **1580** + *Field count*: **1580**
+ *File count*: **1829** + *File count*: **1829**
+ *Folder count*: **256** + *Folder count*: **256**

View File

@ -9473,7 +9473,7 @@ class Get
{ {
if (ComponentbuilderHelper::checkString($add_rule_path['path'])) if (ComponentbuilderHelper::checkString($add_rule_path['path']))
{ {
$module->add_rule_path[$unique][] = $add_rule_path['path']; $module->add_rule_path[$unique] = $add_rule_path['path'];
} }
} }
} }
@ -9485,7 +9485,7 @@ class Get
{ {
if (ComponentbuilderHelper::checkString($add_field_path['path'])) if (ComponentbuilderHelper::checkString($add_field_path['path']))
{ {
$module->add_field_path[$unique][] = $add_field_path['path']; $module->add_field_path[$unique] = $add_field_path['path'];
} }
} }
} }
@ -10416,7 +10416,7 @@ class Get
{ {
if (ComponentbuilderHelper::checkString($add_rule_path['path'])) if (ComponentbuilderHelper::checkString($add_rule_path['path']))
{ {
$plugin->add_rule_path[$unique][] = $add_rule_path['path']; $plugin->add_rule_path[$unique] = $add_rule_path['path'];
} }
} }
} }
@ -10428,7 +10428,7 @@ class Get
{ {
if (ComponentbuilderHelper::checkString($add_field_path['path'])) if (ComponentbuilderHelper::checkString($add_field_path['path']))
{ {
$plugin->add_field_path[$unique][] = $add_field_path['path']; $plugin->add_field_path[$unique] = $add_field_path['path'];
} }
} }
} }

View File

@ -946,44 +946,78 @@ class Structure extends Get
{ {
// default to the field set name // default to the field set name
$label = $fieldset; $label = $fieldset;
if (isset( if (isset($module->fieldsets_label[$file . $field_name . $fieldset]))
$module->fieldsets_label[$file
. $field_name . $fieldset]
))
{ {
$label = $module->fieldsets_label[$file $label = $module->fieldsets_label[$file . $field_name . $fieldset];
. $field_name . $fieldset];
} }
// add path to module rules and custom fields // add path to module rules and custom fields
if (isset( if (isset($module->fieldsets_paths[$file . $field_name . $fieldset])
$module->fieldsets_paths[$file && ($module->fieldsets_paths[$file . $field_name . $fieldset] == 2
. $field_name . $fieldset] || $module->fieldsets_paths[$file . $field_name . $fieldset] == 3))
)
&& $module->fieldsets_paths[$file
. $field_name . $fieldset] == 2)
{ {
if ($module->target == 2)
{
if (!isset($module->add_rule_path[$file . $field_name . $fieldset]))
{
$module->add_rule_path[$file . $field_name . $fieldset] =
'/administrator/modules/'
. $module->file_name . '/rules';
}
if (!isset($module->add_field_path[$file . $field_name . $fieldset]))
{
$module->add_field_path[$file . $field_name . $fieldset] =
'/administrator/modules/'
. $module->file_name . '/fields';
}
}
else
{
if (!isset($module->add_rule_path[$file . $field_name . $fieldset]))
{
$module->add_rule_path[$file . $field_name . $fieldset] =
'/modules/' . $module->file_name
. '/rules';
}
if (!isset($module->add_field_path[$file . $field_name . $fieldset]))
{
$module->add_field_path[$file . $field_name . $fieldset] =
'/modules/' . $module->file_name
. '/fields';
}
}
}
// add path to module rules and custom fields
if (isset($module->add_rule_path[$file . $field_name . $fieldset])
|| isset($module->add_field_path[$file . $field_name . $fieldset]))
{
$xml .= PHP_EOL . $this->_t(1) . '<!--' $xml .= PHP_EOL . $this->_t(1) . '<!--'
. $this->setLine(__LINE__) . $this->setLine(__LINE__) . ' default paths of '
. ' default paths of ' . $fieldset . $fieldset . ' fieldset points to the module -->';
. ' fieldset points to the module -->';
$xml .= PHP_EOL . $this->_t(1) $xml .= PHP_EOL . $this->_t(1) . '<fieldset name="'
. '<fieldset name="' . $fieldset . $fieldset . '" label="' . $label . '"';
. '" label="' . $label . '"';
$xml .= PHP_EOL . $this->_t(2) if (isset($module->add_rule_path[$file . $field_name . $fieldset]))
. 'addrulepath="/modules/' {
. strtolower($module->code_name) $xml .= PHP_EOL . $this->_t(2)
. '/rules"'; . 'addrulepath="' . $module->add_rule_path[$file . $field_name . $fieldset] . '"';
$xml .= PHP_EOL . $this->_t(2) }
. 'addfieldpath="/modules/'
. strtolower($module->code_name) if (isset($module->add_field_path[$file . $field_name . $fieldset]))
. '/fields"'; {
$xml .= PHP_EOL . $this->_t(2)
. 'addfieldpath="' . $module->add_field_path[$file . $field_name . $fieldset] . '"';
}
$xml .= PHP_EOL . $this->_t(1) . '>'; $xml .= PHP_EOL . $this->_t(1) . '>';
} }
else else
{ {
$xml .= PHP_EOL . $this->_t(1) $xml .= PHP_EOL . $this->_t(1) . '<fieldset name="'
. '<fieldset name="' . $fieldset . $fieldset . '" label="' . $label . '">';
. '" label="' . $label . '">';
} }
// check if we have an inner field set // check if we have an inner field set
if (ComponentbuilderHelper::checkString( if (ComponentbuilderHelper::checkString(
@ -1321,46 +1355,60 @@ class Structure extends Get
{ {
// default to the field set name // default to the field set name
$label = $fieldset; $label = $fieldset;
if (isset( if (isset($plugin->fieldsets_label[$file . $field_name . $fieldset]))
$plugin->fieldsets_label[$file
. $field_name . $fieldset]
))
{ {
$label = $plugin->fieldsets_label[$file $label = $plugin->fieldsets_label[$file . $field_name . $fieldset];
. $field_name . $fieldset];
} }
// add path to plugin rules and custom fields // add path to plugin rules and custom fields
if (isset( if (isset($plugin->fieldsets_paths[$file . $field_name . $fieldset])
$plugin->fieldsets_paths[$file && ($plugin->fieldsets_paths[$file . $field_name . $fieldset] == 2
. $field_name . $fieldset] || $plugin->fieldsets_paths[$file . $field_name . $fieldset] == 3))
) {
&& $plugin->fieldsets_paths[$file if (!isset($plugin->add_rule_path[$file . $field_name . $fieldset]))
. $field_name . $fieldset] == 2) {
$plugin->add_rule_path[$file . $field_name . $fieldset] =
'/plugins/' . strtolower($plugin->group
) . '/' . strtolower($plugin->code_name)
. '/rules';
}
if (!isset($plugin->add_field_path[$file . $field_name . $fieldset]))
{
$plugin->add_field_path[$file . $field_name . $fieldset] =
'/plugins/' . strtolower($plugin->group
) . '/' . strtolower($plugin->code_name)
. '/fields';
}
}
// add path to plugin rules and custom fields
if (isset($plugin->add_rule_path[$file . $field_name . $fieldset])
|| isset($plugin->add_field_path[$file . $field_name . $fieldset]))
{ {
$xml .= PHP_EOL . $this->_t(1) . '<!--' $xml .= PHP_EOL . $this->_t(1) . '<!--'
. $this->setLine(__LINE__) . $this->setLine(__LINE__) . ' default paths of '
. ' default paths of ' . $fieldset . $fieldset . ' fieldset points to the plugin -->';
. ' fieldset points to the plugin -->';
$xml .= PHP_EOL . $this->_t(1) $xml .= PHP_EOL . $this->_t(1) . '<fieldset name="'
. '<fieldset name="' . $fieldset . $fieldset . '" label="' . $label . '"';
. '" label="' . $label . '"';
$xml .= PHP_EOL . $this->_t(2) if (isset($plugin->add_rule_path[$file . $field_name . $fieldset]))
. 'addrulepath="/plugins/' {
. strtolower($plugin->group) . '/' $xml .= PHP_EOL . $this->_t(2)
. strtolower($plugin->code_name) . 'addrulepath="' . $plugin->add_rule_path[$file . $field_name . $fieldset] . '"';
. '/rules"'; }
$xml .= PHP_EOL . $this->_t(2)
. 'addfieldpath="/plugins/' if (isset($plugin->add_field_path[$file . $field_name . $fieldset]))
. strtolower($plugin->group) . '/' {
. strtolower($plugin->code_name) $xml .= PHP_EOL . $this->_t(2)
. '/fields"'; . 'addfieldpath="' . $plugin->add_field_path[$file . $field_name . $fieldset] . '"';
}
$xml .= PHP_EOL . $this->_t(1) . '>'; $xml .= PHP_EOL . $this->_t(1) . '>';
} }
else else
{ {
$xml .= PHP_EOL . $this->_t(1) $xml .= PHP_EOL . $this->_t(1) . '<fieldset name="'
. '<fieldset name="' . $fieldset . $fieldset . '" label="' . $label . '">';
. '" label="' . $label . '">';
} }
// check if we have an inner field set // check if we have an inner field set
if (ComponentbuilderHelper::checkString( if (ComponentbuilderHelper::checkString(

View File

@ -28560,37 +28560,46 @@ function vdm_dkim() {
{ {
// default to the field set name // default to the field set name
$label = $fieldset; $label = $fieldset;
if (isset( if (isset($module->fieldsets_label[$field_name . $fieldset]))
$module->fieldsets_label[$field_name . $fieldset]
))
{ {
$label = $module->fieldsets_label[$field_name $label = $module->fieldsets_label[$field_name . $fieldset];
. $fieldset];
} }
// add path to module rules and custom fields // add path to module rules and custom fields
if (isset($module->fieldsets_paths[$field_name . $fieldset]) if (isset($module->fieldsets_paths[$field_name . $fieldset])
&& $module->fieldsets_paths[$field_name . $fieldset] && ($module->fieldsets_paths[$field_name . $fieldset] == 2
== 2) || $module->fieldsets_paths[$field_name . $fieldset] == 3))
{ {
if ($module->target == 2) if ($module->target == 2)
{ {
$module->add_rule_path[$field_name . $fieldset][] = if (!isset($module->add_rule_path[$field_name . $fieldset]))
'/administrator/modules/' {
. $module->file_name . '/rules'; $module->add_rule_path[$field_name . $fieldset] =
'/administrator/modules/'
. $module->file_name . '/rules';
}
$module->add_field_path[$field_name . $fieldset][] = if (!isset($module->add_field_path[$field_name . $fieldset]))
'/administrator/modules/' {
. $module->file_name . '/fields'; $module->add_field_path[$field_name . $fieldset] =
'/administrator/modules/'
. $module->file_name . '/fields';
}
} }
else else
{ {
$module->add_rule_path[$field_name . $fieldset][] = if (!isset($module->add_rule_path[$field_name . $fieldset]))
'/modules/' . $module->file_name {
. '/rules'; $module->add_rule_path[$field_name . $fieldset] =
'/modules/' . $module->file_name
. '/rules';
}
$module->add_field_path[$field_name . $fieldset][] = if (!isset($module->add_field_path[$field_name . $fieldset]))
'/modules/' . $module->file_name {
. '/fields'; $module->add_field_path[$field_name . $fieldset] =
'/modules/' . $module->file_name
. '/fields';
}
} }
} }
// add path to module rules and custom fields // add path to module rules and custom fields
@ -28607,20 +28616,14 @@ function vdm_dkim() {
if (isset($module->add_rule_path[$field_name . $fieldset])) if (isset($module->add_rule_path[$field_name . $fieldset]))
{ {
foreach ($module->add_rule_path[$field_name . $fieldset] as $path) $xml .= PHP_EOL . $this->_t(2)
{ . 'addrulepath="' . $module->add_rule_path[$field_name . $fieldset] . '"';
$xml .= PHP_EOL . $this->_t(2)
. 'addrulepath="' . $path . '"';
}
} }
if (isset($module->add_field_path[$field_name . $fieldset])) if (isset($module->add_field_path[$field_name . $fieldset]))
{ {
foreach ($module->add_field_path[$field_name . $fieldset] as $path) $xml .= PHP_EOL . $this->_t(2)
{ . 'addfieldpath="' . $module->add_field_path[$field_name . $fieldset] . '"';
$xml .= PHP_EOL . $this->_t(2)
. 'addfieldpath="' . $path . '"';
}
} }
$xml .= PHP_EOL . $this->_t(1) . '>'; $xml .= PHP_EOL . $this->_t(1) . '>';
@ -28950,28 +28953,30 @@ function vdm_dkim() {
{ {
// default to the field set name // default to the field set name
$label = $fieldset; $label = $fieldset;
if (isset( if (isset($plugin->fieldsets_label[$field_name . $fieldset]))
$plugin->fieldsets_label[$field_name . $fieldset]
))
{ {
$label = $plugin->fieldsets_label[$field_name $label = $plugin->fieldsets_label[$field_name . $fieldset];
. $fieldset];
} }
// add path to plugin rules and custom fields // add path to plugin rules and custom fields
if (isset($plugin->fieldsets_paths[$field_name . $fieldset]) if (isset($plugin->fieldsets_paths[$field_name . $fieldset])
&& $plugin->fieldsets_paths[$field_name . $fieldset] && ($plugin->fieldsets_paths[$field_name . $fieldset] == 2
== 2) || $plugin->fieldsets_paths[$field_name . $fieldset] == 3))
{ {
$plugin->add_rule_path[$field_name . $fieldset][] = if (!isset($plugin->add_rule_path[$field_name . $fieldset]))
'/plugins/' . strtolower($plugin->group {
) . '/' . strtolower($plugin->code_name) $plugin->add_rule_path[$field_name . $fieldset] =
. '/rules'; '/plugins/' . strtolower($plugin->group
) . '/' . strtolower($plugin->code_name)
. '/rules';
}
$plugin->add_field_path[$field_name . $fieldset][] = if (!isset($plugin->add_field_path[$field_name . $fieldset]))
'/plugins/' . strtolower($plugin->group {
) . '/' . strtolower($plugin->code_name) $plugin->add_field_path[$field_name . $fieldset] =
. '/fields'; '/plugins/' . strtolower($plugin->group
) . '/' . strtolower($plugin->code_name)
. '/fields';
}
} }
// add path to plugin rules and custom fields // add path to plugin rules and custom fields
if (isset($plugin->add_rule_path[$field_name . $fieldset]) if (isset($plugin->add_rule_path[$field_name . $fieldset])
@ -28986,20 +28991,14 @@ function vdm_dkim() {
if (isset($plugin->add_rule_path[$field_name . $fieldset])) if (isset($plugin->add_rule_path[$field_name . $fieldset]))
{ {
foreach ($plugin->add_rule_path[$field_name . $fieldset] as $path) $xml .= PHP_EOL . $this->_t(2)
{ . 'addrulepath="' . $plugin->add_rule_path[$field_name . $fieldset] . '"';
$xml .= PHP_EOL . $this->_t(2)
. 'addrulepath="' . $path . '"';
}
} }
if (isset($plugin->add_field_path[$field_name . $fieldset])) if (isset($plugin->add_field_path[$field_name . $fieldset]))
{ {
foreach ($plugin->add_field_path[$field_name . $fieldset] as $path) $xml .= PHP_EOL . $this->_t(2)
{ . 'addfieldpath="' . $plugin->add_field_path[$field_name . $fieldset] . '"';
$xml .= PHP_EOL . $this->_t(2)
. 'addfieldpath="' . $path . '"';
}
} }
$xml .= PHP_EOL . $this->_t(1) . '>'; $xml .= PHP_EOL . $this->_t(1) . '>';

View File

@ -6237,11 +6237,11 @@ COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_N_ITEMS_UNFEATURED_1="%s Joomla Modu
COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_N_ITEMS_UNPUBLISHED="%s Joomla Modules Updates unpublished." COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_N_ITEMS_UNPUBLISHED="%s Joomla Modules Updates unpublished."
COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_N_ITEMS_UNPUBLISHED_1="%s Joomla Module Updates unpublished." COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_N_ITEMS_UNPUBLISHED_1="%s Joomla Module Updates unpublished."
COM_COMPONENTBUILDER_JOOMLA_MODULE_ABSTRACT_CLASS="abstract class" COM_COMPONENTBUILDER_JOOMLA_MODULE_ABSTRACT_CLASS="abstract class"
COM_COMPONENTBUILDER_JOOMLA_MODULE_ADDFIELDPATH_DESCRIPTION="Set extra field paths" COM_COMPONENTBUILDER_JOOMLA_MODULE_ADDFIELDPATH_DESCRIPTION="Set other field path"
COM_COMPONENTBUILDER_JOOMLA_MODULE_ADDFIELDPATH_LABEL="Extra Field Paths" COM_COMPONENTBUILDER_JOOMLA_MODULE_ADDFIELDPATH_LABEL="Other Field Path"
COM_COMPONENTBUILDER_JOOMLA_MODULE_ADDREADME_LABEL="Add README" COM_COMPONENTBUILDER_JOOMLA_MODULE_ADDREADME_LABEL="Add README"
COM_COMPONENTBUILDER_JOOMLA_MODULE_ADDRULEPATH_DESCRIPTION="Set extra rule paths" COM_COMPONENTBUILDER_JOOMLA_MODULE_ADDRULEPATH_DESCRIPTION="Set other rule path"
COM_COMPONENTBUILDER_JOOMLA_MODULE_ADDRULEPATH_LABEL="Extra Rule Paths" COM_COMPONENTBUILDER_JOOMLA_MODULE_ADDRULEPATH_LABEL="Other Rule Path"
COM_COMPONENTBUILDER_JOOMLA_MODULE_ADD_CLASS_HELPER_DESCRIPTION="You can add a helper class to your module." COM_COMPONENTBUILDER_JOOMLA_MODULE_ADD_CLASS_HELPER_DESCRIPTION="You can add a helper class to your module."
COM_COMPONENTBUILDER_JOOMLA_MODULE_ADD_CLASS_HELPER_HEADER_DESCRIPTION="You can add your own custom helper header script." COM_COMPONENTBUILDER_JOOMLA_MODULE_ADD_CLASS_HELPER_HEADER_DESCRIPTION="You can add your own custom helper header script."
COM_COMPONENTBUILDER_JOOMLA_MODULE_ADD_CLASS_HELPER_HEADER_LABEL="Add Class Helper Header" COM_COMPONENTBUILDER_JOOMLA_MODULE_ADD_CLASS_HELPER_HEADER_LABEL="Add Class Helper Header"
@ -6686,11 +6686,11 @@ COM_COMPONENTBUILDER_JOOMLA_PLUGINS_UPDATES_N_ITEMS_UNFEATURED="%s Joomla Plugin
COM_COMPONENTBUILDER_JOOMLA_PLUGINS_UPDATES_N_ITEMS_UNFEATURED_1="%s Joomla Plugin Updates unfeatured." COM_COMPONENTBUILDER_JOOMLA_PLUGINS_UPDATES_N_ITEMS_UNFEATURED_1="%s Joomla Plugin Updates unfeatured."
COM_COMPONENTBUILDER_JOOMLA_PLUGINS_UPDATES_N_ITEMS_UNPUBLISHED="%s Joomla Plugins Updates unpublished." COM_COMPONENTBUILDER_JOOMLA_PLUGINS_UPDATES_N_ITEMS_UNPUBLISHED="%s Joomla Plugins Updates unpublished."
COM_COMPONENTBUILDER_JOOMLA_PLUGINS_UPDATES_N_ITEMS_UNPUBLISHED_1="%s Joomla Plugin Updates unpublished." COM_COMPONENTBUILDER_JOOMLA_PLUGINS_UPDATES_N_ITEMS_UNPUBLISHED_1="%s Joomla Plugin Updates unpublished."
COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ADDFIELDPATH_DESCRIPTION="Set extra field paths" COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ADDFIELDPATH_DESCRIPTION="Set other field path"
COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ADDFIELDPATH_LABEL="Extra Field Paths" COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ADDFIELDPATH_LABEL="Other Field Path"
COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ADDREADME_LABEL="Add README" COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ADDREADME_LABEL="Add README"
COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ADDRULEPATH_DESCRIPTION="Set extra rule paths" COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ADDRULEPATH_DESCRIPTION="Set other rule path"
COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ADDRULEPATH_LABEL="Extra Rule Paths" COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ADDRULEPATH_LABEL="Other Rule Path"
COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ADD_HEAD_DESCRIPTION="You can add your own custom header script, combined with the default header script that make the extended class work." COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ADD_HEAD_DESCRIPTION="You can add your own custom header script, combined with the default header script that make the extended class work."
COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ADD_HEAD_LABEL="Add Custom Class Header" COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ADD_HEAD_LABEL="Add Custom Class Header"
COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ADD_PHP_METHOD_UNINSTALL_LABEL="Add PHP Method (uninstall)" COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ADD_PHP_METHOD_UNINSTALL_LABEL="Add PHP Method (uninstall)"

View File

@ -647,6 +647,64 @@
COM_COMPONENTBUILDER_JOOMLA_MODULE_COMPONENT</option> COM_COMPONENTBUILDER_JOOMLA_MODULE_COMPONENT</option>
<option value="2"> <option value="2">
COM_COMPONENTBUILDER_JOOMLA_MODULE_MODULE</option> COM_COMPONENTBUILDER_JOOMLA_MODULE_MODULE</option>
<option value="3">
COM_COMPONENTBUILDER_JOOMLA_MODULE_OTHER</option>
</field>
<!-- Addrulepath Field. Type: Subform. (joomla) -->
<field
type="subform"
name="addrulepath"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_ADDRULEPATH_LABEL"
layout="joomla.form.field.subform.repeatable-table"
multiple="true"
buttons="add,remove,move"
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_ADDRULEPATH_DESCRIPTION"
icon="list"
max="1"
showon="fields_rules_paths:3"
nested_depth="1">
<form hidden="true" name="list_addrulepath_modal" repeat="true">
<!-- Path Field. Type: Text. (joomla) -->
<field
type="text"
name="path"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_PATH_LABEL"
size="50"
maxlength="150"
class="text_area"
filter="STRING"
message="COM_COMPONENTBUILDER_JOOMLA_MODULE_PATH_MESSAGE"
autocomplete="on"
/>
</form>
</field>
<!-- Addfieldpath Field. Type: Subform. (joomla) -->
<field
type="subform"
name="addfieldpath"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_ADDFIELDPATH_LABEL"
layout="joomla.form.field.subform.repeatable-table"
multiple="true"
buttons="add,remove,move"
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_ADDFIELDPATH_DESCRIPTION"
icon="list"
max="1"
showon="fields_rules_paths:3"
nested_depth="1">
<form hidden="true" name="list_addfieldpath_modal" repeat="true">
<!-- Path Field. Type: Text. (joomla) -->
<field
type="text"
name="path"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_PATH_LABEL"
size="50"
maxlength="150"
class="text_area"
filter="STRING"
message="COM_COMPONENTBUILDER_JOOMLA_MODULE_PATH_MESSAGE"
autocomplete="on"
/>
</form>
</field> </field>
<!-- Fields Field. Type: Subform. (joomla) --> <!-- Fields Field. Type: Subform. (joomla) -->
<field <field
@ -688,60 +746,6 @@
/> />
</form> </form>
</field> </field>
<!-- Addrulepath Field. Type: Subform. (joomla) -->
<field
type="subform"
name="addrulepath"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_ADDRULEPATH_LABEL"
layout="joomla.form.field.subform.repeatable-table"
multiple="true"
buttons="add,remove,move"
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_ADDRULEPATH_DESCRIPTION"
icon="list"
max="10"
nested_depth="1">
<form hidden="true" name="list_addrulepath_modal" repeat="true">
<!-- Path Field. Type: Text. (joomla) -->
<field
type="text"
name="path"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_PATH_LABEL"
size="50"
maxlength="150"
class="text_area"
filter="STRING"
message="COM_COMPONENTBUILDER_JOOMLA_MODULE_PATH_MESSAGE"
autocomplete="on"
/>
</form>
</field>
<!-- Addfieldpath Field. Type: Subform. (joomla) -->
<field
type="subform"
name="addfieldpath"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_ADDFIELDPATH_LABEL"
layout="joomla.form.field.subform.repeatable-table"
multiple="true"
buttons="add,remove,move"
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_ADDFIELDPATH_DESCRIPTION"
icon="list"
max="10"
nested_depth="1">
<form hidden="true" name="list_addfieldpath_modal" repeat="true">
<!-- Path Field. Type: Text. (joomla) -->
<field
type="text"
name="path"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_PATH_LABEL"
size="50"
maxlength="150"
class="text_area"
filter="STRING"
message="COM_COMPONENTBUILDER_JOOMLA_MODULE_PATH_MESSAGE"
autocomplete="on"
/>
</form>
</field>
</form> </form>
</field> </field>
<!-- Readme Field. Type: Editor. (joomla) --> <!-- Readme Field. Type: Editor. (joomla) -->

View File

@ -526,6 +526,64 @@
COM_COMPONENTBUILDER_JOOMLA_PLUGIN_COMPONENT</option> COM_COMPONENTBUILDER_JOOMLA_PLUGIN_COMPONENT</option>
<option value="2"> <option value="2">
COM_COMPONENTBUILDER_JOOMLA_PLUGIN_PLUGIN</option> COM_COMPONENTBUILDER_JOOMLA_PLUGIN_PLUGIN</option>
<option value="3">
COM_COMPONENTBUILDER_JOOMLA_PLUGIN_OTHER</option>
</field>
<!-- Addrulepath Field. Type: Subform. (joomla) -->
<field
type="subform"
name="addrulepath"
label="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ADDRULEPATH_LABEL"
layout="joomla.form.field.subform.repeatable-table"
multiple="true"
buttons="add,remove,move"
description="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ADDRULEPATH_DESCRIPTION"
icon="list"
max="1"
showon="fields_rules_paths:3"
nested_depth="1">
<form hidden="true" name="list_addrulepath_modal" repeat="true">
<!-- Path Field. Type: Text. (joomla) -->
<field
type="text"
name="path"
label="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_PATH_LABEL"
size="50"
maxlength="150"
class="text_area"
filter="STRING"
message="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_PATH_MESSAGE"
autocomplete="on"
/>
</form>
</field>
<!-- Addfieldpath Field. Type: Subform. (joomla) -->
<field
type="subform"
name="addfieldpath"
label="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ADDFIELDPATH_LABEL"
layout="joomla.form.field.subform.repeatable-table"
multiple="true"
buttons="add,remove,move"
description="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ADDFIELDPATH_DESCRIPTION"
icon="list"
max="1"
showon="fields_rules_paths:3"
nested_depth="1">
<form hidden="true" name="list_addfieldpath_modal" repeat="true">
<!-- Path Field. Type: Text. (joomla) -->
<field
type="text"
name="path"
label="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_PATH_LABEL"
size="50"
maxlength="150"
class="text_area"
filter="STRING"
message="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_PATH_MESSAGE"
autocomplete="on"
/>
</form>
</field> </field>
<!-- Fields Field. Type: Subform. (joomla) --> <!-- Fields Field. Type: Subform. (joomla) -->
<field <field
@ -567,60 +625,6 @@
/> />
</form> </form>
</field> </field>
<!-- Addrulepath Field. Type: Subform. (joomla) -->
<field
type="subform"
name="addrulepath"
label="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ADDRULEPATH_LABEL"
layout="joomla.form.field.subform.repeatable-table"
multiple="true"
buttons="add,remove,move"
description="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ADDRULEPATH_DESCRIPTION"
icon="list"
max="10"
nested_depth="1">
<form hidden="true" name="list_addrulepath_modal" repeat="true">
<!-- Path Field. Type: Text. (joomla) -->
<field
type="text"
name="path"
label="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_PATH_LABEL"
size="50"
maxlength="150"
class="text_area"
filter="STRING"
message="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_PATH_MESSAGE"
autocomplete="on"
/>
</form>
</field>
<!-- Addfieldpath Field. Type: Subform. (joomla) -->
<field
type="subform"
name="addfieldpath"
label="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ADDFIELDPATH_LABEL"
layout="joomla.form.field.subform.repeatable-table"
multiple="true"
buttons="add,remove,move"
description="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ADDFIELDPATH_DESCRIPTION"
icon="list"
max="10"
nested_depth="1">
<form hidden="true" name="list_addfieldpath_modal" repeat="true">
<!-- Path Field. Type: Text. (joomla) -->
<field
type="text"
name="path"
label="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_PATH_LABEL"
size="50"
maxlength="150"
class="text_area"
filter="STRING"
message="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_PATH_MESSAGE"
autocomplete="on"
/>
</form>
</field>
</form> </form>
</field> </field>
<!-- Php_method_uninstall Field. Type: Editor. (joomla) --> <!-- Php_method_uninstall Field. Type: Editor. (joomla) -->