Added the option to add custom tabs to the edit view of any admin view

This commit is contained in:
2018-08-24 23:46:41 +02:00
parent 42e85b3944
commit 231d8aa984
54 changed files with 4215 additions and 650 deletions

View File

@ -235,27 +235,27 @@ 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_batchmove` (`add_php_batchmove`),
KEY `idx_add_php_allowedit` (`add_php_allowedit`),
KEY `idx_add_php_postsavehook` (`add_php_postsavehook`),
KEY `idx_add_php_before_save` (`add_php_before_save`),
KEY `idx_add_php_getlistquery` (`add_php_getlistquery`),
KEY `idx_add_php_getitems` (`add_php_getitems`),
KEY `idx_add_sql` (`add_sql`),
KEY `idx_add_php_batchcopy` (`add_php_batchcopy`),
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_custom_import` (`add_custom_import`),
KEY `idx_add_php_before_delete` (`add_php_before_delete`),
KEY `idx_name_list` (`name_list`),
KEY `idx_type` (`type`),
KEY `idx_add_php_getitems` (`add_php_getitems`),
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_batchmove` (`add_php_batchmove`),
KEY `idx_add_php_after_publish` (`add_php_after_publish`),
KEY `idx_add_php_after_delete` (`add_php_after_delete`),
KEY `idx_type` (`type`),
KEY `idx_add_php_getitems_after_all` (`add_php_getitems_after_all`),
KEY `idx_add_php_getform` (`add_php_getform`),
KEY `idx_add_php_save` (`add_php_save`),
KEY `idx_add_php_allowadd` (`add_php_allowadd`),
KEY `idx_add_php_batchcopy` (`add_php_batchcopy`),
KEY `idx_add_php_before_publish` (`add_php_before_publish`),
KEY `idx_add_php_before_delete` (`add_php_before_delete`),
KEY `idx_add_php_document` (`add_php_document`),
KEY `idx_add_custom_import` (`add_custom_import`),
KEY `idx_name_list` (`name_list`),
KEY `idx_add_sql` (`add_sql`),
KEY `idx_add_css_view` (`add_css_view`),
KEY `idx_add_css_views` (`add_css_views`),
KEY `idx_add_javascript_view_file` (`add_javascript_view_file`),
@ -990,6 +990,32 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_admin_fields_relations` (
KEY `idx_admin_view` (`admin_view`)
) ENGINE=MyISAM AUTO_INCREMENT=0 DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `#__componentbuilder_admin_custom_tabs` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
`admin_view` INT(11) NOT NULL DEFAULT 0,
`tabs` TEXT NOT NULL,
`params` text NOT NULL DEFAULT '',
`published` TINYINT(3) NOT NULL DEFAULT 1,
`created_by` INT(10) unsigned NOT NULL DEFAULT 0,
`modified_by` INT(10) unsigned NOT NULL DEFAULT 0,
`created` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
`modified` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
`checked_out` int(11) unsigned NOT NULL DEFAULT 0,
`checked_out_time` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
`version` INT(10) unsigned NOT NULL DEFAULT 1,
`hits` INT(10) unsigned NOT NULL DEFAULT 0,
`access` INT(10) unsigned NOT NULL DEFAULT 0,
`ordering` INT(11) NOT NULL DEFAULT 0,
PRIMARY KEY (`id`),
KEY `idx_access` (`access`),
KEY `idx_checkout` (`checked_out`),
KEY `idx_createdby` (`created_by`),
KEY `idx_modifiedby` (`modified_by`),
KEY `idx_state` (`published`),
KEY `idx_admin_view` (`admin_view`)
) ENGINE=MyISAM AUTO_INCREMENT=0 DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `#__componentbuilder_component_admin_views` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',