Started adding grapesJS to assistant area for the site view builder.
This commit is contained in:
@ -1811,7 +1811,7 @@ class Structure extends Get
|
||||
// check files exist
|
||||
if (JFile::exists($this->componentPath . '/admin/models/fields/' . $field['type_name'] . '.php'))
|
||||
{
|
||||
// move the custom field
|
||||
// copy the custom field
|
||||
JFile::copy($this->componentPath . '/admin/models/fields/' . $field['type_name'] . '.php', $path . '/fields/' . $field['type_name'] . '.php');
|
||||
}
|
||||
// do this just once
|
||||
@ -1823,7 +1823,7 @@ class Structure extends Get
|
||||
// check files exist
|
||||
if (JFile::exists($this->componentPath . '/admin/models/rules/' . $this->validationLinkedFields[$field['field']] . '.php'))
|
||||
{
|
||||
// move the custom field
|
||||
// copy the custom field
|
||||
JFile::copy($this->componentPath . '/admin/models/rules/' . $this->validationLinkedFields[$field['field']] . '.php', $path . '/rules/' . $this->validationLinkedFields[$field['field']] . '.php');
|
||||
}
|
||||
// do this just once
|
||||
|
@ -3140,7 +3140,10 @@ class Fields extends Structure
|
||||
public function setCustomFieldTypeFile($data, $view_name_list, $view_name_single)
|
||||
{
|
||||
// make sure it is not already been build or if it is prime
|
||||
if (isset($data['custom']) && isset($data['custom']['extends']) && ((isset($data['custom']['prime_php']) && $data['custom']['prime_php'] == 1) || !isset($this->fileContentDynamic['customfield_' . $data['type']]) || !ComponentbuilderHelper::checkArray($this->fileContentDynamic['customfield_' . $data['type']])))
|
||||
if (isset($data['custom']) && isset($data['custom']['extends'])
|
||||
&& ((isset($data['custom']['prime_php']) && $data['custom']['prime_php'] == 1)
|
||||
|| !isset($this->fileContentDynamic['customfield_' . $data['type']])
|
||||
|| !ComponentbuilderHelper::checkArray($this->fileContentDynamic['customfield_' . $data['type']])))
|
||||
{
|
||||
// set J prefix
|
||||
$jprefix = 'J';
|
||||
|
@ -695,6 +695,7 @@ class Infusion extends Interpretation
|
||||
// CUSTOM_ADMIN_SUBMITBUTTON_SCRIPT <<<DYNAMIC>>>
|
||||
$this->fileContentDynamic[$view['settings']->code][$this->hhh . 'CUSTOM_ADMIN_SUBMITBUTTON_SCRIPT' . $this->hhh] = $this->setCustomViewSubmitButtonScript($view);
|
||||
|
||||
|
||||
// setup the templates
|
||||
$this->setCustomViewTemplateBody($view);
|
||||
|
||||
|
Reference in New Issue
Block a user