Przeglądaj źródła

added website to showromms #1374

bach 2 lat temu
rodzic
commit
eed9c57c0b

+ 11 - 0
config/sync/core.entity_form_display.taxonomy_term.showroom.default.yml

@@ -9,6 +9,7 @@ dependencies:
     - field.field.taxonomy_term.showroom.field_public_email
     - field.field.taxonomy_term.showroom.field_public_phone
     - field.field.taxonomy_term.showroom.field_visuels
+    - field.field.taxonomy_term.showroom.field_website
     - field.field.taxonomy_term.showroom.field_workflow
     - image.style.thumbnail
     - taxonomy.vocabulary.showroom
@@ -16,6 +17,7 @@ dependencies:
     - address
     - field_group
     - image
+    - link
     - telephone
     - text
     - workflow
@@ -40,6 +42,7 @@ third_party_settings:
         - field_public_email
         - field_public_phone
         - field_public_address
+        - field_website
       parent_name: group_tabs
       weight: 21
       format_type: tab
@@ -153,6 +156,14 @@ content:
     third_party_settings: {  }
     type: image_image
     region: content
+  field_website:
+    weight: 6
+    settings:
+      placeholder_url: ''
+      placeholder_title: ''
+    third_party_settings: {  }
+    type: link_default
+    region: content
   field_workflow:
     weight: 6
     settings: {  }

+ 16 - 1
config/sync/core.entity_view_display.taxonomy_term.showroom.default.yml

@@ -9,11 +9,13 @@ dependencies:
     - field.field.taxonomy_term.showroom.field_public_email
     - field.field.taxonomy_term.showroom.field_public_phone
     - field.field.taxonomy_term.showroom.field_visuels
+    - field.field.taxonomy_term.showroom.field_website
     - field.field.taxonomy_term.showroom.field_workflow
     - taxonomy.vocabulary.showroom
   module:
     - address
     - image
+    - link
     - telephone_formatter
     - text
 id: taxonomy_term.showroom.default
@@ -53,7 +55,7 @@ content:
     type: telephone_formatter
     region: content
   field_visuels:
-    weight: 4
+    weight: 5
     label: above
     settings:
       image_style: ''
@@ -61,9 +63,22 @@ content:
     third_party_settings: {  }
     type: image
     region: content
+  field_website:
+    weight: 4
+    label: above
+    settings:
+      trim_length: 80
+      url_only: false
+      url_plain: false
+      rel: ''
+      target: ''
+    third_party_settings: {  }
+    type: link
+    region: content
 hidden:
   field_memo: true
   field_migration: true
   field_workflow: true
   langcode: true
   search_api_excerpt: true
+  synonyms: true

+ 2 - 0
config/sync/core.entity_view_display.taxonomy_term.showroom.home.yml

@@ -10,6 +10,7 @@ dependencies:
     - field.field.taxonomy_term.showroom.field_public_email
     - field.field.taxonomy_term.showroom.field_public_phone
     - field.field.taxonomy_term.showroom.field_visuels
+    - field.field.taxonomy_term.showroom.field_website
     - field.field.taxonomy_term.showroom.field_workflow
     - image.style.home_showroom
     - taxonomy.vocabulary.showroom
@@ -61,6 +62,7 @@ hidden:
   description: true
   field_memo: true
   field_migration: true
+  field_website: true
   field_workflow: true
   langcode: true
   search_api_excerpt: true

+ 28 - 0
config/sync/field.field.taxonomy_term.showroom.field_website.yml

@@ -0,0 +1,28 @@
+uuid: ebdd3e93-8765-4d91-8659-6bc6de2c01cc
+langcode: fr
+status: true
+dependencies:
+  config:
+    - field.storage.taxonomy_term.field_website
+    - taxonomy.vocabulary.showroom
+  module:
+    - link
+    - unique_content_field_validation
+third_party_settings:
+  unique_content_field_validation:
+    unique: false
+    unique_text: ''
+id: taxonomy_term.showroom.field_website
+field_name: field_website
+entity_type: taxonomy_term
+bundle: showroom
+label: Website
+description: ''
+required: false
+translatable: true
+default_value: {  }
+default_value_callback: ''
+settings:
+  link_type: 17
+  title: 1
+field_type: link

