bach il y a 2 ans
Parent
commit
e2a1fb3fc4

+ 1 - 0
composer.json

@@ -17,6 +17,7 @@
     "require": {
         "composer/installers": "^1.9",
         "drupal/administerusersbyrole": "^3.0",
+        "drupal/config_pages": "2.x-dev@dev",
         "drupal/core-composer-scaffold": "^9.2",
         "drupal/core-project-message": "^9.2",
         "drupal/core-recommended": "^9.2",

+ 60 - 1
composer.lock

@@ -4,7 +4,7 @@
         "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
         "This file is @generated automatically"
     ],
-    "content-hash": "4678dae1e4325f8648241705b7981c32",
+    "content-hash": "8da11cb17c76f007a4b59bc7b1621d49",
     "packages": [
         {
             "name": "alchemy/zippy",
@@ -3081,6 +3081,64 @@
                 "irc": "irc://irc.freenode.org/drupal-contribute"
             }
         },
+        {
+            "name": "drupal/config_pages",
+            "version": "dev-2.x",
+            "source": {
+                "type": "git",
+                "url": "https://git.drupalcode.org/project/config_pages.git",
+                "reference": "ba53fd5b7536040f92d0958b7ce643e6cca67d45"
+            },
+            "require": {
+                "drupal/core": "^8.5 | ^9"
+            },
+            "type": "drupal-module",
+            "extra": {
+                "branch-alias": {
+                    "dev-2.x": "2.x-dev"
+                },
+                "drupal": {
+                    "version": "8.x-2.9+11-dev",
+                    "datestamp": "1634847768",
+                    "security-coverage": {
+                        "status": "not-covered",
+                        "message": "Dev releases are not covered by Drupal security advisories."
+                    }
+                },
+                "drush": {
+                    "services": {
+                        "drush.services.yml": "^9"
+                    }
+                }
+            },
+            "notification-url": "https://packages.drupal.org/8/downloads",
+            "license": [
+                "GPL-2.0-or-later"
+            ],
+            "authors": [
+                {
+                    "name": "Qwaygon",
+                    "homepage": "https://www.drupal.org/user/636624"
+                },
+                {
+                    "name": "claymor",
+                    "homepage": "https://www.drupal.org/user/3193903"
+                },
+                {
+                    "name": "shumer",
+                    "homepage": "https://www.drupal.org/user/2297432"
+                }
+            ],
+            "description": "ConfigPages module",
+            "homepage": "http://drupal.org/project/config_pages",
+            "keywords": [
+                "Drupal"
+            ],
+            "support": {
+                "source": "http://cgit.drupalcode.org/config_pages",
+                "issues": "http://drupal.org/project/issues/config_pages"
+            }
+        },
         {
             "name": "drupal/config_update",
             "version": "1.7.0",
@@ -13824,6 +13882,7 @@
     "aliases": [],
     "minimum-stability": "stable",
     "stability-flags": {
+        "drupal/config_pages": 20,
         "drupal/manage_display": 20,
         "drupal/page_manager": 20,
         "drupal/paragraphs": 20,

+ 17 - 0
config/sync/config_pages.type.faq.yml

@@ -0,0 +1,17 @@
+uuid: 3ac370e9-b774-42be-ad09-2603ddbacb4c
+langcode: fr
+status: true
+dependencies: {  }
+id: faq
+label: Faq
+context:
+  show_warning: true
+  group:
+    language: false
+  fallback:
+    language: ''
+menu:
+  path: /admin/content/faq
+  weight: 0
+  description: ''
+token: false

+ 24 - 0
config/sync/core.entity_form_display.config_pages.faq.default.yml

@@ -0,0 +1,24 @@
+uuid: 0176aeea-76c7-4061-a211-710a3a818310
+langcode: fr
+status: true
+dependencies:
+  config:
+    - config_pages.type.faq
+    - field.field.config_pages.faq.field_introduction
+  module:
+    - text
+id: config_pages.faq.default
+targetEntityType: config_pages
+bundle: faq
+mode: default
+content:
+  field_introduction:
+    weight: 0
+    settings:
+      rows: 5
+      placeholder: ''
+    third_party_settings: {  }
+    type: text_textarea
+    region: content
+hidden:
+  label: true

+ 23 - 0
config/sync/core.entity_view_display.config_pages.faq.default.yml

@@ -0,0 +1,23 @@
+uuid: a155ac12-06fa-4334-874c-9b5feac7dce8
+langcode: fr
+status: true
+dependencies:
+  config:
+    - config_pages.type.faq
+    - field.field.config_pages.faq.field_introduction
+  module:
+    - text
+id: config_pages.faq.default
+targetEntityType: config_pages
+bundle: faq
+mode: default
+content:
+  field_introduction:
+    weight: 0
+    label: above
+    settings: {  }
+    third_party_settings: {  }
+    type: text_default
+    region: content
+hidden:
+  search_api_excerpt: true

+ 13 - 24
config/sync/core.entity_view_display.node.question_reponse.default.yml

@@ -14,7 +14,6 @@ dependencies:
     - file
     - link
     - manage_display
-    - options
     - text
 id: node.question_reponse.default
 targetEntityType: node
@@ -22,16 +21,16 @@ bundle: question_reponse
 mode: default
 content:
   field_fichiers:
-    weight: 104
-    label: above
+    weight: 3
+    label: hidden
     settings:
       use_description_as_link_text: true
     third_party_settings: {  }
     type: file_default
     region: content
   field_liens:
-    weight: 105
-    label: above
+    weight: 4
+    label: hidden
     settings:
       trim_length: 80
       url_only: false
@@ -41,44 +40,32 @@ content:
     third_party_settings: {  }
     type: link
     region: content
-  field_poid:
-    weight: 103
-    label: above
-    settings: {  }
-    third_party_settings: {  }
-    type: list_default
-    region: content
   field_question:
-    weight: 101
-    label: above
+    weight: 1
+    label: hidden
     settings: {  }
     third_party_settings: {  }
     type: text_default
     region: content
   field_reponse:
-    weight: 102
-    label: above
+    weight: 2
+    label: hidden
     settings: {  }
     third_party_settings: {  }
     type: text_default
     region: content
   field_ress:
-    weight: 106
-    label: above
+    weight: 5
+    label: hidden
     settings:
       link: true
     third_party_settings: {  }
     type: entity_reference_label
     region: content
-  links:
-    weight: 100
-    settings: {  }
-    third_party_settings: {  }
-    region: content
   title:
     label: hidden
     type: title
-    weight: -50
+    weight: 0
     region: content
     settings:
       tag: h2
@@ -86,6 +73,8 @@ content:
     third_party_settings: {  }
 hidden:
   created: true
+  field_poid: true
   langcode: true
+  links: true
   search_api_excerpt: true
   uid: true

+ 12 - 0
config/sync/core.entity_view_mode.config_pages.full.yml

@@ -0,0 +1,12 @@
+uuid: b7630a63-0032-40e0-80a8-d7e56cf2b544
+langcode: fr
+status: true
+dependencies:
+  module:
+    - config_pages
+_core:
+  default_config_hash: VYERDzPNi1-oUm7KMLjol4oLcjbHr-onKbitt4dZuN0
+id: config_pages.full
+label: Full
+targetEntityType: config_pages
+cache: true

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

@@ -19,6 +19,7 @@ module:
   config_devel: 0
   config_filter: 0
   config_ignore: 0
+  config_pages: 0
   config_translation: 0
   config_update: 0
   contact: 0

+ 21 - 0
config/sync/field.field.config_pages.faq.field_introduction.yml

@@ -0,0 +1,21 @@
+uuid: ebb0ca10-273b-4076-9883-2dd9d1f97294
+langcode: fr
+status: true
+dependencies:
+  config:
+    - config_pages.type.faq
+    - field.storage.config_pages.field_introduction
+  module:
+    - text
+id: config_pages.faq.field_introduction
+field_name: field_introduction
+entity_type: config_pages
+bundle: faq
+label: Introduction
+description: ''
+required: false
+translatable: false
+default_value: {  }
+default_value_callback: ''
+settings: {  }
+field_type: text_long

+ 19 - 0
config/sync/field.storage.config_pages.field_introduction.yml

@@ -0,0 +1,19 @@
+uuid: 4916457e-b9b1-4eae-b479-18843126697f
+langcode: fr
+status: true
+dependencies:
+  module:
+    - config_pages
+    - text
+id: config_pages.field_introduction
+field_name: field_introduction
+entity_type: config_pages
+type: text_long
+settings: {  }
+module: text
+locked: false
+cardinality: 1
+translatable: true
+indexes: {  }
+persist_with_no_fields: false
+custom_storage: false

+ 26 - 1
config/sync/page_manager.page_variant.faq-panels_variant-0.yml

@@ -4,13 +4,38 @@ status: true
 dependencies:
   config:
     - page_manager.page.faq
+    - views.view.faq
   module:
+    - config_pages
     - panels
+    - views
 id: faq-panels_variant-0
 label: Panels
 variant: panels_variant
 variant_settings:
-  blocks: {  }
+  blocks:
+    8330c2c6-434f-46dc-9f79-281b0f60a9df:
+      id: config_pages_block
+      label: 'ConfigPages Block'
+      provider: config_pages
+      label_display: '0'
+      region: content
+      weight: 0
+      uuid: 8330c2c6-434f-46dc-9f79-281b0f60a9df
+      config_page_type: faq
+      config_page_view_mode: full
+      context_mapping: {  }
+    cd77a599-d6ed-44b0-bb4b-8fc384e4e47d:
+      id: 'views_block:faq-block_1'
+      label: ''
+      provider: views
+      label_display: '0'
+      views_label: ''
+      items_per_page: none
+      region: content
+      weight: 0
+      uuid: cd77a599-d6ed-44b0-bb4b-8fc384e4e47d
+      context_mapping: {  }
   id: panels_variant
   uuid: 9521d717-02c8-4501-8b45-124005c78dab
   label: null

+ 1 - 0
config/sync/user.role.admin.yml

@@ -61,6 +61,7 @@ permissions:
   - 'edit any question_reponse content'
   - 'edit any ressource content'
   - 'edit any static content'
+  - 'edit faq config page entity'
   - 'edit own actualite content'
   - 'edit own enregistrement content'
   - 'edit own evenement content'

+ 1 - 0
config/sync/user.role.anonymous.yml

@@ -18,5 +18,6 @@ permissions:
   - 'create default workflow_transition'
   - 'create generique workflow_transition'
   - 'use text format wysiwyg'
+  - 'view faq config page entity'
   - 'view published fil entities'
   - 'view search api pages'

+ 1 - 0
config/sync/user.role.authenticated.yml

@@ -27,6 +27,7 @@ permissions:
   - 'opt-in or out of matomo tracking'
   - 'use chutier'
   - 'use text format wysiwyg'
+  - 'view faq config page entity'
   - 'view own unpublished chutier entities'
   - 'view own unpublished composition entities'
   - 'view own unpublished fil entities'

+ 1 - 0
config/sync/user.role.editeur.yml

@@ -22,6 +22,7 @@ permissions:
   - 'edit any question_reponse content'
   - 'edit any ressource content'
   - 'edit any static content'
+  - 'edit faq config page entity'
   - 'edit own actualite content'
   - 'edit own evenement content'
   - 'edit own partenaires_logo_footer_ content'

+ 195 - 0
config/sync/views.view.faq.yml

@@ -0,0 +1,195 @@
+uuid: 8816ef2c-4a12-4d5c-836c-b4168afa19d6
+langcode: fr
+status: true
+dependencies:
+  config:
+    - core.entity_view_mode.node.full
+    - node.type.question_reponse
+  module:
+    - node
+    - user
+id: faq
+label: faq
+module: views
+description: ''
+tag: ''
+base_table: node_field_data
+base_field: nid
+display:
+  default:
+    display_plugin: default
+    id: default
+    display_title: Default
+    position: 0
+    display_options:
+      access:
+        type: perm
+        options:
+          perm: 'access content'
+      cache:
+        type: tag
+        options: {  }
+      query:
+        type: views_query
+        options:
+          disable_sql_rewrite: false
+          distinct: false
+          replica: false
+          query_comment: ''
+          query_tags: {  }
+      exposed_form:
+        type: basic
+        options:
+          submit_button: Apply
+          reset_button: false
+          reset_button_label: Reset
+          exposed_sorts_label: 'Sort by'
+          expose_sort_order: true
+          sort_asc_label: Asc
+          sort_desc_label: Desc
+      pager:
+        type: none
+        options:
+          items_per_page: 0
+          offset: 0
+      style:
+        type: default
+      row:
+        type: 'entity:node'
+        options:
+          relationship: none
+          view_mode: full
+      fields:
+        title:
+          id: title
+          table: node_field_data
+          field: title
+          settings:
+            link_to_entity: true
+          plugin_id: field
+          relationship: none
+          group_type: group
+          admin_label: ''
+          label: ''
+          exclude: false
+          alter:
+            alter_text: false
+            text: ''
+            make_link: false
+            path: ''
+            absolute: false
+            external: false
+            replace_spaces: false
+            path_case: none
+            trim_whitespace: false
+            alt: ''
+            rel: ''
+            link_class: ''
+            prefix: ''
+            suffix: ''
+            target: ''
+            nl2br: false
+            max_length: 0
+            word_boundary: true
+            ellipsis: true
+            more_link: false
+            more_link_text: ''
+            more_link_path: ''
+            strip_tags: false
+            trim: false
+            preserve_tags: ''
+            html: false
+          element_type: ''
+          element_class: ''
+          element_label_type: ''
+          element_label_class: ''
+          element_label_colon: true
+          element_wrapper_type: ''
+          element_wrapper_class: ''
+          element_default_classes: true
+          empty: ''
+          hide_empty: false
+          empty_zero: false
+          hide_alter_empty: true
+          click_sort_column: value
+          type: string
+          group_column: value
+          group_columns: {  }
+          group_rows: true
+          delta_limit: 0
+          delta_offset: 0
+          delta_reversed: false
+          delta_first_last: false
+          multi_type: separator
+          separator: ', '
+          field_api_classes: false
+      filters:
+        status:
+          value: '1'
+          table: node_field_data
+          field: status
+          plugin_id: boolean
+          entity_type: node
+          entity_field: status
+          id: status
+          expose:
+            operator: ''
+            operator_limit_selection: false
+            operator_list: {  }
+          group: 1
+        type:
+          id: type
+          table: node_field_data
+          field: type
+          value:
+            question_reponse: question_reponse
+          entity_type: node
+          entity_field: type
+          plugin_id: bundle
+          expose:
+            operator_limit_selection: false
+            operator_list: {  }
+      sorts:
+        field_poid_value:
+          id: field_poid_value
+          table: node__field_poid
+          field: field_poid_value
+          relationship: none
+          group_type: group
+          admin_label: ''
+          order: ASC
+          exposed: false
+          expose:
+            label: ''
+          plugin_id: standard
+      title: faq
+      header: {  }
+      footer: {  }
+      empty: {  }
+      relationships: {  }
+      arguments: {  }
+      display_extenders: {  }
+    cache_metadata:
+      max-age: -1
+      contexts:
+        - 'languages:language_content'
+        - 'languages:language_interface'
+        - 'user.node_grants:view'
+        - user.permissions
+      tags: {  }
+  block_1:
+    display_plugin: block
+    id: block_1
+    display_title: Block
+    position: 1
+    display_options:
+      display_extenders:
+        views_ef_fieldset: {  }
+    cache_metadata:
+      max-age: -1
+      contexts:
+        - 'languages:language_content'
+        - 'languages:language_interface'
+        - 'user.node_grants:view'
+        - user.permissions
+      tags: {  }