Quellcode durchsuchen

better views product amdin page

bach vor 2 Jahren
Ursprung
Commit
70eb4521c7

+ 0 - 5
config/sync/language/fr/views.view.commerce_products.yml

@@ -22,8 +22,6 @@ display:
             first: "«\_premier"
             last: "dernier\_»"
       fields:
-        commerce_product_bulk_form:
-          action_title: 'Pour cette sélection'
         title:
           label: Titre
           separator: ', '
@@ -45,9 +43,6 @@ display:
         type:
           expose:
             label: Type
-        title:
-          expose:
-            label: Titre
       title: Produits
       empty:
         area_text_custom:

+ 25 - 77
config/sync/views.view.commerce_products.yml

@@ -2,6 +2,8 @@ uuid: c09e4acd-53eb-4981-b9c1-f2303568616a
 langcode: en
 status: true
 dependencies:
+  config:
+    - commerce_product.commerce_product_type.materio_product_type
   module:
     - commerce
     - commerce_product
@@ -126,59 +128,6 @@ display:
       row:
         type: fields
       fields:
-        commerce_product_bulk_form:
-          id: commerce_product_bulk_form
-          table: commerce_product
-          field: commerce_product_bulk_form
-          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: false
-          element_wrapper_type: ''
-          element_wrapper_class: ''
-          element_default_classes: true
-          empty: ''
-          hide_empty: false
-          empty_zero: false
-          hide_alter_empty: true
-          action_title: 'With selection'
-          include_exclude: exclude
-          selected_actions: {  }
-          entity_type: commerce_product
-          plugin_id: bulk_form
         title:
           id: title
           table: commerce_product_field_data
@@ -504,15 +453,18 @@ display:
           group_type: group
           admin_label: ''
           operator: in
-          value: {  }
+          value:
+            materio_product_type: materio_product_type
           group: 1
-          exposed: true
+          exposed: false
           expose:
             operator_id: type_op
             label: Type
             description: ''
             use_operator: false
             operator: type_op
+            operator_limit_selection: false
+            operator_list: {  }
             identifier: type
             required: false
             remember: false
@@ -523,8 +475,6 @@ display:
               administrator: '0'
             reduce: false
             hide_single_bundle: true
-            operator_limit_selection: false
-            operator_list: {  }
           is_grouped: false
           group_info:
             label: ''
@@ -540,33 +490,33 @@ display:
           entity_type: commerce_product
           entity_field: type
           plugin_id: commerce_entity_bundle
-        title:
-          id: title
+        langcode:
+          id: langcode
           table: commerce_product_field_data
-          field: title
+          field: langcode
           relationship: none
           group_type: group
           admin_label: ''
-          operator: contains
-          value: ''
+          operator: in
+          value:
+            '***LANGUAGE_language_interface***': '***LANGUAGE_language_interface***'
           group: 1
-          exposed: true
+          exposed: false
           expose:
-            operator_id: title_op
-            label: Title
+            operator_id: ''
+            label: ''
             description: ''
             use_operator: false
-            operator: title_op
-            identifier: title
+            operator: ''
+            operator_limit_selection: false
+            operator_list: {  }
+            identifier: ''
             required: false
             remember: false
             multiple: false
             remember_roles:
               authenticated: authenticated
-              anonymous: '0'
-              administrator: '0'
-            operator_limit_selection: false
-            operator_list: {  }
+            reduce: false
           is_grouped: false
           group_info:
             label: ''
@@ -580,8 +530,8 @@ display:
             default_group_multiple: {  }
             group_items: {  }
           entity_type: commerce_product
-          entity_field: title
-          plugin_id: string
+          entity_field: langcode
+          plugin_id: language
       sorts: {  }
       title: Products
       header: {  }
@@ -605,11 +555,10 @@ display:
       contexts:
         - 'languages:language_content'
         - 'languages:language_interface'
-        - url
         - url.query_args
         - user.permissions
       cacheable: false
-      max-age: 0
+      max-age: -1
       tags: {  }
   page_1:
     display_plugin: page
@@ -623,9 +572,8 @@ display:
       contexts:
         - 'languages:language_content'
         - 'languages:language_interface'
-        - url
         - url.query_args
         - user.permissions
       cacheable: false
-      max-age: 0
+      max-age: -1
       tags: {  }