From 0180b9a880d8a5f2b13c54c77478ab28ddf54cba Mon Sep 17 00:00:00 2001 From: Lily Yan <lily.yan@uwaterloo.ca> Date: Mon, 4 Oct 2021 17:18:30 +0000 Subject: [PATCH] ISTWCMS-5093 Add taxonomies for uw ct service --- ...rm.uw_vocab_service_categories.default.yml | 64 +++++++++++++++++++ ...omy_term.uw_vocab_service_tags.default.yml | 49 ++++++++++++++ ...rm.uw_vocab_service_categories.default.yml | 41 ++++++++++++ ...egories.field_uw_service_category_icon.yml | 27 ++++++++ ...my_term.field_uw_service_category_icon.yml | 19 ++++++ ...onomy_term.uw_vocab_service_categories.yml | 10 +++ ...gs.taxonomy_term.uw_vocab_service_tags.yml | 10 +++ ...vocabulary.uw_vocab_service_categories.yml | 7 ++ ...onomy.vocabulary.uw_vocab_service_tags.yml | 7 ++ uw_ct_service.features.yml | 1 + uw_ct_service.info.yml | 15 +++++ 11 files changed, 250 insertions(+) create mode 100644 config/install/core.entity_form_display.taxonomy_term.uw_vocab_service_categories.default.yml create mode 100644 config/install/core.entity_form_display.taxonomy_term.uw_vocab_service_tags.default.yml create mode 100644 config/install/core.entity_view_display.taxonomy_term.uw_vocab_service_categories.default.yml create mode 100644 config/install/field.field.taxonomy_term.uw_vocab_service_categories.field_uw_service_category_icon.yml create mode 100644 config/install/field.storage.taxonomy_term.field_uw_service_category_icon.yml create mode 100644 config/install/language.content_settings.taxonomy_term.uw_vocab_service_categories.yml create mode 100644 config/install/language.content_settings.taxonomy_term.uw_vocab_service_tags.yml create mode 100644 config/install/taxonomy.vocabulary.uw_vocab_service_categories.yml create mode 100644 config/install/taxonomy.vocabulary.uw_vocab_service_tags.yml create mode 100644 uw_ct_service.features.yml create mode 100644 uw_ct_service.info.yml diff --git a/config/install/core.entity_form_display.taxonomy_term.uw_vocab_service_categories.default.yml b/config/install/core.entity_form_display.taxonomy_term.uw_vocab_service_categories.default.yml new file mode 100644 index 0000000..02b115a --- /dev/null +++ b/config/install/core.entity_form_display.taxonomy_term.uw_vocab_service_categories.default.yml @@ -0,0 +1,64 @@ +langcode: en +status: true +dependencies: + config: + - field.field.taxonomy_term.uw_vocab_service_categories.field_uw_service_category_icon + - taxonomy.vocabulary.uw_vocab_service_categories + module: + - media_library + - path + - text +id: taxonomy_term.uw_vocab_service_categories.default +targetEntityType: taxonomy_term +bundle: uw_vocab_service_categories +mode: default +content: + description: + type: text_textarea + weight: 1 + region: content + settings: + placeholder: '' + rows: 5 + third_party_settings: { } + field_uw_service_category_icon: + type: media_library_widget + weight: 2 + settings: + media_types: { } + third_party_settings: { } + region: content + langcode: + type: language_select + weight: 3 + region: content + settings: + include_locked: true + third_party_settings: { } + name: + type: string_textfield + weight: 0 + region: content + settings: + size: 60 + placeholder: '' + third_party_settings: { } + path: + type: path + weight: 4 + region: content + settings: { } + third_party_settings: { } + status: + type: boolean_checkbox + settings: + display_label: true + weight: 5 + region: content + third_party_settings: { } + tvi: + weight: 6 + region: content + settings: { } + third_party_settings: { } +hidden: { } diff --git a/config/install/core.entity_form_display.taxonomy_term.uw_vocab_service_tags.default.yml b/config/install/core.entity_form_display.taxonomy_term.uw_vocab_service_tags.default.yml new file mode 100644 index 0000000..b221e21 --- /dev/null +++ b/config/install/core.entity_form_display.taxonomy_term.uw_vocab_service_tags.default.yml @@ -0,0 +1,49 @@ +langcode: en +status: true +dependencies: + config: + - taxonomy.vocabulary.uw_vocab_service_tags + module: + - text +id: taxonomy_term.uw_vocab_service_tags.default +targetEntityType: taxonomy_term +bundle: uw_vocab_service_tags +mode: default +content: + description: + type: text_textarea + weight: 1 + region: content + settings: + placeholder: '' + rows: 5 + third_party_settings: { } + langcode: + type: language_select + weight: 2 + region: content + settings: + include_locked: true + third_party_settings: { } + name: + type: string_textfield + weight: 0 + region: content + settings: + size: 60 + placeholder: '' + third_party_settings: { } + status: + type: boolean_checkbox + settings: + display_label: true + weight: 3 + region: content + third_party_settings: { } + tvi: + weight: 4 + region: content + settings: { } + third_party_settings: { } +hidden: + path: true diff --git a/config/install/core.entity_view_display.taxonomy_term.uw_vocab_service_categories.default.yml b/config/install/core.entity_view_display.taxonomy_term.uw_vocab_service_categories.default.yml new file mode 100644 index 0000000..69f768e --- /dev/null +++ b/config/install/core.entity_view_display.taxonomy_term.uw_vocab_service_categories.default.yml @@ -0,0 +1,41 @@ +langcode: en +status: true +dependencies: + config: + - field.field.taxonomy_term.uw_vocab_service_categories.field_uw_service_category_icon + - image.style.uw_is_icon + - taxonomy.vocabulary.uw_vocab_service_categories + module: + - fences + - media + - text +id: taxonomy_term.uw_vocab_service_categories.default +targetEntityType: taxonomy_term +bundle: uw_vocab_service_categories +mode: default +content: + description: + label: hidden + type: text_default + weight: 1 + region: content + settings: { } + third_party_settings: { } + field_uw_service_category_icon: + type: media_thumbnail + weight: 0 + label: hidden + settings: + image_style: uw_is_icon + image_link: '' + third_party_settings: + fences: + fences_field_tag: div + fences_field_classes: '' + fences_field_item_tag: div + fences_field_item_classes: '' + fences_label_tag: div + fences_label_classes: '' + region: content +hidden: + langcode: true diff --git a/config/install/field.field.taxonomy_term.uw_vocab_service_categories.field_uw_service_category_icon.yml b/config/install/field.field.taxonomy_term.uw_vocab_service_categories.field_uw_service_category_icon.yml new file mode 100644 index 0000000..00f1f41 --- /dev/null +++ b/config/install/field.field.taxonomy_term.uw_vocab_service_categories.field_uw_service_category_icon.yml @@ -0,0 +1,27 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.taxonomy_term.field_uw_service_category_icon + - media.type.uw_mt_icon + - taxonomy.vocabulary.uw_vocab_service_categories +id: taxonomy_term.uw_vocab_service_categories.field_uw_service_category_icon +field_name: field_uw_service_category_icon +entity_type: taxonomy_term +bundle: uw_vocab_service_categories +label: 'Upload service category icon' +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + handler: 'default:media' + handler_settings: + target_bundles: + uw_mt_icon: uw_mt_icon + sort: + field: _none + auto_create: false + auto_create_bundle: uw_mt_icon +field_type: entity_reference diff --git a/config/install/field.storage.taxonomy_term.field_uw_service_category_icon.yml b/config/install/field.storage.taxonomy_term.field_uw_service_category_icon.yml new file mode 100644 index 0000000..dcec161 --- /dev/null +++ b/config/install/field.storage.taxonomy_term.field_uw_service_category_icon.yml @@ -0,0 +1,19 @@ +langcode: en +status: true +dependencies: + module: + - media + - taxonomy +id: taxonomy_term.field_uw_service_category_icon +field_name: field_uw_service_category_icon +entity_type: taxonomy_term +type: entity_reference +settings: + target_type: media +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/install/language.content_settings.taxonomy_term.uw_vocab_service_categories.yml b/config/install/language.content_settings.taxonomy_term.uw_vocab_service_categories.yml new file mode 100644 index 0000000..ed75ffa --- /dev/null +++ b/config/install/language.content_settings.taxonomy_term.uw_vocab_service_categories.yml @@ -0,0 +1,10 @@ +langcode: en +status: true +dependencies: + config: + - taxonomy.vocabulary.uw_vocab_service_categories +id: taxonomy_term.uw_vocab_service_categories +target_entity_type_id: taxonomy_term +target_bundle: uw_vocab_service_categories +default_langcode: site_default +language_alterable: false diff --git a/config/install/language.content_settings.taxonomy_term.uw_vocab_service_tags.yml b/config/install/language.content_settings.taxonomy_term.uw_vocab_service_tags.yml new file mode 100644 index 0000000..c72c993 --- /dev/null +++ b/config/install/language.content_settings.taxonomy_term.uw_vocab_service_tags.yml @@ -0,0 +1,10 @@ +langcode: en +status: true +dependencies: + config: + - taxonomy.vocabulary.uw_vocab_service_tags +id: taxonomy_term.uw_vocab_service_tags +target_entity_type_id: taxonomy_term +target_bundle: uw_vocab_service_tags +default_langcode: site_default +language_alterable: false diff --git a/config/install/taxonomy.vocabulary.uw_vocab_service_categories.yml b/config/install/taxonomy.vocabulary.uw_vocab_service_categories.yml new file mode 100644 index 0000000..537c641 --- /dev/null +++ b/config/install/taxonomy.vocabulary.uw_vocab_service_categories.yml @@ -0,0 +1,7 @@ +langcode: en +status: true +dependencies: { } +name: 'Service categories' +vid: uw_vocab_service_categories +description: 'Categories for service content type' +weight: 0 diff --git a/config/install/taxonomy.vocabulary.uw_vocab_service_tags.yml b/config/install/taxonomy.vocabulary.uw_vocab_service_tags.yml new file mode 100644 index 0000000..df319c6 --- /dev/null +++ b/config/install/taxonomy.vocabulary.uw_vocab_service_tags.yml @@ -0,0 +1,7 @@ +langcode: en +status: true +dependencies: { } +name: 'Service tags' +vid: uw_vocab_service_tags +description: 'Tags for service content type' +weight: 0 diff --git a/uw_ct_service.features.yml b/uw_ct_service.features.yml new file mode 100644 index 0000000..060a98e --- /dev/null +++ b/uw_ct_service.features.yml @@ -0,0 +1 @@ +required: true diff --git a/uw_ct_service.info.yml b/uw_ct_service.info.yml new file mode 100644 index 0000000..646ab23 --- /dev/null +++ b/uw_ct_service.info.yml @@ -0,0 +1,15 @@ +name: Service +type: module +core_version_requirement: '^8.9 || ^9' +description: 'Service content type.' +dependencies: + - 'drupal:fences' + - 'drupal:field' + - 'drupal:language' + - 'drupal:layout_builder' + - 'drupal:media' + - 'drupal:media_library' + - 'drupal:path' + - 'drupal:taxonomy' + - 'drupal:text' + - 'uw_media:uw_media' -- GitLab