From 9eecdef83027cdcb0fe307bdbc2340de00cd0675 Mon Sep 17 00:00:00 2001 From: Clayton Dewey Date: Sat, 19 Jan 2019 15:14:09 -0700 Subject: [PATCH 1/2] Update License vocabulary fields and display --- ..._sync.module.drutopia_creative_license.yml | 81 +++++++++++++++++++ ...override.taxonomy_term.license.changed.yml | 17 ++++ ...ride.taxonomy_term.license.description.yml | 19 +++++ ...override.taxonomy_term.license.metatag.yml | 17 ++++ ...ld_override.taxonomy_term.license.name.yml | 17 ++++ ...ld_override.taxonomy_term.license.path.yml | 19 +++++ ..._override.taxonomy_term.license.status.yml | 21 +++++ ..._display.taxonomy_term.license.default.yml | 54 +++++++++++++ ..._display.taxonomy_term.license.default.yml | 18 ++++- ...iew_display.taxonomy_term.license.full.yml | 47 +++++++++++ ...w_display.taxonomy_term.license.teaser.yml | 47 +++++++++++ ...xonomy_term.license.field_license_icon.yml | 37 +++++++++ .../drutopia_creative_license.info.yml | 6 ++ 13 files changed, 398 insertions(+), 2 deletions(-) create mode 100644 web/modules/custom/drutopia_creative_license/config/install/config_snapshot.snapshot.config_sync.module.drutopia_creative_license.yml create mode 100644 web/modules/custom/drutopia_creative_license/config/install/core.base_field_override.taxonomy_term.license.changed.yml create mode 100644 web/modules/custom/drutopia_creative_license/config/install/core.base_field_override.taxonomy_term.license.description.yml create mode 100644 web/modules/custom/drutopia_creative_license/config/install/core.base_field_override.taxonomy_term.license.metatag.yml create mode 100644 web/modules/custom/drutopia_creative_license/config/install/core.base_field_override.taxonomy_term.license.name.yml create mode 100644 web/modules/custom/drutopia_creative_license/config/install/core.base_field_override.taxonomy_term.license.path.yml create mode 100644 web/modules/custom/drutopia_creative_license/config/install/core.base_field_override.taxonomy_term.license.status.yml create mode 100644 web/modules/custom/drutopia_creative_license/config/install/core.entity_form_display.taxonomy_term.license.default.yml create mode 100644 web/modules/custom/drutopia_creative_license/config/install/core.entity_view_display.taxonomy_term.license.full.yml create mode 100644 web/modules/custom/drutopia_creative_license/config/install/core.entity_view_display.taxonomy_term.license.teaser.yml create mode 100644 web/modules/custom/drutopia_creative_license/config/install/field.field.taxonomy_term.license.field_license_icon.yml diff --git a/web/modules/custom/drutopia_creative_license/config/install/config_snapshot.snapshot.config_sync.module.drutopia_creative_license.yml b/web/modules/custom/drutopia_creative_license/config/install/config_snapshot.snapshot.config_sync.module.drutopia_creative_license.yml new file mode 100644 index 0000000..ce195e4 --- /dev/null +++ b/web/modules/custom/drutopia_creative_license/config/install/config_snapshot.snapshot.config_sync.module.drutopia_creative_license.yml @@ -0,0 +1,81 @@ +langcode: en +status: true +dependencies: + module: + - drutopia_creative_license +id: config_sync.module.drutopia_creative_license +snapshotSet: config_sync +extensionType: module +extensionName: drutopia_creative_license +items: + - + collection: '' + name: core.entity_view_display.taxonomy_term.license.default + data: + langcode: en + status: true + dependencies: + config: + - taxonomy.vocabulary.license + module: + - ds + - text + third_party_settings: + ds: + layout: + id: layout_onecol + library: layout_discovery/onecol + disable_css: false + entity_classes: all_classes + settings: { } + regions: + content: + - description + id: taxonomy_term.license.default + targetEntityType: taxonomy_term + bundle: license + mode: default + content: + description: + label: hidden + type: text_default + weight: 0 + region: content + settings: { } + third_party_settings: { } + hidden: { } + - + collection: '' + name: field.storage.node.field_license + data: + langcode: en + status: true + dependencies: + module: + - node + - taxonomy + id: node.field_license + field_name: field_license + entity_type: node + type: entity_reference + settings: + target_type: taxonomy_term + module: core + locked: false + cardinality: 1 + translatable: true + indexes: { } + persist_with_no_fields: false + custom_storage: false + - + collection: '' + name: taxonomy.vocabulary.license + data: + langcode: en + status: true + dependencies: { } + name: License + vid: license + description: '' + hierarchy: 0 + weight: 0 diff --git a/web/modules/custom/drutopia_creative_license/config/install/core.base_field_override.taxonomy_term.license.changed.yml b/web/modules/custom/drutopia_creative_license/config/install/core.base_field_override.taxonomy_term.license.changed.yml new file mode 100644 index 0000000..6546bf4 --- /dev/null +++ b/web/modules/custom/drutopia_creative_license/config/install/core.base_field_override.taxonomy_term.license.changed.yml @@ -0,0 +1,17 @@ +langcode: en +status: true +dependencies: + config: + - taxonomy.vocabulary.license +id: taxonomy_term.license.changed +field_name: changed +entity_type: taxonomy_term +bundle: license +label: Changed +description: 'The time that the term was last edited.' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: changed diff --git a/web/modules/custom/drutopia_creative_license/config/install/core.base_field_override.taxonomy_term.license.description.yml b/web/modules/custom/drutopia_creative_license/config/install/core.base_field_override.taxonomy_term.license.description.yml new file mode 100644 index 0000000..8b9cbed --- /dev/null +++ b/web/modules/custom/drutopia_creative_license/config/install/core.base_field_override.taxonomy_term.license.description.yml @@ -0,0 +1,19 @@ +langcode: en +status: true +dependencies: + config: + - taxonomy.vocabulary.license + module: + - text +id: taxonomy_term.license.description +field_name: description +entity_type: taxonomy_term +bundle: license +label: Description +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: text_long diff --git a/web/modules/custom/drutopia_creative_license/config/install/core.base_field_override.taxonomy_term.license.metatag.yml b/web/modules/custom/drutopia_creative_license/config/install/core.base_field_override.taxonomy_term.license.metatag.yml new file mode 100644 index 0000000..db528d1 --- /dev/null +++ b/web/modules/custom/drutopia_creative_license/config/install/core.base_field_override.taxonomy_term.license.metatag.yml @@ -0,0 +1,17 @@ +langcode: en +status: true +dependencies: + config: + - taxonomy.vocabulary.license +id: taxonomy_term.license.metatag +field_name: metatag +entity_type: taxonomy_term +bundle: license +label: Metatags +description: 'The meta tags for the entity.' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: map diff --git a/web/modules/custom/drutopia_creative_license/config/install/core.base_field_override.taxonomy_term.license.name.yml b/web/modules/custom/drutopia_creative_license/config/install/core.base_field_override.taxonomy_term.license.name.yml new file mode 100644 index 0000000..9cb9b59 --- /dev/null +++ b/web/modules/custom/drutopia_creative_license/config/install/core.base_field_override.taxonomy_term.license.name.yml @@ -0,0 +1,17 @@ +langcode: en +status: true +dependencies: + config: + - taxonomy.vocabulary.license +id: taxonomy_term.license.name +field_name: name +entity_type: taxonomy_term +bundle: license +label: Name +description: '' +required: true +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/web/modules/custom/drutopia_creative_license/config/install/core.base_field_override.taxonomy_term.license.path.yml b/web/modules/custom/drutopia_creative_license/config/install/core.base_field_override.taxonomy_term.license.path.yml new file mode 100644 index 0000000..91f2b4d --- /dev/null +++ b/web/modules/custom/drutopia_creative_license/config/install/core.base_field_override.taxonomy_term.license.path.yml @@ -0,0 +1,19 @@ +langcode: en +status: true +dependencies: + config: + - taxonomy.vocabulary.license + module: + - path +id: taxonomy_term.license.path +field_name: path +entity_type: taxonomy_term +bundle: license +label: 'URL alias' +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: path diff --git a/web/modules/custom/drutopia_creative_license/config/install/core.base_field_override.taxonomy_term.license.status.yml b/web/modules/custom/drutopia_creative_license/config/install/core.base_field_override.taxonomy_term.license.status.yml new file mode 100644 index 0000000..99aac81 --- /dev/null +++ b/web/modules/custom/drutopia_creative_license/config/install/core.base_field_override.taxonomy_term.license.status.yml @@ -0,0 +1,21 @@ +langcode: en +status: true +dependencies: + config: + - taxonomy.vocabulary.license +id: taxonomy_term.license.status +field_name: status +entity_type: taxonomy_term +bundle: license +label: Published +description: '' +required: false +translatable: false +default_value: + - + value: 1 +default_value_callback: '' +settings: + on_label: 'On' + off_label: 'Off' +field_type: boolean diff --git a/web/modules/custom/drutopia_creative_license/config/install/core.entity_form_display.taxonomy_term.license.default.yml b/web/modules/custom/drutopia_creative_license/config/install/core.entity_form_display.taxonomy_term.license.default.yml new file mode 100644 index 0000000..a653636 --- /dev/null +++ b/web/modules/custom/drutopia_creative_license/config/install/core.entity_form_display.taxonomy_term.license.default.yml @@ -0,0 +1,54 @@ +langcode: en +status: true +dependencies: + config: + - field.field.taxonomy_term.license.field_license_icon + - image.style.thumbnail + - taxonomy.vocabulary.license + module: + - image + - path + - text +id: taxonomy_term.license.default +targetEntityType: taxonomy_term +bundle: license +mode: default +content: + description: + type: text_textfield + weight: 0 + region: content + settings: + size: 60 + placeholder: '' + third_party_settings: { } + field_license_icon: + weight: 31 + settings: + progress_indicator: throbber + preview_image_style: thumbnail + third_party_settings: { } + type: image_image + region: content + langcode: + type: language_select + weight: 2 + region: content + settings: + include_locked: true + third_party_settings: { } + name: + type: string_textfield + weight: -5 + region: content + settings: + size: 60 + placeholder: '' + third_party_settings: { } + path: + type: path + weight: 30 + region: content + settings: { } + third_party_settings: { } +hidden: { } diff --git a/web/modules/custom/drutopia_creative_license/config/install/core.entity_view_display.taxonomy_term.license.default.yml b/web/modules/custom/drutopia_creative_license/config/install/core.entity_view_display.taxonomy_term.license.default.yml index c3bf350..fb6afca 100644 --- a/web/modules/custom/drutopia_creative_license/config/install/core.entity_view_display.taxonomy_term.license.default.yml +++ b/web/modules/custom/drutopia_creative_license/config/install/core.entity_view_display.taxonomy_term.license.default.yml @@ -2,9 +2,12 @@ langcode: en status: true dependencies: config: + - field.field.taxonomy_term.license.field_license_icon + - image.style.small_landscape - taxonomy.vocabulary.license module: - ds + - image - text third_party_settings: ds: @@ -16,6 +19,7 @@ third_party_settings: settings: { } regions: content: + - field_license_icon - description id: taxonomy_term.license.default targetEntityType: taxonomy_term @@ -25,8 +29,18 @@ content: description: label: hidden type: text_default - weight: 0 + weight: 1 region: content settings: { } third_party_settings: { } -hidden: { } + field_license_icon: + weight: 0 + label: visually_hidden + settings: + image_style: small_landscape + image_link: '' + third_party_settings: { } + type: image + region: content +hidden: + langcode: true diff --git a/web/modules/custom/drutopia_creative_license/config/install/core.entity_view_display.taxonomy_term.license.full.yml b/web/modules/custom/drutopia_creative_license/config/install/core.entity_view_display.taxonomy_term.license.full.yml new file mode 100644 index 0000000..3441dc2 --- /dev/null +++ b/web/modules/custom/drutopia_creative_license/config/install/core.entity_view_display.taxonomy_term.license.full.yml @@ -0,0 +1,47 @@ +langcode: en +status: true +dependencies: + config: + - core.entity_view_mode.taxonomy_term.full + - field.field.taxonomy_term.license.field_license_icon + - image.style.small_landscape + - taxonomy.vocabulary.license + module: + - ds + - image + - text +third_party_settings: + ds: + layout: + id: layout_onecol + library: layout_discovery/onecol + disable_css: false + entity_classes: all_classes + settings: { } + regions: + content: + - field_license_icon + - description +id: taxonomy_term.license.full +targetEntityType: taxonomy_term +bundle: license +mode: full +content: + description: + label: hidden + type: text_default + weight: 1 + region: content + settings: { } + third_party_settings: { } + field_license_icon: + weight: 0 + label: visually_hidden + settings: + image_style: small_landscape + image_link: '' + third_party_settings: { } + type: image + region: content +hidden: + langcode: true diff --git a/web/modules/custom/drutopia_creative_license/config/install/core.entity_view_display.taxonomy_term.license.teaser.yml b/web/modules/custom/drutopia_creative_license/config/install/core.entity_view_display.taxonomy_term.license.teaser.yml new file mode 100644 index 0000000..184e50b --- /dev/null +++ b/web/modules/custom/drutopia_creative_license/config/install/core.entity_view_display.taxonomy_term.license.teaser.yml @@ -0,0 +1,47 @@ +langcode: en +status: true +dependencies: + config: + - core.entity_view_mode.taxonomy_term.teaser + - field.field.taxonomy_term.license.field_license_icon + - image.style.small_landscape + - taxonomy.vocabulary.license + module: + - ds + - image + - text +third_party_settings: + ds: + layout: + id: layout_onecol + library: layout_discovery/onecol + disable_css: false + entity_classes: all_classes + settings: { } + regions: + content: + - field_license_icon + - description +id: taxonomy_term.license.teaser +targetEntityType: taxonomy_term +bundle: license +mode: teaser +content: + description: + label: hidden + type: text_default + weight: 1 + region: content + settings: { } + third_party_settings: { } + field_license_icon: + weight: 0 + label: visually_hidden + settings: + image_style: small_landscape + image_link: '' + third_party_settings: { } + type: image + region: content +hidden: + langcode: true diff --git a/web/modules/custom/drutopia_creative_license/config/install/field.field.taxonomy_term.license.field_license_icon.yml b/web/modules/custom/drutopia_creative_license/config/install/field.field.taxonomy_term.license.field_license_icon.yml new file mode 100644 index 0000000..77d8d51 --- /dev/null +++ b/web/modules/custom/drutopia_creative_license/config/install/field.field.taxonomy_term.license.field_license_icon.yml @@ -0,0 +1,37 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.taxonomy_term.field_license_icon + - taxonomy.vocabulary.license + module: + - image +id: taxonomy_term.license.field_license_icon +field_name: field_license_icon +entity_type: taxonomy_term +bundle: license +label: Icon +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + file_directory: '[date:custom:Y]-[date:custom:m]' + file_extensions: 'png gif jpg jpeg' + max_filesize: '' + max_resolution: '' + min_resolution: '' + alt_field: true + alt_field_required: true + title_field: false + title_field_required: false + default_image: + uuid: '' + alt: '' + title: '' + width: null + height: null + handler: 'default:file' + handler_settings: { } +field_type: image diff --git a/web/modules/custom/drutopia_creative_license/drutopia_creative_license.info.yml b/web/modules/custom/drutopia_creative_license/drutopia_creative_license.info.yml index 5449718..bb4db06 100644 --- a/web/modules/custom/drutopia_creative_license/drutopia_creative_license.info.yml +++ b/web/modules/custom/drutopia_creative_license/drutopia_creative_license.info.yml @@ -4,9 +4,15 @@ core: 8.x package: Drutopia dependencies: - config_actions + - config_snapshot - drutopia_core + - drutopia_creative_license + - ds - field - field_group + - image - node + - path - taxonomy + - text version: 8.x-1.0-alpha1 From e4825b24ddb652e41500def7bd6cb05d9214a927 Mon Sep 17 00:00:00 2001 From: Clayton Dewey Date: Sat, 19 Jan 2019 15:14:55 -0700 Subject: [PATCH 2/2] Add Small landscape image style for the license icon. --- config/sync/image.style.small_landscape.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 config/sync/image.style.small_landscape.yml diff --git a/config/sync/image.style.small_landscape.yml b/config/sync/image.style.small_landscape.yml new file mode 100644 index 0000000..93b9742 --- /dev/null +++ b/config/sync/image.style.small_landscape.yml @@ -0,0 +1,14 @@ +uuid: ef082871-7e9a-4f4a-befa-094f4091d45f +langcode: en +status: true +dependencies: { } +name: small_landscape +label: 'Small landscape' +effects: + 87ff4c68-189e-4459-ad57-6834f8181d0a: + uuid: 87ff4c68-189e-4459-ad57-6834f8181d0a + id: image_resize + weight: 1 + data: + width: 88 + height: 31