+ 20 - 0
config/sync/gdpr_fields.gdpr_fields_config.taxonomy_term.yml

@@ -0,0 +1,20 @@
+uuid: 6707a6fc-d892-45a4-8ba0-ce1373825a1a
+langcode: fr
+status: true
+dependencies: {  }
+id: taxonomy_term
+bundles:
+  showroom:
+    field_website:
+      bundle: showroom
+      name: field_website
+      entity_type_id: taxonomy_term
+      rtf: 'no'
+      rta: 'no'
+      enabled: false
+      anonymizer: ''
+      notes: ''
+      relationship: 0
+      sars_filename: ''
+filenames:
+  showroom: ''

+ 138 - 0
config/sync/views.view.showrooms.yml

@@ -7,6 +7,7 @@ dependencies:
     - field.storage.taxonomy_term.field_public_email
     - field.storage.taxonomy_term.field_public_phone
     - field.storage.taxonomy_term.field_visuels
+    - field.storage.taxonomy_term.field_website
     - image.style.card_big
     - image.style.home_showroom
     - system.menu.header
@@ -14,6 +15,7 @@ dependencies:
   module:
     - address
     - image
+    - link
     - rest
     - serialization
     - taxonomy
@@ -473,6 +475,73 @@ display:
           separator: ', '
           field_api_classes: false
           plugin_id: field
+        field_website:
+          id: field_website
+          table: taxonomy_term__field_website
+          field: field_website
+          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
+          click_sort_column: uri
+          type: link
+          settings:
+            trim_length: 80
+            url_only: false
+            url_plain: false
+            rel: nofollow
+            target: _blank
+          group_column: ''
+          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
+          plugin_id: field
         field_visuels:
           id: field_visuels
           table: taxonomy_term__field_visuels
@@ -550,6 +619,7 @@ display:
         - 'config:field.storage.taxonomy_term.field_public_email'
         - 'config:field.storage.taxonomy_term.field_public_phone'
         - 'config:field.storage.taxonomy_term.field_visuels'
+        - 'config:field.storage.taxonomy_term.field_website'
   rest_export_1:
     display_plugin: rest_export
     id: rest_export_1
@@ -962,6 +1032,73 @@ display:
           separator: ', '
           field_api_classes: false
           plugin_id: field
+        field_website:
+          id: field_website
+          table: taxonomy_term__field_website
+          field: field_website
+          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
+          click_sort_column: uri
+          type: link
+          settings:
+            trim_length: 80
+            url_only: false
+            url_plain: false
+            rel: nofollow
+            target: '0'
+          group_column: ''
+          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
+          plugin_id: field
         field_visuels:
           id: field_visuels
           table: taxonomy_term__field_visuels
@@ -1106,3 +1243,4 @@ display:
         - 'config:field.storage.taxonomy_term.field_public_email'
         - 'config:field.storage.taxonomy_term.field_public_phone'
         - 'config:field.storage.taxonomy_term.field_visuels'
+        - 'config:field.storage.taxonomy_term.field_website'

Plik diff jest za duży
+ 0 - 0
web/themes/custom/materiotheme/assets/dist/module-showrooms.bundle.js


BIN
web/themes/custom/materiotheme/assets/dist/module-showrooms.bundle.js.gz


Plik diff jest za duży
+ 1 - 1
web/themes/custom/materiotheme/assets/dist/report.html


+ 1 - 0
web/themes/custom/materiotheme/vuejs/components/Content/Showroom.vue

@@ -10,6 +10,7 @@
       <address v-html="item.field_public_address" />
       <div class="phone" v-html="item.field_public_phone" />
       <a class="email" :href="'mailto:'+item.field_public_email" v-html="item.field_public_email" />
+      <div class="website" v-html="item.field_website" />
     </section>
   </article>
 </template>

Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików