Resolved gh-603 to make sure the code has HTML placholder style, in round trip development.

This commit is contained in:
Llewellyn van der Merwe 2020-10-07 00:54:33 +02:00
parent ac86c8c56b
commit 8a87d8977a
Signed by: Llewellyn
GPG Key ID: EFC0C720A240551C
4 changed files with 11 additions and 4 deletions

View File

@ -144,7 +144,7 @@ TODO
+ *Author*: [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com) + *Author*: [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
+ *Name*: [Component Builder](https://github.com/vdm-io/Joomla-Component-Builder) + *Name*: [Component Builder](https://github.com/vdm-io/Joomla-Component-Builder)
+ *First Build*: 30th April, 2015 + *First Build*: 30th April, 2015
+ *Last Build*: 18th September, 2020 + *Last Build*: 6th October, 2020
+ *Version*: 2.11.6 + *Version*: 2.11.6
+ *Copyright*: Copyright (C) 2015 - 2020 Vast Development Method. All rights reserved. + *Copyright*: Copyright (C) 2015 - 2020 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

View File

@ -144,7 +144,7 @@ TODO
+ *Author*: [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com) + *Author*: [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
+ *Name*: [Component Builder](https://github.com/vdm-io/Joomla-Component-Builder) + *Name*: [Component Builder](https://github.com/vdm-io/Joomla-Component-Builder)
+ *First Build*: 30th April, 2015 + *First Build*: 30th April, 2015
+ *Last Build*: 18th September, 2020 + *Last Build*: 6th October, 2020
+ *Version*: 2.11.6 + *Version*: 2.11.6
+ *Copyright*: Copyright (C) 2015 - 2020 Vast Development Method. All rights reserved. + *Copyright*: Copyright (C) 2015 - 2020 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

View File

@ -3026,6 +3026,12 @@ class Get
{ {
// update GUI mapper field // update GUI mapper field
$guiMapper['field'] = $importScripter; $guiMapper['field'] = $importScripter;
$guiMapper['type'] = 'php';
// Make sure html gets HTML comment for placeholder
if ('html_import_view' === $importScripter)
{
$guiMapper['type'] = 'html';
}
$this->setCustomScriptBuilder( $this->setCustomScriptBuilder(
$view->$importScripter, $view->$importScripter,
$importScripter, $importScripter,
@ -3046,7 +3052,6 @@ class Get
} }
} }
} }
// add_Ajax for this view // add_Ajax for this view
if (isset($view->add_php_ajax) && $view->add_php_ajax == 1) if (isset($view->add_php_ajax) && $view->add_php_ajax == 1)
{ {
@ -3080,6 +3085,8 @@ class Get
} }
if (ComponentbuilderHelper::checkString($view->php_ajaxmethod)) if (ComponentbuilderHelper::checkString($view->php_ajaxmethod))
{ {
// make sure we are still in PHP
$guiMapper['type'] = 'php';
// update GUI mapper field // update GUI mapper field
$guiMapper['field'] = 'php_ajaxmethod'; $guiMapper['field'] = 'php_ajaxmethod';
$this->setCustomScriptBuilder( $this->setCustomScriptBuilder(

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<extension type="component" version="3.2" method="upgrade"> <extension type="component" version="3.2" method="upgrade">
<name>COM_COMPONENTBUILDER</name> <name>COM_COMPONENTBUILDER</name>
<creationDate>18th September, 2020</creationDate> <creationDate>6th October, 2020</creationDate>
<author>Llewellyn van der Merwe</author> <author>Llewellyn van der Merwe</author>
<authorEmail>llewellyn@joomlacomponentbuilder.com</authorEmail> <authorEmail>llewellyn@joomlacomponentbuilder.com</authorEmail>
<authorUrl>http://www.joomlacomponentbuilder.com</authorUrl> <authorUrl>http://www.joomlacomponentbuilder.com</authorUrl>