diff --git a/src/config/sync/core.extension.yml b/src/config/sync/core.extension.yml index 5527d6f..acd8af3 100644 --- a/src/config/sync/core.extension.yml +++ b/src/config/sync/core.extension.yml @@ -42,6 +42,7 @@ module: domain_site_settings: 0 dynamic_page_cache: 0 editor: 0 + editors_menus: 0 email_registration: 0 embed: 0 enfrancais_graphql: 0 diff --git a/src/config/sync/system.menu.editors.yml b/src/config/sync/system.menu.editors.yml new file mode 100644 index 0000000..d495385 --- /dev/null +++ b/src/config/sync/system.menu.editors.yml @@ -0,0 +1,10 @@ +uuid: 5f84f308-9b8d-459c-98af-1b5158ca03af +langcode: und +status: true +dependencies: { } +_core: + default_config_hash: 0hxb-hNr7Eg_y0RtE7A9ShL8kGwEdJ4LTjbWcZTYKYk +id: editors +label: Editors +description: 'An admin menu for content editors (must be customized for each new project)' +locked: false diff --git a/src/web/modules/custom/editors_menus/config/install/system.menu.editors.yml b/src/web/modules/custom/editors_menus/config/install/system.menu.editors.yml new file mode 100644 index 0000000..b00cfa3 --- /dev/null +++ b/src/web/modules/custom/editors_menus/config/install/system.menu.editors.yml @@ -0,0 +1,7 @@ +langcode: und +status: true +dependencies: { } +id: editors +label: Editors +description: 'An admin menu for content editors (must be customized for each new project)' +locked: false diff --git a/src/web/modules/custom/editors_menus/editors_menus.info.yml b/src/web/modules/custom/editors_menus/editors_menus.info.yml new file mode 100644 index 0000000..8ed0946 --- /dev/null +++ b/src/web/modules/custom/editors_menus/editors_menus.info.yml @@ -0,0 +1,6 @@ +name: 'Editors Menus' +type: module +description: 'create editors admin menus through module as they will be exportable as config' +core: 8.x +core_version_requirement: ^8 || ^9 +package: 'Custom' diff --git a/src/web/modules/custom/editors_menus/editors_menus.links.action.yml b/src/web/modules/custom/editors_menus/editors_menus.links.action.yml new file mode 100644 index 0000000..c1117e6 --- /dev/null +++ b/src/web/modules/custom/editors_menus/editors_menus.links.action.yml @@ -0,0 +1,93 @@ +# editors_menus.material_add: +# route_name: node.add +# route_parameters: +# node_type: 'materiau' +# title: 'Add Material' +# appears_on: +# - view.admin_nodes.page_1 +# +# editors_menus.article_add: +# route_name: node.add +# route_parameters: +# node_type: 'article' +# title: 'Add Article' +# appears_on: +# - view.admin_nodes.page_2 +# +# editors_menus.thematique_add: +# route_name: node.add +# route_parameters: +# node_type: 'thematique' +# title: 'Add Thematique' +# appears_on: +# - view.admin_nodes.page_3 + +editors_menus.auteur_add: + route_name: entity.taxonomy_term.add_form + route_parameters: + taxonomy_vocabulary: 'auteurs' + title: 'Add Auteur' + appears_on: + - view.admin_taxo.page_1 + +# editors_menus.showroom_add: +# route_name: entity.taxonomy_term.add_form +# route_parameters: +# taxonomy_vocabulary: 'showroom' +# title: 'Add Showroom' +# appears_on: +# - view.admin_taxo.page_2 +# +# editors_menus.thesaurus_add: +# route_name: entity.taxonomy_term.add_form +# route_parameters: +# taxonomy_vocabulary: 'thesaurus' +# title: 'Add Thesaurus' +# appears_on: +# - view.admin_taxo.page_3 +# +# editors_menus.tag_add: +# route_name: entity.taxonomy_term.add_form +# route_parameters: +# taxonomy_vocabulary: 'tags' +# title: 'Add Tag' +# appears_on: +# - view.admin_taxo.page_4 +# +# editors_menus.assisted_research_add: +# route_name: entity.taxonomy_term.add_form +# route_parameters: +# taxonomy_vocabulary: 'assisted_research' +# title: 'Add Assisted Research List' +# appears_on: +# - view.admin_taxo.page_5 +# +# editors_menus.user_add: +# route_name: user.admin_create +# title: 'Add User' +# appears_on: +# - view.admin_users.page_1 + +# editors_menus.simplenews_daily_add: +# route_name: node.add +# route_parameters: +# node_type: 'simplenews_issue' +# title: 'Add Daily' +# appears_on: +# - view.simplenews_newsletters.page_1 +# +# editors_menus.simplenews_newsletter_add: +# route_name: node.add +# route_parameters: +# node_type: 'simplenews_issue' +# title: 'Add Newletter' +# appears_on: +# - view.simplenews_newsletters.page_1 +# +# editors_menus.simplenews_companies_add: +# route_name: node.add +# route_parameters: +# node_type: 'simplenews_issue' +# title: 'Add Companies mailing' +# appears_on: +# - view.simplenews_newsletters.page_1 diff --git a/src/web/modules/custom/editors_menus/editors_menus.links.menu.yml b/src/web/modules/custom/editors_menus/editors_menus.links.menu.yml new file mode 100644 index 0000000..1146cf6 --- /dev/null +++ b/src/web/modules/custom/editors_menus/editors_menus.links.menu.yml @@ -0,0 +1,111 @@ +editors_menus.contents: + title: Contents + description: '' + parent: editors + route_name: view.admin_nodes.page_1 + menu_name: editors + weight: 0 + +editors_menus.materials: + title: Materials + description: '' + parent: editors_menus.contents + route_name: view.admin_nodes.page_1 + menu_name: editors + weight: 0 + +editors_menus.articles: + title: Articles + description: '' + parent: editors_menus.contents + route_name: view.admin_nodes.page_2 + menu_name: editors + weight: 2 + +editors_menus.thesaurus: + title: Thesaurus + description: '' + parent: editors_menus.contents + route_name: view.admin_taxo.page_3 + menu_name: editors + weight: 3 + +editors_menus.tags: + title: Tags + description: '' + parent: editors_menus.contents + route_name: view.admin_taxo.page_4 + menu_name: editors + weight: 4 + +editors_menus.assisted_research: + title: Assisted Research + description: '' + parent: editors_menus.contents + route_name: view.admin_taxo.page_5 + menu_name: editors + weight: 5 + +editors_menus.companies: + title: Companies + description: '' + parent: editors_menus.contents + route_name: view.admin_taxo.page_1 + menu_name: editors + weight: 6 + +editors_menus.showrooms: + title: Showrooms + description: '' + parent: editors_menus.contents + route_name: view.admin_taxo.page_2 + menu_name: editors + weight: 7 + +editors_menus.newsletters: + title: Newsletters + description: '' + parent: editors_menus.contents + route_name: view.simplenews_newsletters.page_1 + menu_name: editors + weight: 8 + +editors_menus.users: + title: Users + description: '' + parent: editors + route_name: view.admin_users.page_1 + menu_name: editors + weight: 1 + +editors_menus.subscribers: + title: Simplenews Subscribers + description: '' + parent: editors_menus.users + route_name: view.simplenews_subscribers.page_1 + menu_name: editors + weight: 2 + +editors_menus.commerce: + title: Commerce + description: '' + parent: editors + route_name: entity.commerce_order.collection + menu_name: editors + weight: 2 + +editors_menus.commerce_orders: + title: Orders + description: '' + parent: editors_menus.commerce + route_name: entity.commerce_order.collection + menu_name: editors + weight: 0 + +editors_menus.commerce_license: + title: Licenses + description: '' + parent: editors_menus.commerce + route_name: entity.commerce_license.collection + menu_name: editors + weight: 1 diff --git a/src/web/modules/custom/editors_menus/editors_menus.module b/src/web/modules/custom/editors_menus/editors_menus.module new file mode 100644 index 0000000..aacefce --- /dev/null +++ b/src/web/modules/custom/editors_menus/editors_menus.module @@ -0,0 +1,24 @@ +' . t('About') . ''; + $output .= '
' . t('create editors admin menus through module as they will be exportable as config') . '
'; + return $output; + + default: + } +}