Bladeren bron

removed all fields but country from company address

bach 4 jaren geleden
bovenliggende
commit
c572503d1a

+ 8 - 10
config/sync/core.entity_form_display.taxonomy_term.company.default.yml

@@ -40,7 +40,6 @@ third_party_settings:
       region: content
     group_infos:
       children:
-        - field_departement
         - field_public_phone
         - field_public_email
         - field_website
@@ -49,7 +48,6 @@ third_party_settings:
       weight: 12
       format_type: tab
       format_settings:
-        label: 'Public infos'
         formatter: open
         description: ''
         required_fields: true
@@ -74,6 +72,7 @@ third_party_settings:
       region: content
     group_internal:
       children:
+        - status
         - field_workflow
         - field_migration
         - field_note
@@ -84,7 +83,6 @@ third_party_settings:
       weight: 2
       format_type: tab
       format_settings:
-        label: Internal
         formatter: open
         description: ''
         required_fields: true
@@ -135,7 +133,7 @@ content:
     type: text_textarea
     region: content
   field_memo:
-    weight: 21
+    weight: 7
     settings:
       rows: 5
       placeholder: ''
@@ -143,13 +141,13 @@ content:
     type: string_textarea
     region: content
   field_migration:
-    weight: 19
+    weight: 5
     settings: {  }
     third_party_settings: {  }
     type: workflow_default
     region: content
   field_note:
-    weight: 20
+    weight: 6
     settings: {  }
     third_party_settings: {  }
     type: options_select
@@ -184,14 +182,14 @@ content:
     type: link_default
     region: content
   field_workflow:
-    weight: 18
+    weight: 4
     settings: {  }
     third_party_settings: {  }
     type: workflow_default
     region: content
   langcode:
     type: language_select
-    weight: 22
+    weight: 8
     region: content
     settings:
       include_locked: true
@@ -208,11 +206,11 @@ content:
     type: boolean_checkbox
     settings:
       display_label: true
-    weight: 100
+    weight: 3
     region: content
     third_party_settings: {  }
   translation:
-    weight: 23
+    weight: 9
     region: content
     settings: {  }
     third_party_settings: {  }

+ 11 - 11
config/sync/field.field.taxonomy_term.company.field_public_address.yml

@@ -22,26 +22,26 @@ settings:
   langcode_override: ''
   field_overrides:
     givenName:
-      override: optional
+      override: hidden
     additionalName:
-      override: optional
+      override: hidden
     familyName:
-      override: optional
+      override: hidden
     organization:
-      override: optional
+      override: hidden
     addressLine1:
-      override: optional
+      override: hidden
     addressLine2:
-      override: optional
+      override: hidden
     postalCode:
-      override: optional
+      override: hidden
     sortingCode:
-      override: optional
+      override: hidden
     dependentLocality:
-      override: optional
+      override: hidden
     locality:
-      override: optional
+      override: hidden
     administrativeArea:
-      override: optional
+      override: hidden
   fields: {  }
 field_type: address

+ 4 - 0
config/sync/field.storage.taxonomy_term.field_public_address.yml

@@ -4,7 +4,11 @@ status: true
 dependencies:
   module:
     - address
+    - field_permissions
     - taxonomy
+third_party_settings:
+  field_permissions:
+    permission_type: public
 id: taxonomy_term.field_public_address
 field_name: field_public_address
 entity_type: taxonomy_term

+ 0 - 8
config/sync/migrate_plus.migration.d7_taxonomy_term_company.yml

@@ -59,14 +59,6 @@ process:
     source: field_public_address
     process:
       country_code: country
-      administrative_area: administrative_area
-      locality: locality
-      dependent_locality: dependent_locality
-      postal_code: postal_code
-      address_line1: thoroughfare
-      organization: organisation_name
-      given_name: first_name
-      family_name: last_name
   field_note: field_note
   description:
     plugin: iterator

+ 11 - 11
web/modules/custom/materio_migrate/config/install/migrate_plus.migration.d7_taxonomy_term_company.yml

@@ -66,17 +66,17 @@ process:
     process:
       # langcode:
       country_code: country
-      administrative_area: administrative_area
-      locality: locality
-      dependent_locality: dependent_locality
-      postal_code: postal_code
-      # sorting_code:
-      address_line1: thoroughfare
-      # address_line2:
-      organization: organisation_name
-      given_name: first_name
-      # additional_name:
-      family_name: last_name
+      # administrative_area: administrative_area
+      # locality: locality
+      # dependent_locality: dependent_locality
+      # postal_code: postal_code
+      # # sorting_code:
+      # address_line1: thoroughfare
+      # # address_line2:
+      # organization: organisation_name
+      # given_name: first_name
+      # # additional_name:
+      # family_name: last_name
 
       # SOURCES
       # sub_administrative_area