Procházet zdrojové kódy

added actions links to admin pages

Bachir Soussi Chiadmi před 6 roky
rodič
revize
3e15f40066

+ 10 - 10
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: {  }

+ 0 - 2
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.'

+ 1 - 1
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: {  }

+ 61 - 0
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