Browse Source

content admin ui improved

bach 3 years ago
parent
commit
f9680301e5

+ 27 - 0
src/config/sync/core.entity_view_display.paragraph.note_prod.admin_note_liens.yml

@@ -0,0 +1,27 @@
+uuid: 33f54e59-36b5-49af-a4cb-44e6311cd373
+langcode: fr
+status: true
+dependencies:
+  config:
+    - core.entity_view_mode.paragraph.admin_note_liens
+    - field.field.paragraph.note_prod.field_note
+    - field.field.paragraph.note_prod.field_numero
+    - field.field.paragraph.note_prod.field_text_lien
+    - paragraphs.paragraphs_type.note_prod
+id: paragraph.note_prod.admin_note_liens
+targetEntityType: paragraph
+bundle: note_prod
+mode: admin_note_liens
+content:
+  field_text_lien:
+    weight: 0
+    label: hidden
+    settings:
+      link: true
+    third_party_settings: {  }
+    type: entity_reference_label
+    region: content
+hidden:
+  field_note: true
+  field_numero: true
+  search_api_excerpt: true

+ 10 - 0
src/config/sync/core.entity_view_mode.paragraph.admin_note_liens.yml

@@ -0,0 +1,10 @@
+uuid: 0f29aaed-6de1-42e4-ba19-fe98cb289985
+langcode: fr
+status: true
+dependencies:
+  module:
+    - paragraphs
+id: paragraph.admin_note_liens
+label: 'admin note liens'
+targetEntityType: paragraph
+cache: true

+ 67 - 0
src/config/sync/views.view.content.yml

@@ -5,6 +5,7 @@ dependencies:
   config:
     - field.storage.node.field_famille
     - field.storage.node.field_images
+    - field.storage.node.field_notes_prod
     - field.storage.node.field_texte_de_depart
     - field.storage.node.field_texte_en_rebond
     - field.storage.node.field_textes_produits
@@ -14,6 +15,7 @@ dependencies:
     - taxonomy.vocabulary.tag_prod
   module:
     - content_lock
+    - entity_reference_revisions
     - image
     - node
     - taxonomy
@@ -613,6 +615,69 @@ display:
           separator: ', '
           field_api_classes: false
           plugin_id: field
+        field_notes_prod:
+          id: field_notes_prod
+          table: node__field_notes_prod
+          field: field_notes_prod
+          relationship: none
+          group_type: group
+          admin_label: ''
+          label: 'Notes liens'
+          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: target_id
+          type: entity_reference_revisions_entity_view
+          settings:
+            view_mode: admin_note_liens
+          group_column: ''
+          group_columns: {  }
+          group_rows: true
+          delta_limit: 0
+          delta_offset: 0
+          delta_reversed: false
+          delta_first_last: false
+          multi_type: ul
+          separator: ', '
+          field_api_classes: false
+          plugin_id: field
         status:
           id: status
           table: node_field_data
@@ -1078,6 +1143,7 @@ display:
       tags:
         - 'config:field.storage.node.field_famille'
         - 'config:field.storage.node.field_images'
+        - 'config:field.storage.node.field_notes_prod'
         - 'config:field.storage.node.field_texte_de_depart'
         - 'config:field.storage.node.field_texte_en_rebond'
         - 'config:field.storage.node.field_textes_produits'
@@ -1242,6 +1308,7 @@ display:
       tags:
         - 'config:field.storage.node.field_famille'
         - 'config:field.storage.node.field_images'
+        - 'config:field.storage.node.field_notes_prod'
         - 'config:field.storage.node.field_texte_de_depart'
         - 'config:field.storage.node.field_texte_en_rebond'
         - 'config:field.storage.node.field_textes_produits'