Stable release of the automatic import of custom code, and the JCB manual placeholder implementation resolves #37 please view https://youtu.be/KiAtJawZ3oo
This commit is contained in:
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.3.1
|
||||
@build 9th February, 2017
|
||||
@version 2.3.2
|
||||
@build 11th February, 2017
|
||||
@created 30th April, 2015
|
||||
@package Component Builder
|
||||
@subpackage ajax.php
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.3.1
|
||||
@build 9th February, 2017
|
||||
@version 2.3.2
|
||||
@build 11th February, 2017
|
||||
@created 30th April, 2015
|
||||
@package Component Builder
|
||||
@subpackage componentbuilder.php
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version @update number 28 of this MVC
|
||||
@build 9th February, 2017
|
||||
@version @update number 35 of this MVC
|
||||
@build 10th February, 2017
|
||||
@created 11th October, 2016
|
||||
@package Component Builder
|
||||
@subpackage custom_code.php
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version @update number 28 of this MVC
|
||||
@build 9th February, 2017
|
||||
@version @update number 35 of this MVC
|
||||
@build 10th February, 2017
|
||||
@created 11th October, 2016
|
||||
@package Component Builder
|
||||
@subpackage custom_codes.php
|
||||
@ -134,12 +134,12 @@ class ComponentbuilderModelCustom_codes extends JModelList
|
||||
|
||||
if (ComponentbuilderHelper::checkArray($items) && !isset($_export))
|
||||
{
|
||||
foreach ($items as $item)
|
||||
foreach ($items as $nr => &$item)
|
||||
{
|
||||
if ($item->target == 2)
|
||||
{
|
||||
$item->component_system_name = '[CUSTO'.'MCODE='.$item->id.']'; // so it is not detected
|
||||
$item->path = '/*';
|
||||
$item->component_system_name = $item->system_name;
|
||||
$item->path = '<code>[CUSTO'.'MCODE='.$item->id.']</code>'; // so it is not detected
|
||||
$item->type = 2;
|
||||
}
|
||||
}
|
||||
@ -360,12 +360,12 @@ class ComponentbuilderModelCustom_codes extends JModelList
|
||||
|
||||
if (ComponentbuilderHelper::checkArray($items) && !isset($_export))
|
||||
{
|
||||
foreach ($items as $item)
|
||||
foreach ($items as $nr => &$item)
|
||||
{
|
||||
if ($item->target == 2)
|
||||
{
|
||||
$item->component_system_name = '[CUSTO'.'MCODE='.$item->id.']'; // so it is not detected
|
||||
$item->path = '/*';
|
||||
$item->component_system_name = $item->system_name;
|
||||
$item->path = '<code>[CUSTO'.'MCODE='.$item->id.']</code>'; // so it is not detected
|
||||
$item->type = 2;
|
||||
}
|
||||
}
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.3.1
|
||||
@build 9th February, 2017
|
||||
@version 2.3.2
|
||||
@build 11th February, 2017
|
||||
@created 30th April, 2015
|
||||
@package Component Builder
|
||||
@subpackage adminviewfolderlist.php
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.3.1
|
||||
@build 9th February, 2017
|
||||
@version 2.3.2
|
||||
@build 11th February, 2017
|
||||
@created 30th April, 2015
|
||||
@package Component Builder
|
||||
@subpackage adminviews.php
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.3.1
|
||||
@build 9th February, 2017
|
||||
@version 2.3.2
|
||||
@build 11th February, 2017
|
||||
@created 30th April, 2015
|
||||
@package Component Builder
|
||||
@subpackage articles.php
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.3.1
|
||||
@build 9th February, 2017
|
||||
@version 2.3.2
|
||||
@build 11th February, 2017
|
||||
@created 30th April, 2015
|
||||
@package Component Builder
|
||||
@subpackage component.php
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.3.1
|
||||
@build 9th February, 2017
|
||||
@version 2.3.2
|
||||
@build 11th February, 2017
|
||||
@created 30th April, 2015
|
||||
@package Component Builder
|
||||
@subpackage customadminviews.php
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.3.1
|
||||
@build 9th February, 2017
|
||||
@version 2.3.2
|
||||
@build 11th February, 2017
|
||||
@created 30th April, 2015
|
||||
@package Component Builder
|
||||
@subpackage customfilelist.php
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.3.1
|
||||
@build 9th February, 2017
|
||||
@version 2.3.2
|
||||
@build 11th February, 2017
|
||||
@created 30th April, 2015
|
||||
@package Component Builder
|
||||
@subpackage customfolderlist.php
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.3.1
|
||||
@build 9th February, 2017
|
||||
@version 2.3.2
|
||||
@build 11th February, 2017
|
||||
@created 30th April, 2015
|
||||
@package Component Builder
|
||||
@subpackage customgets.php
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.3.1
|
||||
@build 9th February, 2017
|
||||
@version 2.3.2
|
||||
@build 11th February, 2017
|
||||
@created 30th April, 2015
|
||||
@package Component Builder
|
||||
@subpackage dbtables.php
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.3.1
|
||||
@build 9th February, 2017
|
||||
@version 2.3.2
|
||||
@build 11th February, 2017
|
||||
@created 30th April, 2015
|
||||
@package Component Builder
|
||||
@subpackage dynamicgets.php
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.3.1
|
||||
@build 9th February, 2017
|
||||
@version 2.3.2
|
||||
@build 11th February, 2017
|
||||
@created 30th April, 2015
|
||||
@package Component Builder
|
||||
@subpackage fields.php
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.3.1
|
||||
@build 9th February, 2017
|
||||
@version 2.3.2
|
||||
@build 11th February, 2017
|
||||
@created 30th April, 2015
|
||||
@package Component Builder
|
||||
@subpackage fieldsmulti.php
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.3.1
|
||||
@build 9th February, 2017
|
||||
@version 2.3.2
|
||||
@build 11th February, 2017
|
||||
@created 30th April, 2015
|
||||
@package Component Builder
|
||||
@subpackage fieldtypes.php
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.3.1
|
||||
@build 9th February, 2017
|
||||
@version 2.3.2
|
||||
@build 11th February, 2017
|
||||
@created 30th April, 2015
|
||||
@package Component Builder
|
||||
@subpackage maingets.php
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.3.1
|
||||
@build 9th February, 2017
|
||||
@version 2.3.2
|
||||
@build 11th February, 2017
|
||||
@created 30th April, 2015
|
||||
@package Component Builder
|
||||
@subpackage siteviewfolderlist.php
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.3.1
|
||||
@build 9th February, 2017
|
||||
@version 2.3.2
|
||||
@build 11th February, 2017
|
||||
@created 30th April, 2015
|
||||
@package Component Builder
|
||||
@subpackage siteviews.php
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.3.1
|
||||
@build 9th February, 2017
|
||||
@version 2.3.2
|
||||
@build 11th February, 2017
|
||||
@created 30th April, 2015
|
||||
@package Component Builder
|
||||
@subpackage snippets.php
|
||||
|
@ -9,8 +9,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version @update number 28 of this MVC
|
||||
@build 9th February, 2017
|
||||
@version @update number 35 of this MVC
|
||||
@build 10th February, 2017
|
||||
@created 11th October, 2016
|
||||
@package Component Builder
|
||||
@subpackage custom_code.js
|
||||
@ -52,10 +52,12 @@ function vvvvvzo(target_vvvvvzo)
|
||||
if (target_vvvvvzo == 2)
|
||||
{
|
||||
jQuery('.note_jcb_placeholder').closest('.control-group').show();
|
||||
jQuery('#jform_system_name').closest('.control-group').show();
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('.note_jcb_placeholder').closest('.control-group').hide();
|
||||
jQuery('#jform_system_name').closest('.control-group').hide();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -144,6 +144,19 @@
|
||||
<option value="2">
|
||||
COM_COMPONENTBUILDER_CUSTOM_CODE_INSERTION</option>
|
||||
</field>
|
||||
<!-- Code Field. Type: Textarea. (joomla) -->
|
||||
<field
|
||||
type="textarea"
|
||||
name="code"
|
||||
label="COM_COMPONENTBUILDER_CUSTOM_CODE_CODE_LABEL"
|
||||
rows="30"
|
||||
cols="15"
|
||||
description="COM_COMPONENTBUILDER_CUSTOM_CODE_CODE_DESCRIPTION"
|
||||
class="text_area span12"
|
||||
filter="raw"
|
||||
hint="COM_COMPONENTBUILDER_CUSTOM_CODE_CODE_HINT"
|
||||
required="true"
|
||||
/>
|
||||
<!-- To_line Field. Type: Text. (joomla) -->
|
||||
<field
|
||||
type="text"
|
||||
@ -158,6 +171,19 @@
|
||||
hint="COM_COMPONENTBUILDER_CUSTOM_CODE_TO_LINE_HINT"
|
||||
onchange="if(!jQuery(this).val().match(/^\d+$/)){jQuery(this).val('')};"
|
||||
/>
|
||||
<!-- System_name Field. Type: Text. (joomla) -->
|
||||
<field
|
||||
type="text"
|
||||
name="system_name"
|
||||
label="COM_COMPONENTBUILDER_CUSTOM_CODE_SYSTEM_NAME_LABEL"
|
||||
size="10"
|
||||
maxlength="50"
|
||||
description="COM_COMPONENTBUILDER_CUSTOM_CODE_SYSTEM_NAME_DESCRIPTION"
|
||||
class="text_area"
|
||||
filter="STRING"
|
||||
message="Error! Please add some text here."
|
||||
hint="COM_COMPONENTBUILDER_CUSTOM_CODE_SYSTEM_NAME_HINT"
|
||||
/>
|
||||
<!-- Hashtarget Field. Type: Text. (joomla) -->
|
||||
<field
|
||||
type="text"
|
||||
@ -172,18 +198,21 @@
|
||||
message="Error! Please add some text here."
|
||||
hint="COM_COMPONENTBUILDER_CUSTOM_CODE_HASHTARGET_HINT"
|
||||
/>
|
||||
<!-- Code Field. Type: Textarea. (joomla) -->
|
||||
<!-- Note_jcb_placeholder Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="note_jcb_placeholder" label="COM_COMPONENTBUILDER_CUSTOM_CODE_NOTE_JCB_PLACEHOLDER_LABEL" description="COM_COMPONENTBUILDER_CUSTOM_CODE_NOTE_JCB_PLACEHOLDER_DESCRIPTION" heading="h4" class="span12 note_jcb_placeholder" />
|
||||
<!-- Hashendtarget Field. Type: Text. (joomla) -->
|
||||
<field
|
||||
type="textarea"
|
||||
name="code"
|
||||
label="COM_COMPONENTBUILDER_CUSTOM_CODE_CODE_LABEL"
|
||||
rows="30"
|
||||
cols="15"
|
||||
description="COM_COMPONENTBUILDER_CUSTOM_CODE_CODE_DESCRIPTION"
|
||||
class="text_area span12"
|
||||
filter="raw"
|
||||
hint="COM_COMPONENTBUILDER_CUSTOM_CODE_CODE_HINT"
|
||||
required="true"
|
||||
type="text"
|
||||
name="hashendtarget"
|
||||
label="COM_COMPONENTBUILDER_CUSTOM_CODE_HASHENDTARGET_LABEL"
|
||||
size="50"
|
||||
maxlength="150"
|
||||
description="COM_COMPONENTBUILDER_CUSTOM_CODE_HASHENDTARGET_DESCRIPTION"
|
||||
class="text_area"
|
||||
readonly="true"
|
||||
filter="STRING"
|
||||
message="Error! Please add some text here."
|
||||
hint="COM_COMPONENTBUILDER_CUSTOM_CODE_HASHENDTARGET_HINT"
|
||||
/>
|
||||
<!-- From_line Field. Type: Text. (joomla) -->
|
||||
<field
|
||||
@ -199,22 +228,6 @@
|
||||
hint="COM_COMPONENTBUILDER_CUSTOM_CODE_FROM_LINE_HINT"
|
||||
onchange="if(!jQuery(this).val().match(/^\d+$/)){jQuery(this).val('')};"
|
||||
/>
|
||||
<!-- Hashendtarget Field. Type: Text. (joomla) -->
|
||||
<field
|
||||
type="text"
|
||||
name="hashendtarget"
|
||||
label="COM_COMPONENTBUILDER_CUSTOM_CODE_HASHENDTARGET_LABEL"
|
||||
size="50"
|
||||
maxlength="150"
|
||||
description="COM_COMPONENTBUILDER_CUSTOM_CODE_HASHENDTARGET_DESCRIPTION"
|
||||
class="text_area"
|
||||
readonly="true"
|
||||
filter="STRING"
|
||||
message="Error! Please add some text here."
|
||||
hint="COM_COMPONENTBUILDER_CUSTOM_CODE_HASHENDTARGET_HINT"
|
||||
/>
|
||||
<!-- Note_jcb_placeholder Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="note_jcb_placeholder" label="COM_COMPONENTBUILDER_CUSTOM_CODE_NOTE_JCB_PLACEHOLDER_LABEL" description="COM_COMPONENTBUILDER_CUSTOM_CODE_NOTE_JCB_PLACEHOLDER_DESCRIPTION" heading="h4" class="note_jcb_placeholder" />
|
||||
<!-- Not_required Field. Type: Hidden. (joomla) -->
|
||||
<field
|
||||
type="hidden"
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.3.1
|
||||
@build 9th February, 2017
|
||||
@version 2.3.2
|
||||
@build 11th February, 2017
|
||||
@created 30th April, 2015
|
||||
@package Component Builder
|
||||
@subpackage import.php
|
||||
|
Reference in New Issue
Block a user