瀏覽代碼

added page_manager module

bach 1 年之前
父節點
當前提交
02c5f4ea00
共有 3 個文件被更改,包括 20 次插入0 次删除
  1. 1 0
      composer.json
  2. 1 0
      config/sync/core.extension.yml
  3. 18 0
      config/sync/page_manager.page.node_view.yml

+ 1 - 0
composer.json

@@ -20,6 +20,7 @@
         "drupal/core-project-message": "^10.1",
         "drupal/core-recommended": "^10.1",
         "drupal/linked_field": "^1.5",
+        "drupal/page_manager": "^4.0@RC",
         "drupal/structure_sync": "^2.0",
         "wikimedia/composer-merge-plugin": "^2.1"
     },

+ 1 - 0
config/sync/core.extension.yml

@@ -73,6 +73,7 @@ module:
   node: 0
   options: 0
   page_cache: 0
+  page_manager: 0
   pagerer: 0
   path: 0
   path_alias: 0

+ 18 - 0
config/sync/page_manager.page.node_view.yml

@@ -0,0 +1,18 @@
+uuid: e93d1bbb-5628-4a43-bfe2-6ba0a496e264
+langcode: fr
+status: true
+dependencies: {  }
+_core:
+  default_config_hash: RCVWP-yHwxSNiQORMIabDgHMEVqOMW58w80BQgRFJ4k
+id: node_view
+label: 'Vue du nœud'
+description: 'When enabled, this overrides the default Drupal behavior for displaying nodes at <em>/node/{node}</em>. If you add variants, you may use selection criteria such as node type or language or user access to provide different views of nodes. If no variant is selected, the default Drupal node view will be used. This page only affects nodes viewed as pages, it will not affect nodes viewed in lists or at other locations.'
+use_admin_theme: false
+path: '/node/{node}'
+access_logic: and
+access_conditions: {  }
+parameters:
+  node:
+    machine_name: node
+    label: Nœud
+    type: 'entity:node'