Resolves gh-644 and addes the option to add, or hide the category sub-menu of a view.

This commit is contained in:
2021-01-06 12:02:55 +02:00
parent d9da5d9fc4
commit 12600431ca
16 changed files with 860 additions and 738 deletions

View File

@ -310,6 +310,7 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_joomla_plugin` (
CREATE TABLE IF NOT EXISTS `#__componentbuilder_admin_view` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
`add_category_submenu` TINYINT(1) NOT NULL DEFAULT 1,
`add_css_view` TINYINT(1) NOT NULL DEFAULT 0,
`add_css_views` TINYINT(1) NOT NULL DEFAULT 0,
`add_custom_button` INT(1) NOT NULL DEFAULT 0,
@ -415,44 +416,45 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_admin_view` (
`ordering` INT(11) NOT NULL DEFAULT 0,
PRIMARY KEY (`id`),
KEY `idx_name_single` (`name_single`),
KEY `idx_name_list` (`name_list`),
KEY `idx_add_fadein` (`add_fadein`),
KEY `idx_mysql_table_row_format` (`mysql_table_row_format`),
KEY `idx_type` (`type`),
KEY `idx_mysql_table_charset` (`mysql_table_charset`),
KEY `idx_type` (`type`),
KEY `idx_source` (`source`),
KEY `idx_add_css_view` (`add_css_view`),
KEY `idx_mysql_table_row_format` (`mysql_table_row_format`),
KEY `idx_add_category_submenu` (`add_category_submenu`),
KEY `idx_name_list` (`name_list`),
KEY `idx_add_php_getlistquery` (`add_php_getlistquery`),
KEY `idx_add_css_view` (`add_css_view`),
KEY `idx_add_php_getform` (`add_php_getform`),
KEY `idx_add_css_views` (`add_css_views`),
KEY `idx_add_php_before_save` (`add_php_before_save`),
KEY `idx_add_css_views` (`add_css_views`),
KEY `idx_add_php_save` (`add_php_save`),
KEY `idx_add_javascript_view_file` (`add_javascript_view_file`),
KEY `idx_add_php_postsavehook` (`add_php_postsavehook`),
KEY `idx_add_javascript_view_file` (`add_javascript_view_file`),
KEY `idx_add_php_allowadd` (`add_php_allowadd`),
KEY `idx_add_javascript_view_footer` (`add_javascript_view_footer`),
KEY `idx_add_php_allowedit` (`add_php_allowedit`),
KEY `idx_add_javascript_view_footer` (`add_javascript_view_footer`),
KEY `idx_add_php_before_cancel` (`add_php_before_cancel`),
KEY `idx_add_javascript_views_file` (`add_javascript_views_file`),
KEY `idx_add_php_after_cancel` (`add_php_after_cancel`),
KEY `idx_add_javascript_views_file` (`add_javascript_views_file`),
KEY `idx_add_php_batchcopy` (`add_php_batchcopy`),
KEY `idx_add_javascript_views_footer` (`add_javascript_views_footer`),
KEY `idx_add_php_batchmove` (`add_php_batchmove`),
KEY `idx_add_javascript_views_footer` (`add_javascript_views_footer`),
KEY `idx_add_php_before_publish` (`add_php_before_publish`),
KEY `idx_add_custom_button` (`add_custom_button`),
KEY `idx_add_php_after_publish` (`add_php_after_publish`),
KEY `idx_add_custom_button` (`add_custom_button`),
KEY `idx_add_php_before_delete` (`add_php_before_delete`),
KEY `idx_add_php_after_delete` (`add_php_after_delete`),
KEY `idx_add_php_document` (`add_php_document`),
KEY `idx_mysql_table_engine` (`mysql_table_engine`),
KEY `idx_mysql_table_collate` (`mysql_table_collate`),
KEY `idx_add_php_ajax` (`add_php_ajax`),
KEY `idx_add_sql` (`add_sql`),
KEY `idx_add_php_getitem` (`add_php_getitem`),
KEY `idx_add_php_ajax` (`add_php_ajax`),
KEY `idx_add_custom_import` (`add_custom_import`),
KEY `idx_add_php_getitem` (`add_php_getitem`),
KEY `idx_add_php_getitems` (`add_php_getitems`),
KEY `idx_add_php_getitems_after_all` (`add_php_getitems_after_all`),
KEY `idx_guid` (`guid`),
KEY `idx_add_php_getitems_after_all` (`add_php_getitems_after_all`),
KEY `idx_access` (`access`),
KEY `idx_checkout` (`checked_out`),
KEY `idx_createdby` (`created_by`),