From 3e15f40066f33ce457b4acc8c749d0fc2148262d Mon Sep 17 00:00:00 2001 From: Bachir Soussi Chiadmi Date: Fri, 22 Feb 2019 22:14:01 +0100 Subject: [PATCH] added actions links to admin pages --- ..._display.node.simplenews_issue.default.yml | 20 +++--- ...igrate_plus.migration_group.d7_materio.yml | 2 - config/sync/system.menu.editors.yml | 2 +- .../editors_menus.links.action.yml | 61 +++++++++++++++++++ 4 files changed, 72 insertions(+), 13 deletions(-) create mode 100644 web/modules/custom/editors_menus/editors_menus.links.action.yml diff --git a/config/sync/core.entity_form_display.node.simplenews_issue.default.yml b/config/sync/core.entity_form_display.node.simplenews_issue.default.yml index 8755fa5..1c77d7b 100644 --- a/config/sync/core.entity_form_display.node.simplenews_issue.default.yml +++ b/config/sync/core.entity_form_display.node.simplenews_issue.default.yml @@ -18,7 +18,7 @@ mode: default content: body: type: text_textarea_with_summary - weight: 2 + weight: 3 settings: rows: 9 summary_rows: 3 @@ -27,7 +27,7 @@ content: region: content created: type: datetime_timestamp - weight: 10 + weight: 5 settings: { } third_party_settings: { } region: content @@ -40,7 +40,7 @@ content: third_party_settings: { } path: type: path - weight: 30 + weight: 8 region: content settings: { } third_party_settings: { } @@ -48,12 +48,12 @@ content: type: boolean_checkbox settings: display_label: true - weight: 15 + weight: 6 third_party_settings: { } region: content simplenews_issue: type: options_select - weight: 3 + weight: 1 settings: { } third_party_settings: { } region: content @@ -61,14 +61,14 @@ content: type: boolean_checkbox settings: display_label: true - weight: 120 + weight: 10 region: content third_party_settings: { } sticky: type: boolean_checkbox settings: display_label: true - weight: 16 + weight: 7 third_party_settings: { } region: content title: @@ -81,7 +81,7 @@ content: region: content uid: type: entity_reference_autocomplete - weight: 5 + weight: 4 settings: match_operator: CONTAINS size: 60 @@ -89,8 +89,8 @@ content: third_party_settings: { } region: content url_redirects: - weight: 50 + weight: 9 + region: content settings: { } third_party_settings: { } - region: content hidden: { } diff --git a/config/sync/migrate_plus.migration_group.d7_materio.yml b/config/sync/migrate_plus.migration_group.d7_materio.yml index d89f0e3..22cda87 100644 --- a/config/sync/migrate_plus.migration_group.d7_materio.yml +++ b/config/sync/migrate_plus.migration_group.d7_materio.yml @@ -7,8 +7,6 @@ dependencies: - migrate_plus - migrate_tools - materio_migrate -_core: - default_config_hash: tbcV0glxU9BqeXcSUn9ZKXnOPW-C2v8Q-shvIJ2xNG8 id: d7_materio label: 'D7 Materio' description: 'Drupal 7 materio content migration to Drupal 8.' diff --git a/config/sync/system.menu.editors.yml b/config/sync/system.menu.editors.yml index 6ad936e..52b5896 100644 --- a/config/sync/system.menu.editors.yml +++ b/config/sync/system.menu.editors.yml @@ -1,4 +1,4 @@ -uuid: 95f09cc4-4b91-4d65-9519-22da7783121b +uuid: c53a692f-6a96-4716-b7af-adb44749776a langcode: und status: true dependencies: { } diff --git a/web/modules/custom/editors_menus/editors_menus.links.action.yml b/web/modules/custom/editors_menus/editors_menus.links.action.yml new file mode 100644 index 0000000..240456a --- /dev/null +++ b/web/modules/custom/editors_menus/editors_menus.links.action.yml @@ -0,0 +1,61 @@ +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.company_add: + route_name: entity.taxonomy_term.add_form + route_parameters: + taxonomy_vocabulary: 'company' + title: 'Add Companie' + 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.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